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

Dataloading process #9

Open
guangyaoz opened this issue Feb 16, 2024 · 3 comments
Open

Dataloading process #9

guangyaoz opened this issue Feb 16, 2024 · 3 comments

Comments

@guangyaoz
Copy link

Hello,

I am trying to reproduce your experiment on my local machine, but I am not sure how you loaded the data. What should the training testing and validation data directory look like? Thanks.

@JayParanjape
Copy link
Owner

Hi,
The data folder can be anything that makes it easy for you to add the corresponding code to data_utils.py.
For example, you can create a class called Custom_Dataset in data_utils.py. This class should have a get_item function that returns img, mask, path of the image and the labelname. As an example you can refer to any one of the datasets, like class ChestXDet

@JayParanjape
Copy link
Owner

If you can modify the data structure available to you, I would recommend a root directory that contains the folders train, test and val as follows:
root
| - train
|- images
|- masks
| - val
|- images
|- masks
| - test
|- images
|- masks
Then, you can load from these folders in the populate lists function in data_utils.py

@guangyaoz
Copy link
Author

Thanks!

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