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
When training a model with only normal images, getting "RuntimeError: Found 0 abnormal images "
The problem can be fixed by removing the abnormal dir in make_dataset in the folder module: dirs = {"normal": normal_dir}
instead of dirs = {"normal": normal_dir, "abnormal": abnormal_dir}
If I do this, training finishes successfully and I get a good model.
Should the abnormal_dir be made Optional, and the abnormal_dir left out of dirs when it is not specified? Or can this be due to issues in config/setup?
To Reproduce
Train a PatchCore model without any abnormal images.
Expected behavior
A successful training run.
Hardware and Software Configuration
OS: Ubuntu
anomalib: 0.3.7
The text was updated successfully, but these errors were encountered:
Describe the bug
When training a model with only normal images, getting "RuntimeError: Found 0 abnormal images "
The problem can be fixed by removing the abnormal dir in make_dataset in the folder module:
dirs = {"normal": normal_dir}
instead of
dirs = {"normal": normal_dir, "abnormal": abnormal_dir}
If I do this, training finishes successfully and I get a good model.
Should the abnormal_dir be made Optional, and the abnormal_dir left out of dirs when it is not specified? Or can this be due to issues in config/setup?
To Reproduce
Train a PatchCore model without any abnormal images.
Expected behavior
A successful training run.
Hardware and Software Configuration
The text was updated successfully, but these errors were encountered: