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 image not matching text prompt for depth control inpainting #20

Open
renrenzsbbb opened this issue Mar 2, 2023 · 2 comments
Open

Comments

@renrenzsbbb
Copy link

renrenzsbbb commented Mar 2, 2023

Thanks for your great work. I test your code for your demo img, the result is good. however, I test it for depth control inpainting, the output image is not match with text prompt. Can you give me some advices.
first, I test the depth controlnet in original controlnet, the prompt is "a firefighter wearing red uniform clothes". the result is good.
inpaint_seg_inpainting
the above image is input for depth control net.
inpaint_seg_inpainting_controlnet_depth0
the above image is depth prediction map by control net.
inpaint_seg_inpainting_controlnet_depth1
the above image is output by control net.
second, I add a mask image to control net, and use the same input image and text prompt, depth map from control net. However, the output image is not matched with text prompt. the clothes color is not red.
0001_render_mask
the above is mask img.
inpaint_seg
the above is final output by your proposed code.

@haofanwang
Copy link
Owner

Well, this is because of the UNet. To support inpainting, we have to load the UNet from inpainting model, instead of the original UNet in ControlNet. Also, we cannot use other better base model here.

So this is a known limitation, we are trying to train a inpainting model with ControlNet. @renrenzsbbb

@renrenzsbbb
Copy link
Author

Thanks for your quick reply. Can you provide timeline about adding inpaint model to control net.

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