You need to pull the repo and update your local code, this issue had been fixed.
For the file: CodeFormer\facelib\detection\yolov5face\face_detector.py
IS_HIGH_VERSION = tuple(map(int, torch.__version__.split('+')[0].split('.'))) >= (1, 9, 0)
was changed to:
IS_HIGH_VERSION = tuple(map(int, torch.__version__.split('+')[0].split('.')[:2])) >= (1, 9, 0)
Originally posted by @sczhou in #63 (comment)
Just want to signal that the same bug reappeared with the current nightly version of PyTorch (PyTorch 2.0.0.dev20230219+cu118). The parsing algorithm fails with an IndexError: list index out of range
For the file: CodeFormer\facelib\detection\yolov5face\face_detector.py
IS_HIGH_VERSION = tuple(map(int, torch.__version__.split('+')[0].split('.'))) >= (1, 9, 0)was changed to:
IS_HIGH_VERSION = tuple(map(int, torch.__version__.split('+')[0].split('.')[:2])) >= (1, 9, 0)Originally posted by @sczhou in #63 (comment)
Just want to signal that the same bug reappeared with the current nightly version of PyTorch (PyTorch 2.0.0.dev20230219+cu118). The parsing algorithm fails with an
IndexError: list index out of range