Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofferEdlund committed Nov 20, 2023
1 parent d0b33e5 commit 09b105e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions darwin/dataset/local_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ def _setup_annotations_and_images(
darwin_json = stream_darwin_json(annotation_path)
image_path = get_image_path_from_stream(darwin_json, images_dir)
if image_path.exists():
if not keep_empty_annotations:
if len(darwin_json["annotations"]) < 1:
if not keep_empty_annotations and len(darwin_json["annotations"]) < 1:
continue
self.images_path.append(image_path)
self.annotations_path.append(annotation_path)
Expand Down

0 comments on commit 09b105e

Please sign in to comment.