Skip to content

Commit 935fc1d

Browse files
committed
fix: Fix typo and update hdf5 backend.
1 parent cb4b1bc commit 935fc1d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vis4d/data/io/hdf5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ def _get_client(self, hdf5_path: str, mode: str) -> File:
137137
File: the hdf5 file.
138138
"""
139139
if hdf5_path not in self.db_cache:
140-
client = File(hdf5_path, mode)
140+
client = File(hdf5_path, mode, swmr=True, libver="latest")
141141
self.db_cache[hdf5_path] = [client, mode]
142142
else:
143143
client, current_mode = self.db_cache[hdf5_path]
144144
if current_mode != mode:
145145
client.close()
146-
client = File(hdf5_path, mode)
146+
client = File(hdf5_path, mode, swmr=True, libver="latest")
147147
self.db_cache[hdf5_path] = [client, mode]
148148
return client
149149

vis4d/eval/coco/detect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def predictions_to_coco(
7676
"""
7777
predictions = []
7878
boxes_xyxy = copy.deepcopy(boxes)
79-
boxes_wywh = xyxy_to_xywh(boxes_xyxy)
80-
for i, (box, score, cls) in enumerate(zip(boxes_wywh, scores, classes)):
79+
boxes_xywh = xyxy_to_xywh(boxes_xyxy)
80+
for i, (box, score, cls) in enumerate(zip(boxes_xywh, scores, classes)):
8181
mask = masks[i] if masks is not None else None
8282
xywh = box.tolist()
8383
area = float(xywh[2] * xywh[3])

0 commit comments

Comments
 (0)