Skip to content

Commit

Permalink
fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaidusmanu committed Nov 13, 2024
1 parent 32238b1 commit 4f42ef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scantools/proc/overlap.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def trajectory_overlap(self, keys_q: List, session_q: Session,
if is_self:
keys_r, session_r, poses_r = keys_q, session_q, poses_q

overlap_matrix = np.full((len(keys_q), len(keys_r)), -1, dtype=np.float32)
overlap_matrix = np.full((len(keys_q), len(keys_r)), -1, dtype=np.float16)
overlap_matrix[discard] = 0

# cache the image poses as they might be compositions of rig poses
Expand Down Expand Up @@ -195,8 +195,8 @@ def compute_overlaps_for_sequence(capture: Capture, id_q: str, id_ref: str,
valid_image_indices_list = [np.array(list(range(len(keys_ref))))]
selected_keys_ref_list = [keys_ref]

ov_q2r = np.zeros([len(keys_q), len(keys_ref)], dtype=np.float32)
ov_r2q = np.zeros([len(keys_ref), len(keys_q)], dtype=np.float32)
ov_q2r = np.zeros([len(keys_q), len(keys_ref)], dtype=np.float16)
ov_r2q = np.zeros([len(keys_ref), len(keys_q)], dtype=np.float16)
for sub_info in zip(sub_mesh_id_list, valid_image_indices_list, selected_keys_ref_list):
sub_mesh_id, valid_image_indices, selected_keys_ref = sub_info
sub_mesh_path = capture.proc_path(id_ref) / session_ref.proc.meshes[sub_mesh_id]
Expand Down

0 comments on commit 4f42ef2

Please sign in to comment.