microsoft / Bringing-Old-Photos-Back-to-Life

Bringing Old Photo Back to Life (CVPR 2020 oral)
https://arxiv.org/abs/2004.09484
MIT License
15.14k stars 2k forks source link

List Index Out of Range #220

Open yeasir2148 opened 2 years ago

yeasir2148 commented 2 years ago

I tried two images. Both very old, one with lots of scratches, the other with some. I got List Index Out of Range both times.

noobyogi0010 commented 2 years ago

Hi @yeasir2148 Can you please provide more details about what you tried? It'll be great if you could mention the steps to reproduce, the environment, and the setup in which you ran the model. Thanks.

yeasir2148 commented 2 years ago

Hi @yeasir2148 Can you please provide more details about what you tried? It'll be great if you could mention the steps to reproduce, the environment, and the setup in which you ran the model. Thanks.

Hi @noobyogi0010 ,

Thanks for replying. Here are the steps:

Upon submitting, on the right hand side of the page, you get the Output section, where on step/stage 4, I get the error List index out of range Screenshot from 2022-01-22 14-37-32

Iniput image: Untitled-4

agriardyan commented 2 years ago

Happened to me as well in replicate.com. Also tried in collab but no error output, only that the output file is not generated. Any workaround?

tongchangD commented 2 years ago

hello ,How much memory do you use, i use 3080ti to restore 640*480 pic, it suggests out of memory

rodrigobdz commented 2 years ago

Try checking the HR box, worked for me.

Rumlinv commented 1 year ago

Does not work "GPU -1"

python run.py --input_folder /home/alex/Bringing-Old-Photos-Back-to-Life/test_images/old_w_scratch/ --output_folder /home/alex/Bringing-Old-Photos-Back-to-Life --GPU -1 Running Stage 1: Overall restoration test.py:19: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead. def data_transforms(img, method=Image.BILINEAR, scale=False): Traceback (most recent call last): File "test.py", line 98, in model.initialize(opt) File "/home/alex/Bringing-Old-Photos-Back-to-Life/Global/models/mapping_model.py", line 136, in initialize self.netG_A.cuda(opt.gpu_ids[0]) IndexError: list index out of range Finish Stage 1 ...

Running Stage 2: Face Detection Finish Stage 2 ...

Running Stage 3: Face Enhancement The main GPU is Traceback (most recent call last): File "test_face.py", line 13, in opt = TestOptions().parse() File "/home/alex/Bringing-Old-Photos-Back-to-Life/Face_Enhancement/options/base_options.py", line 285, in parse print(opt.gpu_ids[0]) IndexError: list index out of range Finish Stage 3 ...

Running Stage 4: Blending Finish Stage 4 ...

All the processing is done. Please check the results.