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

Unexpected harmonization results #37

Closed
galih112 opened this issue Jun 9, 2024 · 1 comment
Closed

Unexpected harmonization results #37

galih112 opened this issue Jun 9, 2024 · 1 comment

Comments

@galih112
Copy link

galih112 commented Jun 9, 2024

Hi,
I am testing both PCTNet and CDTNet for harmonization.
I am getting bad results when using my own images as well as when I use images provided by you.
specifically I tried libcom/tests/harmony_score_prediction/composite/ameland-5651866_harm.jpg
and its corresponding mask. (the images you are showing in the docs are not available at this repo)
any idea to what could be the problem? I am following the example provided in the docs

#Use CDTNet

CDTNet = ImageHarmonizationModel(device=0, model_type='CDTNet')
comp_img1 = image_path
comp_mask1 = mask_pth
CDT_result1 = CDTNet(comp_img1, comp_mask1)

#Use PCTNet
PCTNet = ImageHarmonizationModel(device=0, model_type='PCTNet')
comp_img1 = image_path
comp_mask1 = mask_pth
PCT_result1 = PCTNet(comp_img1, comp_mask1)

Thanks

@YujieOuO
Copy link
Collaborator

hi,
we provide some harmonization case in the /tests/source/composite folder.
f190c2cb4187184b9cd610161c66829

the result of CDTNet:
8e2f237eeddeac61dfbfd6c9144cfba

For this case, the foreground color changes are not obvious due to the dark background. CDTNet is a model for global image color adjustment, which could not handle this case very well.

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