Open Nadavc220 opened 3 years ago
The images used to train CycleGAN should be first resized to the same scale e.g. the height or width is 1024. Then due to the GPU memory limitation, a 452x452 patch is cropped to train CycleGAN.
In general, the images used to train CycleGAN and Segmentation model should have the some size.
So did you train BDL with 452x452 inputs (scaled back to 1024) or should I use cycleGan to create images with their original size although I trained for 452x452 patches?
No, the resolution used to train both segmentation model and cyclegan is the same. For cycelgan, I just crop the images to the size 452x452. You can check my code and you can understand the details to resize and crop images.
If I'm not wrong, and @liyunsheng13 can double confirm, the entire process goes like this:
This probably means that we can change the width of our images during the CycleGAN training stage since resizing always happens during segmentation model training.
The process is correct. But I do not think you can change the image resolution when CycleGAN is trained. Because resizing cannot recover the loss of resolution.
Hi, I am a bit confused about the fineSize parameter for the CycleGAN training process. In your Readme file found in the cycle-gan the fineSize mentioned for training is 452, while in a previous post you say cycle-gan is trained with fineSize=1024. This is the previous post I am referring: https://github.com/liyunsheng13/BDL/issues/28
which one is the right one? and in general, what is the fineSize policy for the cycleGAN training? seems reasonable so choose the same input size used in BDL for that dataset so cycleGAN will optimize outputting images with that size and they can be used later in the BDL.py traning.
Thanks =)