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

Doubt in Content/Style Loss Functions #11

Open
ShivamDuggal4 opened this issue Mar 17, 2018 · 0 comments
Open

Doubt in Content/Style Loss Functions #11

ShivamDuggal4 opened this issue Mar 17, 2018 · 0 comments

Comments

@ShivamDuggal4
Copy link

Hi, I have . a doubt regarding the loss functions. How is the current value of the genearted image(by current, I mean the updated Variable) compared with the actual content/style image.

def content_loss_func(sess, model):
return _content_loss(sess.run(model['conv4_2']), model['conv4_2'])

In this function, sess.run(model['conv4_2']) is basically sess.run(model['conv4_2'],feed_dict={input_image = content_image})

Shouldn't the second parameter be sess.run(model['conv4_2'],feed_dict={input_image = generated_image})

How does just running model['conv4_2'] pick up the latest value of the tensor ' conv4_2' with input as generated image

Same with the style loss function.

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

1 participant