Skip to content

Custom Coco DataPipe #7147

Open
Open
@austinmw

Description

@austinmw

📚 The doc issue

Hi, is it possible to subclass/reuse torchvision.prototype.datasets.Coco to create a custom COCO-format DataPipe? For example If I have the following data:

data/vision/tiny_coco
├── instances_train2017_small.json
└── train_2017_small
    ├── 000000005802.jpg
    ├── 000000060623.jpg
    ├── 000000118113.jpg
    ├── 000000184613.jpg
    ├── 000000193271.jpg
    ├── 000000222564.jpg
    ├── 000000224736.jpg
    ├── 000000309022.jpg
    ├── 000000318219.jpg
    ├── 000000374628.jpg
    ├── 000000391895.jpg
    ├── 000000403013.jpg
    ├── 000000483108.jpg
    ├── 000000522418.jpg
    ├── 000000554625.jpg
    └── 000000574769.jpg

Suggest a potential alternative/fix

I think a lot of people could benefit from understanding how to reuse common format classes for DataPipes

cc @pmeier @bjuncek

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions