mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
source checkpoint hash from current checkpoint
This commit is contained in:
parent
6684610510
commit
96f1e6be59
@ -286,10 +286,8 @@ def train_embedding(embedding_name, learn_rate, data_root, log_directory, steps,
|
||||
|
||||
pre_lines = [((255, 207, 175),"<{}>".format(data.get('name','???')))]
|
||||
|
||||
caption_checkpoint_hash = data.get('sd_checkpoint')
|
||||
if caption_checkpoint_hash is None:
|
||||
caption_checkpoint_hash = data.get('hash')
|
||||
caption_checkpoint_hash = caption_checkpoint_hash.upper() if caption_checkpoint_hash else 'UNKNOWN'
|
||||
checkpoint = sd_models.select_checkpoint()
|
||||
caption_checkpoint_hash = checkpoint.hash
|
||||
|
||||
caption_stepcount = data.get('step',0)
|
||||
caption_stepcount = caption_stepcount if caption_stepcount else 0
|
||||
|
Loading…
Reference in New Issue
Block a user