diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-12 16:51:23 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-12 16:51:23 +0300 |
commit | 89d94e13a72eea8c1d32d1c13b399685cb21fc6b (patch) | |
tree | cf479d278586b87743fcbb5b704a8f887c9efe52 /webui.py | |
parent | a5a760a7d46781df42adb003642d46bd9136496e (diff) |
rename --channelslast to --opt-channelslast to be in line with other torch optimizations
Diffstat (limited to 'webui.py')
-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
|