Bringing-Old-Photos-Back-to-Life icon indicating copy to clipboard operation
Bringing-Old-Photos-Back-to-Life copied to clipboard

Global Restoration issue

Open semel1 opened this issue 3 years ago • 2 comments

After running: cd Global/ python test.py --Quality_restore
--test_input [test_image_folder_path]
--outputs_dir [output_path] on 1440x1080 input images, "output_dir" consists cropped 256x256 images

semel1 avatar Dec 28 '21 22:12 semel1

facing the same issue

napopa avatar Jan 30 '22 21:01 napopa

So I figured out a very jank workaround. Note: I really, really suck at programming.

in Global/test.py on line 44:

return transforms.CenterCrop(256)(A)

Change 256 here to whatever size you want your output. i.e. for a 1440x1080 image, set it to 1440. You will have to manually crop the output if it's not 1:1 w:h ratio.

After getting this to work, the effect seems pretty minimal and probably not worth the effort tbh lol. I have to assume the effect is better with the intended tiling method.

wavymulder avatar May 29 '22 06:05 wavymulder