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

How to test the trained generator models? #9

Open
kalai2033 opened this issue Jun 30, 2020 · 1 comment
Open

How to test the trained generator models? #9

kalai2033 opened this issue Jun 30, 2020 · 1 comment

Comments

@kalai2033
Copy link

kalai2033 commented Jun 30, 2020

I have completed the training successfully using Image2Image.py. But I could not test the model using test images. Whenever i run with --eval , the model generates the inference for random images in the training dataset. Could you please help me with it?

Also in the eval() function,

image

generate_images function is hard coded with the value of 100. Why is that so?

@f90
Copy link
Owner

f90 commented Jul 7, 2020

So you are saying everything works well except it generates predictions for the train dataset? I don't know why that would be the case, I set it up to use the validation dataset here, a few lines before the generate_images call you cited:

# DATASET
dataset = get_aligned_dataset(opt, "val")
input_dataset = CropDataset(dataset, lambda x: x[0:dataset.A_nc, :, :])

I hard-coded the number of images arbitrarily to 100 to have a decent number of outputs to look at, but you can freely change it without breaking the code in any way.

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

2 participants