CodeFormer icon indicating copy to clipboard operation
CodeFormer copied to clipboard

Issues with CodeFormer and nightly version of PyTorch 2.0.0.dev20230219+cu118

Open netcorefan1 opened this issue 2 years ago • 0 comments

          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 https://github.com/sczhou/CodeFormer/issues/63#issuecomment-1306904419

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

netcorefan1 avatar Feb 20 '23 04:02 netcorefan1