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

Artifacts in the generated images #5

Open
soumyadeepg opened this issue Oct 8, 2017 · 3 comments
Open

Artifacts in the generated images #5

soumyadeepg opened this issue Oct 8, 2017 · 3 comments

Comments

@soumyadeepg
Copy link

Hi,

I am getting a lot of artifacts when i am applying the code to train and test on face images.
@mrzhu-cool Any suggestions on how to avoid them ??

Thanks in advance

@XiSHEN0220
Copy link

It seems that the original code uses nn.ReflectionPad2d while in this version the author directly uses Zero Padding, you can change to reflection padding to see whether it is better.

Another way is to train on small patches, since the network is composed of all convolutional layers, you can test it with larger patches. Learning on small patches, means the network has to pay more attention on learning how to handle the border. This might be helpful to alleviate the artifacts.

@jajas
Copy link

jajas commented Nov 13, 2018

Can anyone post some images affected by artefacts, I were playing around but it seems to work well on faces and on cityscapes.

@mrzhu-cool
Copy link
Owner

Hi, I didn't augument the data in "DatasetFromFolder" before. Adding this strategy may help preventing the artifacts.

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

4 participants