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

Trying to under stand the loss functions #53

Closed
csinpi opened this issue Feb 1, 2019 · 3 comments
Closed

Trying to under stand the loss functions #53

csinpi opened this issue Feb 1, 2019 · 3 comments

Comments

@csinpi
Copy link

csinpi commented Feb 1, 2019

for j in range(nb_style_images):

Between these two lines, sl is only decided by the last style image? Am I understanding it correctly?

@titu1994
Copy link
Owner

titu1994 commented Feb 2, 2019

J is indexing each of the available style layers. Sl1 and Sl2 compute the loss separately for each of the J style images passed, and then sl computes the difference between each of these (sl1_j, sl2_j) pairs, and these differences are summed up using geometric weighing of the loss terms based on depth of the network.

@csinpi
Copy link
Author

csinpi commented Feb 2, 2019

That makes sense. For some reason I thought Line 518 was outside the for-loop started in Line 513. Thanks for the prompt reply.

@titu1994
Copy link
Owner

titu1994 commented Feb 2, 2019

Glad I could help!

@titu1994 titu1994 closed this as completed Feb 2, 2019
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