-
Notifications
You must be signed in to change notification settings - Fork 174
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
How we can call it from code? #56
Comments
Here's my suggestion on how to make this function as-is as well as from code. in neural_style.py, rename the 'main' function to 'transfer', and have it accept a params object so it looks like this: then create another function to replace main like this:
To construct this object, we'll add a Class for all of the known params:
Finally, you can now use it in another file like this:
I've got a project where it would be handy to have a Style Transfer web server, so this is how I'm implementing it. |
Hey are you done building already? |
How we can call it from code like call a function to generate style image?
The text was updated successfully, but these errors were encountered: