Merge pull request #1 from ModeratePrawn/main

cpu only img to img from main repo
main
Christopher Williams 3 years ago committed by GitHub
commit dd9f9be146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,7 +40,8 @@ def load_model_from_config(config, ckpt, verbose=False):
print("unexpected keys:")
print(u)
model.cuda()
if torch.cuda.is_available():
model.cuda()
model.eval()
return model

Loading…
Cancel
Save