Confusion with metrics and folder structure #1260
-
Hello Anomalib team, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Mirko1998, thank you for your interest in the library. Folder Dataset
We have a Jupyter notebook for the MetricsAs I mentioned above, if you have a mask directory, it is possible to report segmentation metrics. Otherwise, only classification metrics will be reported. We use metrics from the torchmetrics library, and also have some customised metrics within anomalib itself. For example, you could refer to this link to see the metrics in anomalib In theory, if you add a metric from torch metric library to your config file, anomalib should run it. If you see a metric that does not work, you could report here. DocumentationWe are aware that some of these bits might be missing in our documentation. This is mainly because we are currently developing v1.0, which we plan to release some time in October. This slowed down our documentation efforts for the existing versions. Things will hopefully be a lot more clear in v1.0 documentation. Thanks again! |
Beta Was this translation helpful? Give feedback.
Hi @Mirko1998, thank you for your interest in the library.
Folder Dataset
Folder
dataset is highly customisable, so it might be a bit confusing.normal_test_dir
is an optional argument. If it is set,normal_dir
will only be used for training. Otherwise,normal_dir
will be split into train/val/test sets for training and performance evaluation.abnormal_dir
is used for testing and evaluation.mask_dir
is also optional and depends on the task type. If the task is segmentation and you havemask_dir
,Folder
dataset will ensure that these are properly set. Ifmask_dir
isNone
, then this means the task is a classification task.We have a Jupyter notebook for the
Folder
dataset. Can you have a lo…