diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-12 13:51:23 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-12 13:51:23 +0000 |
commit | 89d94e13a72eea8c1d32d1c13b399685cb21fc6b (patch) | |
tree | cf479d278586b87743fcbb5b704a8f887c9efe52 | |
parent | a5a760a7d46781df42adb003642d46bd9136496e (diff) | |
download | stable-diffusion-webui-gfx803-89d94e13a72eea8c1d32d1c13b399685cb21fc6b.tar.gz stable-diffusion-webui-gfx803-89d94e13a72eea8c1d32d1c13b399685cb21fc6b.tar.bz2 stable-diffusion-webui-gfx803-89d94e13a72eea8c1d32d1c13b399685cb21fc6b.zip |
rename --channelslast to --opt-channelslast to be in line with other torch optimizations
-rw-r--r-- | webui.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,7 @@ def load_model_from_config(config, ckpt, verbose=False): if len(u) > 0 and verbose:
print("unexpected keys:")
print(u)
- if cmd_opts.channelslast:
+ if cmd_opts.opts_channelslast:
model = model.to(memory_format=torch.channels_last)
model.eval()
return model
|