Commit 834b6e39 authored by AUTOMATIC's avatar AUTOMATIC

aaaaaaaaaaaaaaaaa

parent 89d94e13
......@@ -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.opts_channelslast:
if cmd_opts.opt_channelslast:
model = model.to(memory_format=torch.channels_last)
model.eval()
return model
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment