mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-20 09:57:49 +02: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
|
||||
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
|
||||
if python ../scripts/check_modules.py torch==$TORCH_VERSION torchvision==$TORCHVISION_VERSION; then
|
||||
echo "torch and torchvision have already been installed."
|
||||
|
Loading…
x
Reference in New Issue
Block a user