visual-layer / fastdup

fastdup is a powerful, free tool designed to rapidly generate valuable insights from image and video datasets. It helps enhance the quality of both images and labels, while significantly reducing data operation costs, all with unmatched scalability.
Other
1.6k stars 77 forks source link

Component gallery visualization `sort_by='area'` parameter not working correctly #139

Closed dnth closed 1 year ago

dnth commented 1 year ago

I'm on version 0.909 and find no difference in visualization when I run with bounding boxes.

fd.vis.component_gallery(sort_by='comp_size')

and

fd.vis.component_gallery(sort_by='area')

To reproduce, run the above command with the object detection example https://colab.research.google.com/github/visual-layer/fastdup/blob/main/examples/analyzing-object-detection-dataset.ipynb

dbickson commented 1 year ago

Should be fixed in 0.910. For sorting by comp size please use sort_by='comp_size', for sorting by average image area or any other stats please use metric='size', metric='blur' etc.