Update app.py
Browse files
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)
|