Skip to content

Commit

Permalink
fixed: compatibility patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ltdrdata committed Jan 2, 2025
1 parent d22e2fa commit 4401965
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import importlib
import logging

version_code = [1, 2, 2]
version_code = [1, 2, 3]
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
logging.info(f"### Loading: ComfyUI-Impact-Subpack ({version_str})")

Expand Down
3 changes: 2 additions & 1 deletion modules/subcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def torch_wrapper(*args, **kwargs):
return orig_torch_load(*args, **kwargs)
else:
logging.warning("[Impact Subpack] Your torch version is outdated, and security features cannot be applied properly.")
return orig_torch_load(*args, **kwargs, weights_only=False)
kwargs['weights_only'] = False
return orig_torch_load(*args, **kwargs)

torch.load = torch_wrapper

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui-impact-subpack"
description = "This node pack provides nodes that complement the Impact Pack, such as the UltralyticsDetectorProvider."
version = "1.2.2"
version = "1.2.3"
license = { file = "LICENSE.txt" }
dependencies = ["matplotlib", "ultralytics==8.3.40"]

Expand Down

0 comments on commit 4401965

Please sign in to comment.