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

Photorealistic checkpoint and mode produces caroon-like images instead of photorealistic #23

Open
pcarre-lab opened this issue Nov 29, 2024 · 2 comments

Comments

@pcarre-lab
Copy link

Thanks for your work.
I have problems trying to generate photorealistic style transfer.
Using the following images:
Content
content
Style
style

And running:

python test.py --content images/content.jpg --style images/style.jpg --decoder checkpoints/decoder_iter_160000.pth.tar --SCT checkpoints/sct_iter_160000.pth.tar --testing_mode pho

Using your provided photorealistic checkpoints, I get cartoonish result instead of photorealistic:
content_stylized_style

@pcarre-lab
Copy link
Author

I trained a custom network with a dataset of factory images and using photorealism, and the inference using photorealism using last checkpoint is still caroon-like:
content_stylized_style

Would you know what could be wrong?

@JarrentWu1031
Copy link
Owner

I trained a custom network with a dataset of factory images and using photorealism, and the inference using photorealism using last checkpoint is still caroon-like: content_stylized_style

Would you know what could be wrong?

Hi! The main reason for the cartoon-like effect is the global style perception loss. CCPL could alleviate the local color distortion to some extent. However, since CCPL only samples a few patches for each layer during training in consideration of computation costs, the restriction is not that strict. If you want to generate high-resolution photorealistic results, I think you should replace the global style loss.

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