mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
add alternate checkpoint hash source
This commit is contained in:
parent
03694e1f99
commit
969bd8256e
@ -265,8 +265,11 @@ def train_embedding(embedding_name, learn_rate, data_root, log_directory, steps,
|
|||||||
|
|
||||||
pre_lines = [((255, 207, 175),"<{}>".format(data.get('name','???')))]
|
pre_lines = [((255, 207, 175),"<{}>".format(data.get('name','???')))]
|
||||||
|
|
||||||
caption_checkpoint_hash = data.get('sd_checkpoint','UNK')
|
caption_checkpoint_hash = data.get('sd_checkpoint')
|
||||||
caption_checkpoint_hash = caption_checkpoint_hash.upper() if caption_checkpoint_hash else 'UNK'
|
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'
|
||||||
|
|
||||||
caption_stepcount = data.get('step',0)
|
caption_stepcount = data.get('step',0)
|
||||||
caption_stepcount = caption_stepcount if caption_stepcount else 0
|
caption_stepcount = caption_stepcount if caption_stepcount else 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user