Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range - pytorch nightly/cuda 12.1 #279

Open
sloflo opened this issue Jul 29, 2023 · 1 comment
Open

IndexError: list index out of range - pytorch nightly/cuda 12.1 #279

sloflo opened this issue Jul 29, 2023 · 1 comment

Comments

@sloflo
Copy link

sloflo commented Jul 29, 2023

Ran the entire setup but had to install pytorch nightly to match my cuda version. Verified pytorch and cuda are working fine.

print(torch.__version__) 2.1.0.dev20230728+cu121 print(torch.version.cuda) 12.1 print(torch.cuda.is_available()) True

But now I get this error:

(codeformer) D:\CodeFormer>python inference_codeformer.py -w 1 --input_path "inputs\whole_imgs\00.jpg"

Traceback (most recent call last):
  File "inference_codeformer.py", line 7, in <module>
    from basicsr.utils import imwrite, img2tensor, tensor2img
  File "D:\CodeFormer\basicsr\__init__.py", line 3, in <module>
    from .archs import *
  File "D:\CodeFormer\basicsr\archs\__init__.py", line 5, in <module>
    from basicsr.utils import get_root_logger, scandir
  File "D:\CodeFormer\basicsr\utils\__init__.py", line 4, in <module>
    from .misc import check_resume, get_time_str, make_exp_dirs, mkdir_and_rename, scandir, set_random_seed, sizeof_fmt
  File "D:\CodeFormer\basicsr\utils\misc.py", line 12, in <module>
    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.*)?$",\
IndexError: list index out of range
@miiguelkf
Copy link

PR #281 resolved my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants