Open nehaleosharma opened 5 years ago
The model needs to be trained for 200 epochs.
Good Morning Sir As discussed I have trained the model with 200 epochs with the above written training script. But, did not get the result.I am astonished what I am doing wrong.Does this require any changes in code which i am missing. trainA, trainB are having 1064(horses) and 1334 (zebra) images respectively. testA having 120(horses) and testB 140(zebra) images respectively.
and most importantly Thanks for replying every query so frequently.Looking forward for your reply. Thanks
Hi @nehaleosharma , did you modify any code, or is it directly running the training command from the unmodified code?
Also, do you get this kind of NO CONVERSION result for all input images? It's natural that CycleGAN cannot translate a few images when there is identity loss.
Firstly, I tried without any modification in code but not complete till 200 epochs (it was till maximum 37epochs) .I tried facade dataset it works as shown in original paper. secondly tried with two modification as mentioned below:
Please use the original (and the latest) code and train the models for 200 epochs. We haven't tested wgan-gp and different learning rates. If you want bigger changes, you can use --lambda_identity 0
as used in the paper for horse2zebra.
Good morning Sir, Referenced to previous conversation on horse2zebra conversion. I have completed 200 epochs and attached the screen shot of conversion in both directions(2files) It was learning and good experience .Forward conversion is good but the conversion from zebra2horse is not good in any image .kindly guide what could be reason for that. Thanks
The zebra2horse's results are worse than horse2zebra's results, as sometimes, the generator has to preserve some zebra stripes in the generated horse images so that later it can reconstruct the original zebra images. This is one of the limitations of CycleGAN. See this work for more details.
D drive pytorch-CycleGAN-and-pix2pix-master(download or cloned from github) inside it : in dataset there horse2zebra dataset has subfolder: testA, testB, trainA, trainB script: on anaconda prompt:(conversion_1 is just name given)