Send more data when loading the model to the ui

This commit is contained in:
Jaret Burkett
2025-02-23 12:49:54 -07:00
parent b366e46f1c
commit 60f848a877
3 changed files with 45 additions and 19 deletions

View File

@@ -155,6 +155,15 @@ class UITrainer(SDTrainer):
super().hook_before_train_loop()
self.maybe_stop()
self.update_status("running", "Training")
def status_update_hook_func(self, string):
self.update_status("running", string)
def hook_after_sd_init_before_load(self):
super().hook_after_sd_init_before_load()
self.maybe_stop()
self.sd.add_status_update_hook(self.status_update_hook_func)
def sample_step_hook(self, img_num, total_imgs):
super().sample_step_hook(img_num, total_imgs)