Merge branch 'main' into feat/cnr

This commit is contained in:
Dr.Lt.Data
2024-08-16 00:10:02 +09:00
13 changed files with 2690 additions and 2009 deletions

View File

@@ -19,6 +19,7 @@ import cm_global
security_check.security_check()
cm_global.pip_blacklist = ['torch', 'torchsde', 'torchvision']
cm_global.pip_downgrade_blacklist = ['torch', 'torchsde', 'torchvision', 'transformers', 'safetensors', 'kornia']
@@ -454,6 +455,9 @@ def is_installed(name):
if match:
name = match.group(1)
if name in cm_global.pip_blacklist:
return True
if name in cm_global.pip_downgrade_blacklist:
pips = get_installed_packages()