mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
webui.py channels last support
This commit is contained in:
parent
11e648f6c7
commit
fbeadef130
3
webui.py
3
webui.py
@ -49,7 +49,8 @@ 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:
|
||||||
|
model = model.to(memory_format=torch.channels_last)
|
||||||
model.eval()
|
model.eval()
|
||||||
return model
|
return model
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user