What happens when val_split_mode = FROM_TRAIN
?
#2706
-
Describe the bugdatamodule = Folder(
name=os.path.basename(datasetFolder),
root=datasetFolder,
normal_dir="normal",
abnormal_dir="abnormal", # Let Anomalib infer all subfolders = defect types
normal_test_dir="normal_test",
mask_dir="mask",
test_split_mode=TestSplitMode.FROM_DIR,
val_split_mode=ValSplitMode.FROM_TEST # using FROM_TRAIN cause problem???
) using val_split_mode = FROM_TRAIN seems to work incorrectly, when tested with MVTecAD dataset the heatmaps all show up as red. DatasetN/A ModelN/A Steps to reproduce the behaviorcopy data into the expected folder structure
OS informationOS information:
Expected behaviorHeat maps should not be red ScreenshotsNo response Pip/GitHubpip What version/branch did you use?No response Configuration YAMLn/a Logsn/a Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@keithtangtw, I don't think this is a bug. Training set does not contain abnormal images. if you create your validation set from training set, you would not have any abnormal images in your validation set. If you don't have abnormal images in your validation set, anomalib cannot compute normalization/threshold value accurately. Since your values are not accurate, you have incorrect heatmaps. |
Beta Was this translation helpful? Give feedback.
@keithtangtw, I don't think this is a bug. Training set does not contain abnormal images. if you create your validation set from training set, you would not have any abnormal images in your validation set. If you don't have abnormal images in your validation set, anomalib cannot compute normalization/threshold value accurately. Since your values are not accurate, you have incorrect heatmaps.