-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to train in a custom dataset? #109
Comments
how you solved this issue, I'm facing same issue while training with custom dataset |
Hi @cvramanan, can you elaborate what sort of issues you are having with a custom dataset? |
I had the exact same issue, any solution? |
@birdortyedi would you be able to share the full error logs from your terminal so that we could reproduce it? |
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 |
@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.. |
@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. |
@birdortyedi still does not seem to work. My directory structure looks like this :
|
@archg2021 what's the error you're getting? Same as above?
And can you show the image filenames? Especially the ground-truth? Ground-truth filenames must end with We're working on a CustomDataset class that handles custom datasets. We aim to merge it this week |
@samet-akcay First of all thanks a lot for the amazing work. Yes I get the same error.
|
@samet-akcay Can you please help me fix this error or provide some suggestions! |
@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. |
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. |
I am having a bit of trouble training on a custom dataset. I reproduced the MVTec structure but I still get some errors like:
IndexError: too many indices for tensor of dimension 0
The text was updated successfully, but these errors were encountered: