You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Task]: How to perform training without validation #1590
Hello @Abhijeet99999 , by setting the val_split_mode to none, you will prevent Anomalib from validating your model during training. However, even if you don't have any anomaly mask, it is recommended to set val_split_mode to synthetic. This will generate synthetic anomalous images for validation using Perlin noise. By having the validation process, an anomaly score threshold can be adaptively selected, and then used during inference. Similarly, you can also skip the testing phase by setting the test_split_mode to none.
Activity
willyfh commentedon Jan 8, 2024
Hello @Abhijeet99999 , by setting the val_split_mode to none, you will prevent Anomalib from validating your model during training. However, even if you don't have any anomaly mask, it is recommended to set val_split_mode to synthetic. This will generate synthetic anomalous images for validation using Perlin noise. By having the validation process, an anomaly score threshold can be adaptively selected, and then used during inference. Similarly, you can also skip the testing phase by setting the test_split_mode to none.
Abhijeet99999 commentedon Jan 9, 2024
By Changing code flow, its possible as well. Thank you very much, brother!~
[-][Task]: How to perform training without validation ? [/-][+][Task]: Good Explanation[/+][-][Task]: Good Explanation[/-][+][Task]: How to perform training without validation [/+]Abhijeet99999 commentedon Jan 10, 2024
This will generate synthetic anomalous images for validation using Perlin noise. Where you define perline noise function in the code ?
samet-akcay commentedon Jan 10, 2024
When you set the
val_split_modetosynthetic, the code checks it and generates the synthetic anomalies herehttps://github.com/openvinotoolkit/anomalib/blob/470bb860d8478298fdf3f10a530184f8cdc9c938/src/anomalib/data/base/datamodule.py#L156-L159