ControlNet icon indicating copy to clipboard operation
ControlNet copied to clipboard

Custom loss function

Open DanielSHKao opened this issue 2 years ago • 2 comments

I am training my own ControlNet model, and I'd like to add some loss functions to focus on local regions, such as human face or hands. Are there any suggestions on how this can be done?

DanielSHKao avatar Aug 07 '23 09:08 DanielSHKao

I think maybe you can modify the p_losses function in LatentDiffusion class.

mileret avatar Dec 02 '23 17:12 mileret

Halo, how do you resolve it? I have the questions toooo.

bookkkker avatar Jun 14 '24 14:06 bookkkker