kijai / ComfyUI-FluxTrainer

Apache License 2.0
386 stars 17 forks source link

The issue of facial contamination in LoRA #53

Open chaorenai opened 3 weeks ago

chaorenai commented 3 weeks ago

In the character Lora, if the output is a group photo, the face of the character Lora contaminates the faces of other people in the group. Various methods such as adjusting the dataset, lowering the learning rate, and layer-wise training have been tried, but the issue cannot be resolved. What exactly is going wrong?

Orenji-Tangerine commented 3 weeks ago

Generate a group photo without LoRA and change the face of that particular person by using inpainting in image to image with LoRA.

chaorenai commented 3 weeks ago

Generate a group photo without LoRA and change the face of that particular person by using inpainting in image to image with LoRA. The functionality can be achieved through secondary face-swapping using InstantID or flux-Lora. However, it is hoped that the trained Lora model can directly produce group photos, which could solve the issue of facial distortion.

Orenji-Tangerine commented 3 weeks ago

LoRA changes the idea of the base models and defines how every person looks like. lnpainting is the only way.