Open 0000sir opened 8 years ago
I and many others have tried to create such a script, but failed at the overlapping crops, and feathering. It can get really tedious doing it all manually. Thank you for sharing the script with us!
@0000sir Testing out the script, does it only take your style and content image as inputs, or can the rest of the Neural-Style parameters also used?
ProGamerGov notifications@github.com kirjoitti 15.10.2016 kello 20.43:
@0000sir https://github.com/0000sir Testing out the script, does it only take your style and content image as inputs, or can the rest of the Neural-Style parameters also used?
I tried it today, had to go edit the other parameters in the script file, the neural style command is towards the end.
@htoyryla
Yep, they are at the second last section of the script:
neural_style(){
echo "Neural Style Transfering "$1
if [ ! -s $3 ]; then
th neural_style.lua -content_image $1 -style_image $2 -output_image $3 \
-image_size 1000 -print_iter 100 -backend cudnn -gpu 0 -save_iter 0 \
-style_weight 20 -num_iterations 500
#-original_colors 1
Also, how well did the script work for you @htoyryla?
@ProGamerGov It's a bit busy these days, just like @htoyryla said, neural-style command is located at the end of script. I'm sure it works, I generated over 30 images with this script. Thank you @htoyryla 👍
Do you have example output ? "Feathering" is just blending colors ?
Following the instructions from https://github.com/jcjohnson/neural-style/wiki/Techniques-For-Increasing-Image-Quality-Without-Buying-a-Better-GPU , I wrote a script to generate larger image file ( 3000px * 3000px in this case )
Checkout https://github.com/0000sir/larger-neural-style for original files or copy script below as bigbrush.sh
Usage: bigbrush.sh input_file.jpg style_file.jpg
It works for me, wish it's useful to you.