Skip to content

Commit

Permalink
fix coco pbars
Browse files Browse the repository at this point in the history
  • Loading branch information
wonjuleee committed Jul 17, 2023
1 parent 5f98882 commit 11ce4c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datumaro/plugins/data_formats/coco/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def _stream_items(self) -> Iterator[DatasetItem]:

for img_info, ann_infos in pbars.iter(
self._page_mapper,
desc=f"Parsing image info in '{osp.basename(self._path)}'",
desc=f"Importing '{self._subset}'",
):
parsed = self._parse_item(img_info)
if parsed is None:
Expand Down Expand Up @@ -314,7 +314,7 @@ def _gen_ann(info_lists):
for ann_info in pbar.iter(
_gen_ann(ann_lists),
desc=f"Importing '{self._subset}'",
total=len(img_lists),
total=len(ann_lists),
):
try:
img_id = self._parse_field(ann_info, "image_id", int)
Expand Down

0 comments on commit 11ce4c5

Please sign in to comment.