This commit is contained in:
Charles Joseph Pierre Beauville 2021-06-28 01:04:35 +02:00
parent ce6d26d307
commit f20e17709c
2 changed files with 3 additions and 1 deletions

View File

@ -96,6 +96,7 @@ class Loco:
self.model.load_state_dict(torch.load(model_path, map_location=lambda storage, loc: storage))
if casr:
print("WTF")
self.turning_model.load_state_dict(torch.load(turning_model_path,
map_location=lambda storage, loc: storage))
else:

View File

@ -161,6 +161,7 @@ def predict(args):
# Load Models
if args.mode in ('mono', 'stereo'):
print(args.casr)
net = Loco(
model=dic_models[args.mode],
mode=args.mode,