Replies: 1 comment 2 replies
-
Have you solved this problem, I have the same problem, there is a message output but the program works fine! |
Beta Was this translation helpful? Give feedback.
-
Have you solved this problem, I have the same problem, there is a message output but the program works fine! |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was trying to train my model with EMA enabled. I am mainly following the approach in train_text_to_image.py. The load_model_hook:
When I resumed from checkpoint, I noticed the optimization step of the EMAModel was not properly loaded. The config saved under the unet_ema saved the correct 'decay', 'optimization_step', etc. , however, when loading the model, they are not properly loaded.
I am using the UNet2DModel instead of Unet2DConditionModel, and when calling the from_pretrained of the EMAModel, it will prompt:
the from_pretrained of the EMAModel:
I also checked the load_config of the ModelMixin and I think it only returns the unused kwargs of the load_config(), which means the ema_kwargs here is empty.
I am new to diffusers and am not sure if this is intended or if there is something wrong in my implementation.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions