Skip to content

Commit

Permalink
Removed division by two in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot authored Aug 30, 2023
1 parent af7c1e4 commit cfd56e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ def _add_simple(res_dataset, images, ds_name):
image_names.append(info.name)
image_metas.append(info.meta["meta"])

progress_img = sly.Progress(f"Images", len(images) / 2)
progress_ann = sly.Progress(f"Annotations", len(images) / 2)
progress_img = sly.Progress(f"Images", len(images))
progress_ann = sly.Progress(f"Annotations", len(images))
_progress_callback = lambda count: _increment_progress(api, task_id, progress_img, count)

if res_dataset is None:
Expand Down Expand Up @@ -272,8 +272,8 @@ def _add_simple(res_dataset, images, ds_name):

# "matched", "conflicts", "unique (left)", "unique (right)"
if message == "matched":
progress_img = sly.Progress(f"Images", len(images) / 2)
progress_ann = sly.Progress(f"Annotations", len(images) / 2)
progress_img = sly.Progress(f"Images", len(images))
progress_ann = sly.Progress(f"Annotations", len(images))
_increment_progress(api, task_id, progress_img)

left_ds_id = api.dataset.get_info_by_name(PROJECT1.id, left_ds).id
Expand Down Expand Up @@ -416,4 +416,4 @@ def main():


if __name__ == "__main__":
sly.main_wrapper("main", main)
sly.main_wrapper("main", main)

0 comments on commit cfd56e6

Please sign in to comment.