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

Why paired image for sketch is ground truth in loss function? #4

Closed
dexhunter opened this issue Aug 17, 2017 · 5 comments
Closed

Why paired image for sketch is ground truth in loss function? #4

dexhunter opened this issue Aug 17, 2017 · 5 comments

Comments

@dexhunter
Copy link
Contributor

Hi!

The loss function in the paper is defined as following:
loss

I was wondering why the y is the paired domain of painting. From my understanding, the ground truth should be style image so the output will be more close to the style you want transferred to.

Does it make more sense to use like V(x) - G(x, y) in this case?

@lllyasviel
Copy link
Owner

lllyasviel commented Aug 18, 2017

V(x) is shaped as 1x1x4096
G(x, y) is shaped as 256x256x3 or 512x512x3
you can not make diff for them.
v(x) is style of x
G(x, y) , y = v(x) means "use sketch of x and style of x to generate x itself."
When the dataset is large enough, it somehow works like style transfer.

@dexhunter
Copy link
Contributor Author

dexhunter commented Aug 18, 2017 via email

@lllyasviel
Copy link
Owner

maybe and you can try

@dexhunter
Copy link
Contributor Author

dexhunter commented Aug 18, 2017 via email

@lllyasviel
Copy link
Owner

Code is coming soon.

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