Pytorch-cyclegan-and-pix2pix: Can I use AtoB model to BtoA generation?

Created on 9 May 2019  ·  1Comment  ·  Source: junyanz/pytorch-CycleGAN-and-pix2pix

I have trained a model which translate images from data set A to data set B. Then I could use images from A to generate B. How can I use images from B to generate A just use the AtoB model? At test phase, I use the argument --direction BtoA, but the generated results seem to be wrong.

the AtoB test command as follows:

python test.py --name city2foggy --dataroot datasets/city2foggy/ --model test --dataset_mode city2foggy --preprocess none --num_test 2975

add --direction BtoA for BtoA translation.

Most helpful comment

I don't think that you can. If you are using pix2pix, you need to train a new model from B->A. If you are using cyclegan, it will come up with models with both directions.

>All comments

I don't think that you can. If you are using pix2pix, you need to train a new model from B->A. If you are using cyclegan, it will come up with models with both directions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HectorAnadon picture HectorAnadon  ·  4Comments

davidwessman picture davidwessman  ·  3Comments

lyhangustc picture lyhangustc  ·  5Comments

roypratyush picture roypratyush  ·  3Comments

AlexanLee picture AlexanLee  ·  4Comments