hubert0527 / infinityGAN

InfinityGAN: Towards Infinite-Resolution Image Synthesis
Other
324 stars 25 forks source link

Problem with outpainting #8

Open TomFrank0217 opened 2 years ago

TomFrank0217 commented 2 years ago

When i try to do outpainting.

  1. CUDA_VISIBLE_DEVICES="0" python test.py --model-config="./configs/model/InfinityGAN.yaml" --test-config="./configs/test/inversion_256x256_L2R.yaml"
  2. CUDA_VISIBLE_DEVICES="0" python test.py --model-config="./configs/model/InfinityGAN.yaml" --test-config="./configs/test/outpaint_with_fused_gen_256x256.yaml" --inv-records="./logs/InfinityGAN/test/outpaint_with_fused_gen_256x256/stats/.pkl" --inv-placements=0.5,0.25 When I submit the second instruction, there is no pkl in the folder ./logs/InfinityGAN/test/outpaint_with_fused_gen_256x256/stats/. I don't know where is the pkl file. I find that there is a pkl file ("./logs/Infi nityGAN/test/inversion_256x256_L2R/stats/000000.pkl") in another folder, Is this the expected file? I copy the file from /logs/Infi nityGAN/test/inversion_256x256_L2R/stats/ to "./logs/InfinityGAN/test/outpaint_with_fused_gen_256x256/stats/. But finally, the bug is as follows. File"/home/hanzhifan/infinityGAN/test_managers/testing_vars_wrapper.py", line 271, in replace_by_records assert inv_img_st_loc_x >= 0 and inv_img_st_loc_y >= 0, AssertionError: Top-left corner of intended image exceeds image boundary. Got (-25, -1).

Could u help me solve this problem? 1.where is the correct pkl file? 2.if the pkl file is correct? how to solve the second question?

kiashann commented 2 years ago

Hi, How did you run the command for outpainting without error? What was your input image? Did you use .png image for test? I got error about lmdb dataset and couldn't run this CUDA_VISIBLE_DEVICES="0" python test.py --model-config="./configs/model/InfinityGAN.yaml" --test-config="./configs/test/inversion_256x256_L2R.yaml" without error. @TomFrank0217

hubert0527 commented 2 years ago

Hi, sorry for the late reply. The released config was wrong (I don't know how the config get overwritten). Please use the updated config at ./configs/test/outpaint_with_fused_gen_256x256.yaml and replace the flag in the second command with --inv-placements=0.5,0.5.