Merge branch 'beta' of github.com:cmdr2/stable-diffusion-ui into beta

This commit is contained in:
cmdr2 2023-05-19 17:29:20 +05:30
commit 83557d4b3c
3 changed files with 9 additions and 5 deletions

View File

@ -130,10 +130,13 @@ def include_cuda_versions(module_versions: tuple) -> tuple:
def is_amd_on_linux(): def is_amd_on_linux():
if os_name == "Linux": if os_name == "Linux":
try:
with open("/proc/bus/pci/devices", "r") as f: with open("/proc/bus/pci/devices", "r") as f:
device_info = f.read() device_info = f.read()
if "amdgpu" in device_info and "nvidia" not in device_info: if "amdgpu" in device_info and "nvidia" not in device_info:
return True return True
except:
return False
return False return False

View File

@ -165,6 +165,7 @@ def needs_to_force_full_precision(context):
and ( and (
" 1660" in device_name " 1660" in device_name
or " 1650" in device_name or " 1650" in device_name
or " 1630" in device_name
or " t400" in device_name or " t400" in device_name
or " t550" in device_name or " t550" in device_name
or " t600" in device_name or " t600" in device_name

View File

@ -23,7 +23,7 @@
img.addEventListener( img.addEventListener(
"load", "load",
function() { function() {
img.closest(".imageTaskContainer").scrollIntoView() img?.closest(".imageTaskContainer").scrollIntoView()
}, },
{ once: true } { once: true }
) )