mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 01:34:38 +01:00
Temp fix for macOS installations that installed torch 2.0 by mistake, when torch 2 released yesterday
This commit is contained in:
parent
0324deec60
commit
a9da65c2cd
@ -65,6 +65,11 @@ esac
|
|||||||
|
|
||||||
# install torch and torchvision
|
# install torch and torchvision
|
||||||
if python ../scripts/check_modules.py torch torchvision; then
|
if python ../scripts/check_modules.py torch torchvision; then
|
||||||
|
# temp fix for macOS installations that installed torch 2.0 by mistake
|
||||||
|
if [ "$OS_NAME" == "macos" ]; then
|
||||||
|
python -m pip install --upgrade torch==1.13.1 torchvision==0.14.1 -q
|
||||||
|
fi
|
||||||
|
|
||||||
echo "torch and torchvision have already been installed."
|
echo "torch and torchvision have already been installed."
|
||||||
else
|
else
|
||||||
echo "Installing torch and torchvision.."
|
echo "Installing torch and torchvision.."
|
||||||
|
Loading…
Reference in New Issue
Block a user