Mikubill / sd-webui-controlnet

WebUI extension for ControlNet
GNU General Public License v3.0
16.84k stars 1.94k forks source link

Issue with Weighting in sd15_face_id_portrait #2540

Closed hben35096 closed 8 months ago

hben35096 commented 8 months ago

It seems there is an issue with the weighting of the sd15_face_id_portrait model. It appears that the weights are being accumulated based on the number of images.

Test 1:

Inputting 1 image with a weight of 0.5 yields a relatively normal result. image

image

Test 2:

Inputting 4 images with a weight of 0.5 produces disturbing results.

image

image

Test 3:

Inputting 4 images with a weight adjusted to 0.5 divided by 4, approximately 0.12, yields a relatively normal result again.

image

image

Test 4:

Inputting 6 images with a weight of 0.5 produces disturbing results.

image

image

huchenlei commented 8 months ago

1705904623739

huchenlei commented 8 months ago

https://github.com/Mikubill/sd-webui-controlnet/pull/2539 will allow you use weight = 1, but there are still some subtle bugs.

hben35096 commented 8 months ago

Thank you for your attention to this issue :)