rename --channelslast to --opt-channelslast to be in line with other torch optimizations

This commit is contained in:
AUTOMATIC 2022-09-12 16:51:23 +03:00
parent a5a760a7d4
commit 89d94e13a7

View file

@ -49,7 +49,7 @@ def load_model_from_config(config, ckpt, verbose=False):
if len(u) > 0 and verbose: if len(u) > 0 and verbose:
print("unexpected keys:") print("unexpected keys:")
print(u) print(u)
if cmd_opts.channelslast: if cmd_opts.opts_channelslast:
model = model.to(memory_format=torch.channels_last) model = model.to(memory_format=torch.channels_last)
model.eval() model.eval()
return model return model