mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
fix invalid model name on initial install
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -267,9 +267,7 @@ def model_hash(filename):
|
||||
|
||||
def select_checkpoint(op='model'):
|
||||
model_checkpoint = shared.opts.data.get('sd_model_refiner', None) if op == 'refiner' else shared.opts.data.get('sd_model_checkpoint', None)
|
||||
if len(model_checkpoint) < 3:
|
||||
return None
|
||||
if model_checkpoint is None or model_checkpoint == 'None':
|
||||
if model_checkpoint is None or model_checkpoint == 'None' or len(model_checkpoint) < 3:
|
||||
return None
|
||||
checkpoint_info = get_closet_checkpoint_match(model_checkpoint)
|
||||
if checkpoint_info is not None:
|
||||
|
||||
Reference in New Issue
Block a user