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

Can you share your training parameters? I can't get as good a performance as you. #94

Open
yunlm opened this issue Jul 26, 2022 · 4 comments

Comments

@yunlm
Copy link

yunlm commented Jul 26, 2022

No description provided.

@ProGamerGov
Copy link
Owner

@yunlm Try using the following parameters with multiscale generation:

-init image -tv_weight 0 -learning_rate 2 -init image -content_weight 100 -style_weight 6000

@strohrbaugh
Copy link

maroon

Starry_Night

Using the above two images and the following parameters
`python neural_style.py -style_image ~/Documents/NST/style/Starry-Night.jpg -content_image ~/Documents/NST/maroon.JPG -output_image maroonxstarry.jpg -model_file models/vgg19-d01eb7cb.pth -gpu 0 -num_iterations 2000 -content_weight 10 -style_weight 50000 -image_size 1024 -optimizer lbfgs -init image -tv_weight 0 -learning_rate 2 -init image -style_scale 1.5 -original_colors 1',
I produced this:

MaroonXStarry

I'm finding the style_scale parameter to be very useful. Here's the same pair redone using a style scale of 0.5
MaroonXStarry_scale0 5
:

@ProGamerGov
Copy link
Owner

@strohrbaugh You should start off at a lower image size and then scale it up with multiple steps of increasing image size (multiscale rendering).

@strohrbaugh
Copy link

You're so right. I'm glad I finally made the time to try that out.

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

3 participants