Skip to content

Move image loading logic to _load_image in VOC datasets (similar to COCO) #4975

Open
@vadimkantorov

Description

@vadimkantorov

🚀 The feature

This would allow simple stubbing out image loading if needed for fast dataset transformed metadata access (when image reading is not needed) by dataset._load_image = lambda _: None and also make API more consistent across datasets.

It's also impossible to monkey-patch __getitem__ at instance level: https://stackoverflow.com/questions/57413453/is-it-possible-to-override-getitem-at-instance-level-in-python :(

Motivation, pitch

N/A

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions