Skip to content

Commit f3d6ba8

Browse files
xiu-csCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 81a22c6 commit f3d6ba8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demo/vis_in_the_wild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def get_pose3D(path, output_dir, type='image'):
287287
model_dict = model['CFM'].state_dict()
288288
model_path = args.model_weights_path
289289
print(model_path)
290-
pre_dict = torch.load(model_path, weights_only=True)
290+
pre_dict = torch.load(model_path, map_location=device, weights_only=True)
291291
for name, key in model_dict.items():
292292
model_dict[name] = pre_dict[name]
293293
model['CFM'].load_state_dict(model_dict)

0 commit comments

Comments
 (0)