NVIDIA / pix2pixHD

Synthesizing and manipulating 2048x1024 images with conditional GANs
https://tcwang0509.github.io/pix2pixHD/
Other
6.67k stars 1.39k forks source link

trained result totally different than the test result #338

Open LouisCortes opened 6 months ago

LouisCortes commented 6 months ago

I trained a model giving back this result : image with this comand : python train.py --label_nc 0 --no_instance --name Dal --dataroot .\pix2pixHD\datasets\Dal --save_epoch_freq 5

But when I test the model I get this : image with this command : python test.py --name Dal --netG local --ngf 32 --resize_or_crop none --label_nc 0 --no_instance --dataroot "./pix2pixHD/Test"

I don't know if it's normal, there seems to be a very big difference between the two.

DuWenTao2 commented 6 months ago

I also meet this problem , can you solve it?

DuWenTao2 commented 6 months ago

hello I have same problem as you , are you sloving it ?

kizum commented 5 months ago

The command you used to train the network only train the global generator. But the test command you used here is supposed to run with the local enhancer + global generator. (the '--netG local' argument)

So modify the test command to: python test.py --name Dal --ngf 32 --resize_or_crop none --label_nc 0 --no_instance --dataroot "./pix2pixHD/Test And it should be fine.