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

Helper python script (w/ style_layer_weights) #365

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

MrZoidberg
Copy link

I've created a helper Python (tested on 3.5.2) script run_neural_style.py to automate output file path and name generation.

python3 run_neural_style.py -style_image styles/style22_750.jpg -content_image input/sample1.jpg -optimizer adam -init image -output_path output -backend cudnn -style_weight 800 -content_weight 200 -style_scale 1.8 -learning_rate 3 -image_size 300 -tv_weight 0.001 -seed 150 -num_iterations 500 will create a output/style22_750/sample1 folder and the result file name will be i500.0cw200_sw600_adam_lr3_sc1.8_tv0.001.jpg

The command-line arguments are similar to the original ones, I've documented the difference in the readme.

Unfortunately, my fork initially was merged with the style_layer_weights PR, but that's not a destructive change, so I don't think it's a problem.

There are too many commits in my brach with small fixes, so if you want to merge my changes, I'd recommend to merge them as one commit.

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

Successfully merging this pull request may close these issues.

1 participant