phillipi / pix2pix

Image-to-image translation with conditional adversarial nets
https://phillipi.github.io/pix2pix/
Other
10.11k stars 1.71k forks source link

how to solve The image that needs to be converted also can be a condition image? #199

Open px4869 opened 4 years ago

px4869 commented 4 years ago

in some case, The image that needs to be converted also can be also a condition image,but now this image should be consider once or twice at the process of torch.cat() at the generator ?

junyanz commented 4 years ago

Do you mean an auto-encoder? You can still use torch.cat() if you don't want to change the code. But an unconditional discriminator D(G(x)) should also work (rather than using conditional discriminator D(G(x), x)). You need to change the input_nc for the discriminator.