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

Could I use the dsgan with my own image? #9

Closed
zrongcheng opened this issue Apr 8, 2020 · 4 comments
Closed

Could I use the dsgan with my own image? #9

zrongcheng opened this issue Apr 8, 2020 · 4 comments

Comments

@zrongcheng
Copy link

zrongcheng commented Apr 8, 2020

dsgan
Due to the sec 4.1 in paper, I had a confusion.
If could, I want train the pairs('generated DF2K lr' and 'DF2K hr'), does it could get on?
Thanks.

@manuelfritsche
Copy link
Owner

I am not sure if I understand your question correctly, but yes you can use your own corrupted images for z.

@zrongcheng
Copy link
Author

My question is all in the picture above, notice the red word.
But i found the dsgan/data_loader.py, the meaning is below.
dsgan1

@manuelfritsche
Copy link
Owner

Yes, we used this configuration for training because the goal was to generate images with the same characteristics as the original input images. Instead of the "Cropped Noise image" you can also feed in any other dataset. However, this will require some small modifications with the data_loaders used. For example, you could use the DiscDataloader from dsgan/data_loader.py to serve the second dataset for the discriminator and set cropped=False in the TrainDataset. If you simply zip these two datasets together in the loop, then the rest should work fine. For evaluation puropses you could do the same thing for the valdiation dataset, but most of the measures there are not even using this second dataset, so it is not essential.

@zrongcheng
Copy link
Author

Great, thank you very much, I understand what you mean.

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