Skip to content

Commit

Permalink
debug causal
Browse files Browse the repository at this point in the history
  • Loading branch information
LareinaM committed May 30, 2023
1 parent 94f636a commit 9d689ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/body3d_pose_lifter_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def main():
pose_results_2d = extract_pose_sequence(
pose_est_results_list,
frame_idx=frame_idx,
causal=pose_lifter.causal,
causal=pose_lift_dataset.get('causal', False),
seq_len=pose_lift_dataset.get('seq_len', 1),
step=pose_lift_dataset.get('seq_step', 1))

Expand Down
2 changes: 1 addition & 1 deletion mmpose/apis/inference_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def inference_pose_lifter_model(model,
init_default_scope(model.cfg.get('default_scope', 'mmpose'))
pipeline = Compose(model.cfg.test_dataloader.dataset.pipeline)

causal = model.causal
causal = model.cfg.test_dataloader.dataset.get('causal', False)
target_idx = -1 if causal else len(pose_results_2d) // 2

dataset_info = model.dataset_meta
Expand Down

0 comments on commit 9d689ad

Please sign in to comment.