Send more data when loading the model to the ui
This commit is contained in:
1 parent
b366e46f1c
commit
60f848a877
3 files changed
+45
-19
No files matched your search
@@ -730,6 +730,9 @@ class BaseSDTrainProcess(BaseTrainProcess):
|
||||
def hook_train_loop(self, batch):
|
||||
# return loss
|
||||
return 0.0
|
||||
|
||||
def hook_after_sd_init_before_load(self):
|
||||
pass
|
||||
|
||||
def get_latest_save_path(self, name=None, post=''):
|
||||
if name == None:
|
||||
@@ -1425,6 +1428,8 @@ class BaseSDTrainProcess(BaseTrainProcess):
|
||||
custom_pipeline=self.custom_pipeline,
|
||||
noise_scheduler=sampler,
|
||||
)
|
||||
|
||||
self.hook_after_sd_init_before_load()
|
||||
# run base sd process run
|
||||
self.sd.load_model()
|
||||
|
||||
|
||||
Reference in new issue
Block a user