Merge pull request #5979 from linuxmobile/master
Removed lenght in sd_model at line 115
This commit is contained in:
commit
ccaacb1891
1 changed files with 0 additions and 3 deletions
|
@ -112,9 +112,6 @@ def model_hash(filename):
|
||||||
def select_checkpoint():
|
def select_checkpoint():
|
||||||
model_checkpoint = shared.opts.sd_model_checkpoint
|
model_checkpoint = shared.opts.sd_model_checkpoint
|
||||||
|
|
||||||
if len(model_checkpoint) == 0:
|
|
||||||
model_checkpoint = shared.default_sd_model_file
|
|
||||||
|
|
||||||
checkpoint_info = checkpoints_list.get(model_checkpoint, None)
|
checkpoint_info = checkpoints_list.get(model_checkpoint, None)
|
||||||
if checkpoint_info is not None:
|
if checkpoint_info is not None:
|
||||||
return checkpoint_info
|
return checkpoint_info
|
||||||
|
|
Loading…
Reference in a new issue