hubert0527 / infinityGAN

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

Problems with outpainting #7

Closed TomFrank0217 closed 2 years ago

TomFrank0217 commented 2 years ago

When i try to do outpainting. CUDA_VISIBLE_DEVICES="0" python test.py --model-config="./configs/model/InfinityGAN.yaml" --test-config="./configs/test/inversion_256x256_L2R.yaml" 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 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? where is the correct pkl file? if the pkl file is correct? how to solve the second question?

TomFrank0217 commented 2 years ago

When i try to do outpainting. CUDA_VISIBLE_DEVICES="0" python test.py --model-config="./configs/model/InfinityGAN.yaml" --test-config="./configs/test/inversion_256x256_L2R.yaml" 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 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? where is the correct pkl file? if the pkl file is correct? how to solve the second question?