Unverified Commit 5a650055 authored by linuxmobile ( リナックス )'s avatar linuxmobile ( リナックス ) Committed by GitHub
Browse files

Removed lenght in sd_model at line 115

Commit eba60a42 is what is causing this error, delete the length check in sd_model starting at line 115 and it's fine.

https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/5971#issuecomment-1364507379
parent ca162781
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -112,9 +112,6 @@ def model_hash(filename):
def select_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)
    if checkpoint_info is not None:
        return checkpoint_info