mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 09:44:25 +01:00
Merge branch 'beta' of github.com:cmdr2/stable-diffusion-ui into beta
This commit is contained in:
commit
0898f98355
@ -68,6 +68,20 @@ case "${OS_NAME}" in
|
|||||||
*) echo "Unknown OS: $OS_NAME! This script runs only on Linux or Mac" && exit
|
*) echo "Unknown OS: $OS_NAME! This script runs only on Linux or Mac" && exit
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Detect GPU types
|
||||||
|
|
||||||
|
if grep -q amdgpu /proc/bus/pci/devices; then
|
||||||
|
echo AMD GPU detected
|
||||||
|
HAS_AMD=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
if grep -q nvidia /proc/bus/pci/devices; then
|
||||||
|
echo NVidia GPU detected
|
||||||
|
HAS_NVIDIA=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# install torch and torchvision
|
# install torch and torchvision
|
||||||
if python ../scripts/check_modules.py torch==$TORCH_VERSION torchvision==$TORCHVISION_VERSION; then
|
if python ../scripts/check_modules.py torch==$TORCH_VERSION torchvision==$TORCHVISION_VERSION; then
|
||||||
echo "torch and torchvision have already been installed."
|
echo "torch and torchvision have already been installed."
|
||||||
@ -173,7 +187,7 @@ else
|
|||||||
if [ -f "../models/stable-diffusion/sd-v1-4.ckpt" ]; then
|
if [ -f "../models/stable-diffusion/sd-v1-4.ckpt" ]; then
|
||||||
model_size=`filesize "../models/stable-diffusion/sd-v1-4.ckpt"`
|
model_size=`filesize "../models/stable-diffusion/sd-v1-4.ckpt"`
|
||||||
if [ ! "$model_size" == "4265380512" ]; then
|
if [ ! "$model_size" == "4265380512" ]; then
|
||||||
fail "The downloaded model file was invalid! Bytes downloaded: $model_size"
|
fail "The downloaded model file was invalid! Bytes downloaded: $model_size"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
fail "Error downloading the data files (weights) for Stable Diffusion"
|
fail "Error downloading the data files (weights) for Stable Diffusion"
|
||||||
|
Loading…
Reference in New Issue
Block a user