-
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
Add kolektor dataset #983
Add kolektor dataset #983
Conversation
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! I understand this is WIP, I've still gone ahead and added a few comments. Also, can you also accress the issues raised by Codacy.
transform=transform_eval, | ||
split=Split.TEST, | ||
root=root, | ||
) |
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.
This is missing prepare_data
method. Have a look at
anomalib/src/anomalib/data/mvtec.py
Line 258 in 27adbae
def prepare_data(self) -> None: |
Hi @ashwinvaidya17 Regarding the We have two options to resolve this
Please let me know your thoughts on this. Also as I have informed @samet-akcay , I had to pause the work on this until I get a green light on the current logical implementation ( As you might have seen, I had to classify images on the runtime instead of loading from directories because of the nature of the dataset). Please let me know whether the logic is good to go so that I can finish up. |
Hey guys Could you refer me a documentation on the test convention used here. Once I get an insight on this I can finish it as well. Thanks |
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 @Ravindu987 for your great contribution! I have a comment regarding the use of download and extract function.
src/anomalib/data/kolektor.py
Outdated
download_and_extract_kolektor( | ||
"https://go.vicos.si/kolektorsdd", | ||
self.root, | ||
"2b094030343c1cd59df02203ac6c57a0", | ||
) |
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.
If you define DOWNLOAD_INFO
variable as given below
DOWNLOAD_INFO = DownloadInfo(
name="kolektor",
url="https://go.vicos.si/kolektorsdd",
hash="2b094030343c1cd59df02203ac6c57a0",
)
Then it would be possible to use anomalib.data.download.download_and_extract
function as:
download_and_extract(self.root, DOWNLOAD_INFO)
This would be inline with the rest of the datamodule implementations. For reference, here are the some of the implementations:
mvtec-ad, avenue, btech, mvtec-3d...
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.
This links with the previous issue which makes the download_and_extract
function not usable here.
Thank you very much @samet-akcay for the review. I resolved one requested change and answered your questions as well. Please let me know your thoughts and any further changes. |
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.
lgtm, thanks a lot for your contribution!
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 again for your efforts!
Thanks for the review guys. |
It's a problem with our CI that we need to fix. You don't need to do anything else at this point. Thank again for your contribution |
Noted with thanks. Hope to contribute more in the future. |
Description
Work in progress
Added the dataset classes, dataloaders and other necessary functions to load
Kolektor Dataset
Due to the nature of the dataset, used unconventional methods which needs to be discussed
Requires ImageIO and Numpy libraries
Fixes [Task]: Implement Kolektor dataset #964
Changes
Checklist