Skip to content
Discussion options

You must be logged in to vote

how the model can know the difference from the different effects

It won't. All the models available in anomalib are trained with normal images only. Anomalous images are used only for testing.

if i want to do segmentation it isn't correct to maintain the different defects separate

All defects in one folder for either classification or segmentation should be fine.

Or it is possible to maintain a mvteclike structure?

You can make your version of the MVTecAD class. I think you need to replace categories with category_1, also make sure you added your class to all __init__.py. After this, you can initialize it like this:

dataset = MyDataset(
        ...     root=Path("./CustomData"),
   …

Replies: 9 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by samet-akcay
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #2515 on June 11, 2025 07:24.