faiimea commited on
Commit
2ec2c10
1 Parent(s): cf05625

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def handle_motion_generation(npy1,npy2):
49
 
50
  config = get_config(config_path)
51
  ae = get_autoencoder(config)
52
- ae.load_state_dict(torch.load(checkpoint_path))
53
  # ae.cuda()
54
  ae.eval()
55
  mean_pose, std_pose = get_meanpose("test", config.data)
 
49
 
50
  config = get_config(config_path)
51
  ae = get_autoencoder(config)
52
+ ae.load_state_dict(torch.load(checkpoint_path, map_location=torch.device('cpu')))
53
  # ae.cuda()
54
  ae.eval()
55
  mean_pose, std_pose = get_meanpose("test", config.data)