CodeFormer icon indicating copy to clipboard operation
CodeFormer copied to clipboard

Unable to start

Open bergstar opened this issue 1 year ago • 1 comments

Following steps in installation guide gives this:

(codeformer) C:\Users\HP\Development\CodeFormer>python basicsr/setup.py develop
python: can't open file 'basicsr/setup.py': [Errno 2] No such file or directory

basicsr/ is there but has no setup.py file.

Downloading the models fail as well:

(codeformer) C:\Users\HP\Development\CodeFormer>python scripts/download_pretrained_models.py facelib
Traceback (most recent call last):
  File "scripts/download_pretrained_models.py", line 5, in <module>
    from basicsr.utils.download_util import load_file_from_url
ModuleNotFoundError: No module named 'basicsr'

Models has been installed as by instructions.

Running a base test gives this error:

(codeformer) C:\Users\HP\Development\CodeFormer>python inference_codeformer.py -w 0.5 --has_aligned --input_path input.png
Traceback (most recent call last):
  File "inference_codeformer.py", line 9, in <module>
    from basicsr.utils.misc import gpu_is_available, get_device
ImportError: cannot import name 'gpu_is_available' from 'basicsr.utils.misc' (C:\Users\HP\Development\CodeFormer\basicsr\utils\misc.py)

Windows 11 on i7 with 3090. General versions running:

(codeformer) C:\Users\HP\Development\CodeFormer>conda -V
conda 23.1.0

(codeformer) C:\Users\HP\Development\CodeFormer>python -V
Python 3.8.16

(codeformer) C:\Users\HP\Development\CodeFormer>pip -V
pip 23.0.1 from C:\Users\HP\.conda\envs\codeformer\lib\site-packages\pip (python 3.8)

bergstar avatar Mar 12 '23 22:03 bergstar