Custom Loss Function

Author: snd-mlCreated Jan 27, 2024Updated Oct 13, 2025
  1. Where can I find the code to calculate loss in the codebase?

  2. Is it possible to train ControlNet on a custom Loss function?