Bringing-Old-Photos-Back-to-Life
Bringing-Old-Photos-Back-to-Life copied to clipboard
List Index Out of Range
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.
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 @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:
- Visit https://replicate.com/microsoft/bringing-old-photos-back-to-life
- Select the
Overview
tab - Select the
Run Model
tab (If you are not alraedy there) - Upload an image on the
Input
section - Check the
with_scratch
checkbox - Click
Submit
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
Iniput image:
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?
hello ,How much memory do you use, i use 3080ti to restore 640*480 pic, it suggests out of memory
Try checking the HR box, worked for me.
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
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
Running Stage 4: Blending Finish Stage 4 ...
All the processing is done. Please check the results.