Skip to content

Commit 61efd60

Browse files
committed
feat: complete pip freezing for torch, torchsde, torchvision
1 parent d3654b2 commit 61efd60

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

cm-cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
pip_overrides_path = os.path.join(comfyui_manager_path, "pip_overrides.json")
3636
git_script_path = os.path.join(comfyui_manager_path, "git_helper.py")
3737

38+
cm_global.pip_blacklist = ['torch', 'torchsde', 'torchvision']
3839
cm_global.pip_downgrade_blacklist = ['torch', 'torchsde', 'torchvision', 'transformers', 'safetensors', 'kornia']
3940
cm_global.pip_overrides = {}
4041
if os.path.exists(pip_overrides_path):

glob/manager_core.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import cm_global
2424
from manager_util import *
2525

26-
version = [2, 48, 8]
26+
version = [2, 49]
2727
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
2828

2929

@@ -103,6 +103,9 @@ def is_blacklisted(name):
103103
if match:
104104
name = match.group(1)
105105

106+
if name in cm_global.pip_blacklist:
107+
return True
108+
106109
if name in cm_global.pip_downgrade_blacklist:
107110
pips = get_installed_packages()
108111

@@ -129,6 +132,9 @@ def is_installed(name):
129132
if match:
130133
name = match.group(1)
131134

135+
if name in cm_global.pip_blacklist:
136+
return True
137+
132138
if name in cm_global.pip_downgrade_blacklist:
133139
pips = get_installed_packages()
134140

prestartup_script.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
security_check.security_check()
2222

23+
cm_global.pip_blacklist = ['torch', 'torchsde', 'torchvision']
2324
cm_global.pip_downgrade_blacklist = ['torch', 'torchsde', 'torchvision', 'transformers', 'safetensors', 'kornia']
2425

2526

@@ -454,6 +455,9 @@ def is_installed(name):
454455
if match:
455456
name = match.group(1)
456457

458+
if name in cm_global.pip_blacklist:
459+
return True
460+
457461
if name in cm_global.pip_downgrade_blacklist:
458462
pips = get_installed_packages()
459463

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-manager"
33
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
4-
version = "2.48.8"
4+
version = "2.49"
55
license = { file = "LICENSE.txt" }
66
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]
77

0 commit comments

Comments
 (0)