-
Notifications
You must be signed in to change notification settings - Fork 418
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
Questions about Neural Style implementation #24
Comments
I'm wondering if the second and third issues in my list are caused by software versions... I had to upgrade Theano to the version in the Git repository since the PIP version did not have pooling modes for convolution required by the latest Lasagne—and it causes an error otherwise. I believe things were more reliable before the upgrade (though I had to hack the average pooling out for it to work). Which combination of versions/revisions were you using for Lasagne and Theano? |
It's mostly a notebook because they can be browsed and rendered directly on github: https://github.com/Lasagne/Recipes/blob/master/examples/styletransfer/Art%20Style%20Transfer.ipynb
Yes, just set
Yes, we've tried to prominently mention this in the install instructions: http://lasagne.readthedocs.org/en/latest/user/installation.html#stable-lasagne-release
I'm working with the bleeding-edge version of both (that's required for I'll leave the other technical questions up to Eben! |
Hi @alexjc, thanks for the questions. I don't know what versions I was using, but they were likely the current master when the notebook was committed - I think it is probably fine with the current versions, but I'll try to rerun later and confirm that. I haven't seen that particular LBFGS error, but using scipy is definitely a weak point, I'd like to find an alternative - perhaps I will see if the Torch optimizer can be wrapped/converted easily. As for edge/image size effects I haven't really investigated, I'll have to get back to you on that. |
Many thanks @f0k and @ebenolson. I've traced the major problems down to using I will report back on the other two issues, which seem minor in comparison! |
I have also seen weird border effects when I have used this example for my own work. Have we figured out a reason for this? :) |
@christopher-beckham Try using an image size that's a multiple of 16 or 32, depending on which layers you use. |
I have a few questions about the notebook with the implementation of "A Neural Algorithm for Artistic Style". Hopefully this is the right place for them? It'd be easier to work with and make pull requests if this was a script rather than a notebook, but it's up to you.
Overall I think this is by far the prettiest implementation I've seen of the algorithm, and it's been a pleasure to work with. My questions:
+2
to width and height?lbfgs
in scipy to be quite unstable (compared to the one in Torch used by Justin's implementation), as it often returns the error below. This seems to be quite random depending on image size/parameters, and adding new features to the algorithm isn't helping. Any ideas?Thanks again for the code, I've been very impressed with Lasagne because of it!
The text was updated successfully, but these errors were encountered: