-
Notifications
You must be signed in to change notification settings - Fork 709
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
MVTec 3D and Folder3D #942
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
(e.g. image: '000.png', mask: '000.png')." | ||
else: | ||
samples["mask_path"] = "" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats the actual new part
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix. I agree that we should not load the paths when the task type is classification. Let's merge this for now and address it in a separate PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the efforts! This is a great addition
Sorry for the trouble, I wasn't able to run all the tests on my windows machine.. The datamodule now passes all the test in that previously failed:
I really wanted to remove the iteration over the dataframe in the folder dataset: anomalib/anomalib/data/folder.py Lines 153 to 158 in 566e8cb
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #942 +/- ##
==========================================
- Coverage 86.77% 85.00% -1.77%
==========================================
Files 165 169 +4
Lines 6319 6521 +202
==========================================
+ Hits 5483 5543 +60
- Misses 836 978 +142
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Thanks @alexriedel1! Much appreciated! |
Hi,
it's the fix of the failing tests of #907.
The dataloader always expects mask paths even if no mask paths are provided. I removed the dummy insertion of the mask paths and now added it back again.
I think its debatable whether the dataloader should always load the mask paths, but thats another PR I guess:
anomalib/anomalib/data/base/dataset.py
Lines 105 to 118 in 78ab50e