Deci-AI / data-gradients

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

Data gradients analysis for segmentation of dataset in yolo format #175

Open Soorajkumar3 opened 1 year ago

Soorajkumar3 commented 1 year ago

💡 Your Question

Is this data gradient not available for segmentation analysis of dataset in yolo format?

Louis-Dupont commented 1 year ago

Hi @Soorajkumar3 We don't provide a built-in class to instantiate a segmentation dataset that would be in YOLO format. But if you already have a dataset class that loads your data (YOLO format or any), then you can use it inside DataGradients.

Soorajkumar3 commented 1 year ago

can you share a example , examples in the documentation were not helpful

Louis-Dupont commented 1 year ago

Let's start with that example

from data_gradients.managers.segmentation_manager import SegmentationAnalysisManager 

train_data = ...
val_data = ...
class_names = ...

analyzer = SegmentationAnalysisManager(
    report_title="Testing Data-Gradients Segmentation",
    train_data=train_data,
    val_data=val_data,
    class_names=class_names,
)

analyzer.run()

What you need to have to use this script is:

This assumes that you already have a dataset/dataloader implementation (as explained in my previous comment). If you don't, then you have two options;