Skip to content

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

@netcorefan1

Description

@netcorefan1
          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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions