Open
Description
Hey,
I had issues with the loading of this extension in comfyui but managed to find a solution :
In the misc.py around the line 67 there is :
IS_HIGH_VERSION = [ int(m) for m in list( re.findall( r"^([0-9]+)\.([0-9]+)\.([0-9]+)([^0-9][a-zA-Z0-9]*)?(\+git.*)?$", torch.__version__, )[0][:3] ) ] >= [1, 12, 0]
wich was causing errors, i'v replaced this by :
version_str = torch.__version__
version_match = re.match(r"^(\d+)\.(\d+)\.(\d+)", version_str)
if version_match:
version_numbers = [int(num) for num in version_match.groups()]
else:
version_numbers = [0, 0, 0]
IS_HIGH_VERSION = version_numbers >= [1, 12, 0]
Hoping this could help some of you,
Metadata
Metadata
Assignees
Labels
No labels