Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "use hmm for ipe model" #208

Merged
merged 3 commits into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions test_b3d_tracking_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
if use_gt:
best_pose_scale[component] = trace.get_choices()[component]
continue
trace, key, posterior_scales, scores = (

Check failure on line 188 in test_b3d_tracking_batch.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F841)

test_b3d_tracking_batch.py:188:37: F841 Local variable `posterior_scales` is assigned to but never used

Check failure on line 188 in test_b3d_tracking_batch.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F841)

test_b3d_tracking_batch.py:188:55: F841 Local variable `scores` is assigned to but never used
bayes3d.enumerate_and_select_best_move_scale(
trace, Pytree.const((component,)), key, scale_deltas
)
Expand Down Expand Up @@ -320,15 +320,13 @@
return angular_velocity

mesh = b3d.Mesh(
vertices=scale_mesh(mesh.vertices, scale), faces=mesh.faces, vertex_attributes=None
vertices=scale_mesh(mesh.vertices, scale),
faces=mesh.faces,
vertex_attributes=None,
)

pos_now, q_now = compute_center_of_mass(
mesh, object_pose_last_frame
)
pos_last, q_last = compute_center_of_mass(
mesh, object_pose_window_frame
)
pos_now, q_now = compute_center_of_mass(mesh, object_pose_last_frame)
pos_last, q_last = compute_center_of_mass(mesh, object_pose_window_frame)
linear_vel = (pos_now - pos_last) / dt
angular_velocity = compute_angular_velocity(q_last, q_now, dt)

Expand Down
Loading