WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 5ac3b26

Browse files
Update warning for old pytorch version. (#11319)
Versions below 2.4 are no longer supported. We will not break support on purpose but will not fix it if we do.
1 parent 6592bff commit 5ac3b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comfy/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def scalar(*args, **kwargs):
5353
ALWAYS_SAFE_LOAD = True
5454
logging.info("Checkpoint files will always be loaded safely.")
5555
else:
56-
logging.info("Warning, you are using an old pytorch version and some ckpt/pt files might be loaded unsafely. Upgrading to 2.4 or above is recommended.")
56+
logging.warning("Warning, you are using an old pytorch version and some ckpt/pt files might be loaded unsafely. Upgrading to 2.4 or above is recommended as older versions of pytorch are no longer supported.")
5757

5858
def load_torch_file(ckpt, safe_load=False, device=None, return_metadata=False):
5959
if device is None:

0 commit comments

Comments
 (0)