facerestore_cf icon indicating copy to clipboard operation
facerestore_cf copied to clipboard

Torch Versions in comfy standalone newer than 1.9 maybe causing an install error

Open EricRollei opened this issue 1 year ago • 4 comments

In the face_detector.py line 22

IS_HIGH_VERSION = torch_version.version >= "1.9.0"

gives me the following install error:

File "A:\Comfy_Aug/ComfyUI\custom_nodes\facerestore\facelib\detection\yolov5face\face_detector.py", line 20, in IS_HIGH_VERSION = tuple(map(int, torch.version.split('+')[0].split('.'))) >= (1, 9, 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: 'dev20230731'

Cannot import A:\Comfy_Aug\ComfyUI\custom_nodes\facerestore module for custom nodes: invalid literal for int() with base 10: 'dev20230731'

EricRollei avatar Nov 01 '23 18:11 EricRollei