You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
I would like to have a flexible interface to customize dataset and data pipeline for object detection
Motivation
Thanks for creating this fantastic library. For research or application, I want to use different datasets other than CustomCOCODataset. There are two possible scenarios:
using datasets readily available in different format (e.g. YOLO) without converting the format from YOLO to COCO. Here, I assume my model knows how to read and infer the labels (e.g. xyxy, xywh) and build targets from the dataset label.
I want to apply some multi-image data augmentation such as Mixup or mosaic augmentation to create new training image from the combination of multiple images from the dataset.
Is it possible to do any of these two scenarios? Can I swap the CustomCOCODataset with my custom LightningDataModule? Do we need to customize ObjectDetectionDataPipeline? I am not sure what the task pipeline is for. Some guideline would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered:
We could add support for more datasets by adding class methods to the ObjectDetectionData class. For eg., ObjectDetectionData.from_yolo(..), ObjectDetectionData.from_voc(..), etc.
Yes, you could pass transformations functions to the train_transform argument in ObjecDetectionData.from_coco.
The purpose of the DataPipeline is to provide the flow for the transformation of data using hooks. So, depending on your data requirements, you could tweak it by creating a Subclass of it.
But right now, we are doing a refactor on DataPipeline#141. Hence, the behavior could change but would be a better experience for the User! :)
@reactivetypeDataPipeline is already merged. Please, check if that suits your use case. On the other hand, we are refactoring the data modules to make it more flexible and user friendly in front of custom data structures. Take a look at #256
🚀 Feature
I would like to have a flexible interface to customize dataset and data pipeline for object detection
Motivation
Thanks for creating this fantastic library. For research or application, I want to use different datasets other than
CustomCOCODataset
. There are two possible scenarios:Is it possible to do any of these two scenarios? Can I swap the CustomCOCODataset with my custom LightningDataModule? Do we need to customize
ObjectDetectionDataPipeline
? I am not sure what the task pipeline is for. Some guideline would be appreciated. Thanks.The text was updated successfully, but these errors were encountered: