diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-12-25 06:16:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-25 06:16:08 +0000 |
commit | b12de850ae8bcd6f99817c6622b4cd2f04410ff5 (patch) | |
tree | df26b5510f07b645e7edf68c47220f595ef5a538 /modules/sd_models.py | |
parent | a66514e1a35a3d140e6242e553b5fd0c5bec42f4 (diff) | |
parent | 3bf5591efe9a9f219c6088be322a87adc4f48f95 (diff) | |
download | stable-diffusion-webui-gfx803-b12de850ae8bcd6f99817c6622b4cd2f04410ff5.tar.gz stable-diffusion-webui-gfx803-b12de850ae8bcd6f99817c6622b4cd2f04410ff5.tar.bz2 stable-diffusion-webui-gfx803-b12de850ae8bcd6f99817c6622b4cd2f04410ff5.zip |
Merge pull request #5992 from yuvalabou/F541
Fix F541: f-string without any placeholders
Diffstat (limited to 'modules/sd_models.py')
-rw-r--r-- | modules/sd_models.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/sd_models.py b/modules/sd_models.py index 6ca06211..ecdd91c5 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -117,13 +117,13 @@ def select_checkpoint(): return checkpoint_info
if len(checkpoints_list) == 0:
- print(f"No checkpoints found. When searching for checkpoints, looked at:", file=sys.stderr)
+ print("No checkpoints found. When searching for checkpoints, looked at:", file=sys.stderr)
if shared.cmd_opts.ckpt is not None:
print(f" - file {os.path.abspath(shared.cmd_opts.ckpt)}", file=sys.stderr)
print(f" - directory {model_path}", file=sys.stderr)
if shared.cmd_opts.ckpt_dir is not None:
print(f" - directory {os.path.abspath(shared.cmd_opts.ckpt_dir)}", file=sys.stderr)
- print(f"Can't run without a checkpoint. Find and place a .ckpt file into any of those locations. The program will exit.", file=sys.stderr)
+ print("Can't run without a checkpoint. Find and place a .ckpt file into any of those locations. The program will exit.", file=sys.stderr)
exit(1)
checkpoint_info = next(iter(checkpoints_list.values()))
@@ -324,7 +324,7 @@ def load_model(checkpoint_info=None): script_callbacks.model_loaded_callback(sd_model)
- print(f"Model loaded.")
+ print("Model loaded.")
return sd_model
@@ -359,5 +359,5 @@ def reload_model_weights(sd_model=None, info=None): if not shared.cmd_opts.lowvram and not shared.cmd_opts.medvram:
sd_model.to(devices.device)
- print(f"Weights loaded.")
+ print("Weights loaded.")
return sd_model
|