ControlNet icon indicating copy to clipboard operation
ControlNet copied to clipboard

How to validate the Controlnet?

Open jiajiao272727 opened this issue 3 months ago • 0 comments

Hi, I'm a code beginner. I've learned how to train a model, and I'd like to learn how to validate it and get a dynamic validation loss.

I tried adding check_val_every_n_epoch=1 inside trainer = pl.Trainer() in tutorial_train_sd21.py, but the output is still only the training loss.

Do I need to modify the file that creates the loss function to distinguish between the train_step and validation_step fields? How can I do this? Thank you very much!

jiajiao272727 avatar Sep 29 '25 15:09 jiajiao272727