-
Hi, I am interested in ganomaly model to detect anomaly images based on training only normal images. I have referred to this topic #192 to set threshold to manual. But I am not sure this is the correct way or not. This is my config data and file structure:
config.yaml
Could anyone please confirm this is the correct way? Thanks, and best regards! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
In the current version of Anomalib (v0.3.7), the Folder dataset format always requires that a folder of abnormal/anomalous images is provided in By placing normal images to the
The Folder dataset was originally designed with the assumption that each dataset would always contain at least a few abnormal/anomalous images for validation and evaluation purposes. We realize that this may be too strict, and some users might be interested in just training a model on normal images, without running any validation or evaluation afterwards. We are currently working on a redesign of the data classes that would allow this. This new design will most likely be included in the upcoming release (If you're interested in the changes, you could check out this branch). Be aware that there will be some changes to the |
Beta Was this translation helpful? Give feedback.
-
Hi @djdameln, as the metric set to null, I have problem with early_stopping config. If I keep the early_stopping as:
→ RuntimeError: Early stopping conditioned on metric If I remove early_stopping as:
→ Error: RuntimeError: Early stopping conditioned on metric How can I get over this problem? |
Beta Was this translation helpful? Give feedback.
-
Hi, @djdameln . Sorry to bother the communication. I have a question about the pixel_threshold. If i set the threshold "adaptive", how does pixel_threshold be calculated? I checked the source code. But i don't obtain a clear idea. Is pixel_threshold related to the maximum f1_score? Any suggestion will be appreciated! |
Beta Was this translation helpful? Give feedback.
In the current version of Anomalib (v0.3.7), the Folder dataset format always requires that a folder of abnormal/anomalous images is provided in
dataset.abnormal_dir
. These images are used during validation to compute the optimal threshold value, and during testing to rate the performance of the trained model.By placing normal images to the
abnormal_dir
folder, you circumvent the checks that prevent Anomalib from running without abnormal images. This workaround is effective, but please be aware that the optimal threshold value, as well as any evaluation metrics computed during testing, would be meaningless, because incorrect ground truth labels are assigned to the images found inbad/
. S…