Comments (13)
how you solved this issue, I'm facing same issue while training with custom dataset
from anomalib.
Hi @cvramanan, can you elaborate what sort of issues you are having with a custom dataset?
from anomalib.
I had the exact same issue, any solution?
from anomalib.
@birdortyedi would you be able to share the full error logs from your terminal so that we could reproduce it?
from anomalib.
I have found that if your test data is not ready in the correct format, the Adaptive threshold part yields the same error. Solved for me.
anomalib/utils/metrics/adaptive_threshold.py line 40
from anomalib.
@birdortyedi can you please share what exactly did you need to change to get the custom data into "correct format". Facing the same error and unable to find what needs to be fixed..
from anomalib.
@archg2021 I changed the folder structure of my dataset as exactly what's in the their dataset. e.g. folder names like "broken_large", "good" etc.
from anomalib.
@birdortyedi still does not seem to work. My directory structure looks like this :
datasets/MVTec/dummy
├── ground_truth
│ └── broken_large
│ └── broken_small
├── test
│ ├── broken_large
│ ├── broken_small
│ └── good
└── train
└── good
from anomalib.
@archg2021 what's the error you're getting? Same as above?
IndexError: too many indices for tensor of dimension 0
And can you show the image filenames? Especially the ground-truth? Ground-truth filenames must end with ..._mask.png
We're working on a CustomDataset class that handles custom datasets. We aim to merge it this week
from anomalib.
@samet-akcay First of all thanks a lot for the amazing work. Yes I get the same error.
The image file names are in the date-time format. Ground truth masks also contain the _mask.png` suffix. The dataset folder structure looks as follows:
datasets/MVTec/dummy
├── ground_truth
│ ├── broken_large
│ │ ├── 20211124-1251-31_mask.png
│ │ ├── .
│ │ ├── .
│ │ └── 20211124-1625-21_mask.png
│ └── broken_small
│ ├── 20211125-0805-40_mask.png
│ ├── .
│ ├── .
│ └── 20211125-1354-40_mask.png
├── test
│ ├── broken_large
│ │ ├── 20211124-1251-31.png
│ │ ├── .
│ │ ├── .
│ │ └── 20211124-1625-21.png
│ ├── broken_small
│ │ ├── 20211125-0806-34.png
│ │ ├── 20211125-0807-13.png
│ │ ├── .
│ │ ├── .
│ │ └── 20211125-1327-39.png
│ ├── good
│ │ ├── 20211124-1240-08.png
│ │ ├── .
│ │ ├── .
│ │ └── 20211124-1541-05.png
│ └── jpg2png.py
└── train
└── good
├── 20211124-1241-05.png
├── .
├── .
└── 20211124-1541-19.png
from anomalib.
@samet-akcay Can you please help me fix this error or provide some suggestions!
from anomalib.
@archg2021, I unfortunately couldn't reproduce it here. What I would do is to debug it here. Samples should follow the following format as shown in the example
We aim to add the custom dataset support by the end of the week. You could also try that once it's merged.
from anomalib.
hi @archg2021, there is a PR #154 that adds custom dataset support. If you want to test it out before it's merged you could test it from its feature branch.
from anomalib.
Related Issues (20)
- Empty prediction mask and heatmap using WinCLIP in CLASSIFICATION task HOT 4
- [Bug]: No module named setuptools for Python 3.8.10 HOT 2
- [Task]: Config file hyperparameters HOT 1
- [Bug]: ValueError: Not possible to determine the import path for object typing.Iterable[pytorch_lightning.loggers.logger.Logger]. HOT 4
- [Bug]: Question about PaDiM model validation and testing HOT 1
- [Bug]: WinCLIP export pytorch model issue
- Exporting openvino model failed when image_size=(512, 512) ,But when image_size=(256, 256) exporting successful
- how to calculate Precision/Recall/Accuracy in v1.1.10? HOT 4
- Tile with PatchCore OutOfMemoryError: CUDA out of memory. HOT 14
- [Task]: The documentation for the config file is missing. HOT 3
- [Bug]: Unable to initialize AnomalibMlflowLogger inside engine.from_config HOT 5
- [Task]: Apply anomaly detection on a single folder of Images for segmentation with no labels for supporting labelling HOT 1
- [Bug]: Installation Error: Invalid requirement: 'torch>=2+cu121' HOT 2
- [Bug]: EfficientAd training via API slower than via CLI HOT 16
- [Task]: Add OpenVINO Inference + Performance computation to Engine methods HOT 2
- [Bug]: Colab notebook anomalib install -v doesn't work HOT 4
- [Task]: Training using anomalib train HOT 3
- [Task]: How to perform data enhancement in custom datasets HOT 1
- [Bug]: Setting the threshold using ManualThreshold seems to have no effect on the output of predict HOT 3
- Is the imagenet data set necessary for efficientAd training? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anomalib.