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

the style code of the specified reference is not used in gen_ref.py #5

Open
zhangsdly opened this issue Nov 19, 2020 · 5 comments
Open

Comments

@zhangsdly
Copy link

hi, Appreciate for sharing the implementation! There is a question that the style code of the specified reference is not used in gen_ref.py. Noise is used to generate ref and identity. Could you please to fix it ?
Thanks!

@HideUnderBush
Copy link
Owner

hi, Appreciate for sharing the implementation! There is a question that the style code of the specified reference is not used in gen_ref.py. Noise is used to generate ref and identity. Could you please to fix it ?
Thanks!

emmm...did you use the option --fac_ref reference_inverse.pt? the reference_inverse.pt should be inversed code of the reference image.

@zhangsdly
Copy link
Author

hi, Appreciate for sharing the implementation! There is a question that the style code of the specified reference is not used in gen_ref.py. Noise is used to generate ref and identity. Could you please to fix it ?
Thanks!

emmm...did you use the option --fac_ref reference_inverse.pt? the reference_inverse.pt should be inversed code of the reference image.

I did. The 'fact_ref' is used to calculate style_latent, but the style_latent is not used in the next process.

@HideUnderBush
Copy link
Owner

hi, Appreciate for sharing the implementation! There is a question that the style code of the specified reference is not used in gen_ref.py. Noise is used to generate ref and identity. Could you please to fix it ?
Thanks!

emmm...did you use the option --fac_ref reference_inverse.pt? the reference_inverse.pt should be inversed code of the reference image.

I did. The 'fact_ref' is used to calculate style_latent, but the style_latent is not used in the next process.

Just check-in a hotfix, please have a try. Not sure if it works 100% since I cannot access server to check previous code now. Let me know if it still does not work.

@zhangsdly
Copy link
Author

hi, Appreciate for sharing the implementation! There is a question that the style code of the specified reference is not used in gen_ref.py. Noise is used to generate ref and identity. Could you please to fix it ?
Thanks!

emmm...did you use the option --fac_ref reference_inverse.pt? the reference_inverse.pt should be inversed code of the reference image.

I did. The 'fact_ref' is used to calculate style_latent, but the style_latent is not used in the next process.

Just check-in a hotfix, please have a try. Not sure if it works 100% since I cannot access server to check previous code now. Let me know if it still does not work.

I have tried but it still does not work. The result is not related to the source image and reference image.
As stated in the paper, the output not only preserves the style of the reference images in terms of color,light condition, texture and so forth, but it also maintains semantic similarity to the source images.

@HideUnderBush
Copy link
Owner

hi, Appreciate for sharing the implementation! There is a question that the style code of the specified reference is not used in gen_ref.py. Noise is used to generate ref and identity. Could you please to fix it ?
Thanks!

emmm...did you use the option --fac_ref reference_inverse.pt? the reference_inverse.pt should be inversed code of the reference image.

I did. The 'fact_ref' is used to calculate style_latent, but the style_latent is not used in the next process.

Just check-in a hotfix, please have a try. Not sure if it works 100% since I cannot access server to check previous code now. Let me know if it still does not work.

I have tried but it still does not work. The result is not related to the source image and reference image.
As stated in the paper, the output not only preserves the style of the reference images in terms of color,light condition, texture and so forth, but it also maintains semantic similarity to the source images.

did you use correct factor base? --fact_base1 factor_from_base_model. --fact base_inverse.pt and --fact_base1 factor_from_base_model compose the inverted code for source image, same setting for ref. If you use a model A, you should first compute its factor and it will then be used in gen_ref.

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