Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trained result totally different than the test result #338

Open
LouisCortes opened this issue Apr 26, 2024 · 3 comments
Open

trained result totally different than the test result #338

LouisCortes opened this issue Apr 26, 2024 · 3 comments

Comments

@LouisCortes
Copy link

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
Copy link

I also meet this problem , can you solve it?

@DuWenTao2
Copy link

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

@kizum
Copy link

kizum commented Jun 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants