Skip to content
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

does this support custom dataset? #157

Open
hnyll opened this issue Jul 17, 2024 · 2 comments
Open

does this support custom dataset? #157

hnyll opened this issue Jul 17, 2024 · 2 comments

Comments

@hnyll
Copy link

hnyll commented Jul 17, 2024

does this support custom dataset? if yes how can i make it?

@ieee8023
Copy link
Member

If you want to process your own images then you can just use this script: https://github.com/mlmed/torchxrayvision/blob/master/scripts/process_image.py

The interface for dataset is here:
https://mlmed.org/torchxrayvision/datasets.html#torchxrayvision.datasets.Dataset

And here is the code you can copy to make your own dataset:
https://github.com/mlmed/torchxrayvision/blob/master/torchxrayvision/datasets.py

@hnyll
Copy link
Author

hnyll commented Jul 25, 2024

thanks for the quick response and thank you for pointing me in the right direction.

i also want to ask if the labels, pathologies, and csv are absolutely necessary for making a custom dataset since i wont be using this for chest x-rays. i just want to know what they do to see how i can modify it to fit my use case.

i just need to do binary classification with ground truths and corresponding images as my data. just 1 class.

in the meantime ill try and see if i can figure something out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants