Skip to content

Commit

Permalink
Use __repr__ for dataset instead of compute_image_statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
sooahleex committed Nov 1, 2022
1 parent 23d8ca1 commit ba94e9a
Show file tree
Hide file tree
Showing 2 changed files with 139 additions and 440 deletions.
2 changes: 1 addition & 1 deletion datumaro/components/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ def get_annotated_size(self):
def get_subset_info(self):
return (
f"{subset_name}: # of items={len(self.get_subset(subset_name))}, "
f"# of annotations={self.get_subset(subset_name).get_annotated_size()}, "
f"# of annotated={self.get_subset(subset_name).get_annotated_size()}, "
f"annotation types={self.get_subset(subset_name).get_annotated_type()}\n"
for subset_name in sorted(self.subsets().keys())
)
Expand Down
Loading

0 comments on commit ba94e9a

Please sign in to comment.