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."
|
||||||
|
Loading…
Reference in New Issue
Block a user