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

I can't find how to use the weight settings? #118

Open
simondice opened this issue Apr 4, 2021 · 5 comments
Open

I can't find how to use the weight settings? #118

simondice opened this issue Apr 4, 2021 · 5 comments

Comments

@simondice
Copy link

simondice commented Apr 4, 2021

Hi,

I'm searching for a way to increase style weight so it looks closer to the style than the source image. I can't find the range of the settings, nor the one I should use like in the example "style tradeoff".

Any help?

@nickyvdz-art
Copy link

Hi,

Arguments

--content_img: Filename of the content image. Example: lion.jpg
--content_img_dir: Relative or absolute directory path to the content image. Default: ./image_input
--style_imgs: Filenames of the style images. To use multiple style images, pass a space-separated list. Example: --style_imgs starry-night.jpg
--style_imgs_weights: The blending weights for each style image. Default: 1.0 (assumes only 1 style image)
--style_imgs_dir: Relative or absolute directory path to the style images. Default: ./styles
--init_img_type: Image used to initialize the network. Choices: content, random, style. Default: content
--max_size: Maximum width or height of the input images. Default: 512
--content_weight: Weight for the content loss function. Default: 5e0
--style_weight: Weight for the style loss function. Default: 1e4
--tv_weight: Weight for the total variational loss function. Default: 1e-3
--temporal_weight: Weight for the temporal loss function. Default: 2e2

etc.

its at the end of the README - scroll towards bottom main page

apologies if ive misunderstood

@simondice
Copy link
Author

"apologies if ive misunderstood" yeah kinda

--content_weight: Weight for the content loss function. Default: 5e0
--style_weight: Weight for the style loss function. Default: 1e4
--tv_weight: Weight for the total variational loss function. Default: 1e-3
--temporal_weight: Weight for the temporal loss function. Default: 2e2

I don't get it sorry, so default is 5, 10000, but how does it work?
I'm not familiar with neutal styles equations and I'm bad at maths.
--style_weight 10000
--style_weight 20000? or 1000? or 10000000? is there a range in which it evolves?
I'm looking to generate outputs that doesn't look like the content_img but more like the style, I had pretty funny result using the online generator with "weight 90%", I'm trying to reproduce with this code.
any advices would help
here is an example, from a girl's picture to this using a 90% style weight (here https://deepdreamgenerator.com/)
https://i.imgur.com/JNnBIlH.png
I'm messing around with layers but same, default is 0.2 0.2 0.2 0.2 0.2, how does it work?
Sorry for being such a noob :)

Have a good day

@nickyvdz-art
Copy link

nickyvdz-art commented Apr 4, 2021 via email

@simondice
Copy link
Author

Ok will have a try thanks.

@nickyvdz-art
Copy link

nickyvdz-art commented Apr 4, 2021 via email

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

2 participants