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

not an issue, but a question #4

Open
tcglarry opened this issue Mar 5, 2017 · 1 comment
Open

not an issue, but a question #4

tcglarry opened this issue Mar 5, 2017 · 1 comment

Comments

@tcglarry
Copy link

tcglarry commented Mar 5, 2017

Hi Mark, I have read the paper, and watched your video, I think I got the very basic idea of the style transfer. However, there is one line I don't understand (maybe I am really not familiar with tensrorflow)
In the following
cost_content = sum(map(lambda l,: l[1]*build_content_loss(sess.run(net[l[0]]) , net[l[0]])
, CONTENT_LAYERS))

why using sess.run(net[l[0]]) vs. net[l[0] as cost computation ? what is the difference for net[0] in "sess.run' vs net[0] ?

@ckmarkoh
Copy link
Owner

because "net" is a dictionary, not a list. and l[0] is a key for this dictionary.

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