Skip to content

Create datamodules from custom data #2515

Closed
@LorenzoF6

Description

@LorenzoF6

I want to try Anomalib with my custom data.
It is correct to orgnazie my data in a MVTEC like structure like the image below, beacuase for my category of object i have 4 indipendent type of defect

CustomData/
├── category_1/
│ ├── train/
│ │ ├── good/
│ │ │ ├── image1.png
│ │ │ ├── image2.png
│ │ │ └── ...
│ ├── test/
│ │ ├── anomaly_type_1/
│ │ │ ├── image1.png
│ │ │ ├── image2.png
│ │ │ └── ...
│ │ ├── anomaly_type_2/
│ │ │ ├── image1.png
│ │ │ ├── image2.png
│ │ │ └── ...
│ ├── ground_truth/
│ │ ├── anomaly_type_1/
│ │ │ ├── image1_mask.png
│ │ │ ├── image2_mask.png
│ │ │ └── ...
│ │ ├── anomaly_type_2/
│ │ │ ├── image1_mask.png
│ │ │ ├── image2_mask.png
│ │ │ └── ...
└── ...

And the use the class Folder to create the custom datamodules and use the option to automaticaly split the normal data for train and test? Or it is convinient to put some normal images in a dedicate normal directory under test?
Thanks very much

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions