Deci-AI / data-gradients

Computer Vision dataset analysis
Apache License 2.0
293 stars 33 forks source link

Fix Average Brightness #119

Closed Louis-Dupont closed 1 year ago

Louis-Dupont commented 1 year ago

If a split is made of a single value, the KDE and HIST plots don't work (they expect a distribution with >1 different value. This sometimes happens with image brightness if the image was normalized to the same value throughout the dataset.

To still show results in that specific case, we will now show a barplot when either of the split is made of a single value (i.e. when it cannot be shown as KDE or HIST).

Note that this is an edge case that should not be common at all.

Example

image