Skip to content

Commit acb4feb

Browse files
committed
Merge branch 'jaap/add_config_and_registry' of github.com:deruyter92/FMPose3D into jaap/add_config_and_registry
2 parents 4c8b201 + 5677b53 commit acb4feb

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
This is the official implementation of the approach described in the preprint:
88

9-
[**FMPose3D: monocular 3D pose estimation via flow matching**](http://arxiv.org/abs/2602.05755)
9+
[**FMPose3D: monocular 3D pose estimation via flow matching**](https://arxiv.org/abs/2602.05755)
1010
Ti Wang, Xiaohang Yu, Mackenzie Weygandt Mathis
1111

1212
<!-- <p align="center"><img src="./images/Frame 4.jpg" width="50%" alt="" /></p> -->

animals/demo/vis_animals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def get_pose3D(path, output_dir, type='image'):
339339
model_dict = model['CFM'].state_dict()
340340
model_path = args.saved_model_path
341341
print(f"Loading model from: {model_path}")
342-
pre_dict = torch.load(model_path, weights_only=True)
342+
pre_dict = torch.load(model_path, map_location=device, weights_only=True)
343343
for name, key in model_dict.items():
344344
model_dict[name] = pre_dict[name]
345345
model['CFM'].load_state_dict(model_dict)

animals/scripts/main_animal3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def get_parameter_number(net):
274274
# Prefer explicit saved_model_path; otherwise fallback to previous_dir glob
275275
model_path = args.saved_model_path
276276
print(model_path)
277-
pre_dict = torch.load(model_path, weights_only=True)
277+
pre_dict = torch.load(model_path, weights_only=True, map_location=device)
278278
for name, key in model_dict.items():
279279
model_dict[name] = pre_dict[name]
280280
model['CFM'].load_state_dict(model_dict)

demo/vis_in_the_wild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def get_pose3D(path, output_dir, type='image'):
280280
model_dict = model['CFM'].state_dict()
281281
model_path = args.model_weights_path
282282
print(model_path)
283-
pre_dict = torch.load(model_path, weights_only=True)
283+
pre_dict = torch.load(model_path, map_location=device, weights_only=True)
284284
for name, key in model_dict.items():
285285
model_dict[name] = pre_dict[name]
286286
model['CFM'].load_state_dict(model_dict)

scripts/FMPose3D_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def print_error_action(action_error_sum, is_train):
344344
model_dict = model["CFM"].state_dict()
345345
model_path = args.model_weights_path
346346
print(model_path)
347-
pre_dict = torch.load(model_path, weights_only=True)
347+
pre_dict = torch.load(model_path, map_location=device, weights_only=True)
348348
for name, key in model_dict.items():
349349
model_dict[name] = pre_dict[name]
350350
model["CFM"].load_state_dict(model_dict)

0 commit comments

Comments
 (0)