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

Loading custom datasets #14

Open
pavanvyn opened this issue Jul 4, 2019 · 10 comments
Open

Loading custom datasets #14

pavanvyn opened this issue Jul 4, 2019 · 10 comments

Comments

@pavanvyn
Copy link

pavanvyn commented Jul 4, 2019

No description provided.

@pavanvyn pavanvyn closed this as completed Jul 4, 2019
@pavanvyn
Copy link
Author

pavanvyn commented Jul 4, 2019

Hello, I am using you code for my project. I have a few queries -

  1. My data consists of a training directory with labelled images (train --> class1, class2,.. --> images) and a testing directory of unlabelled images (test --> images). I have not been able to find a decent method to load them onto the code. Do I use a csv file to load them or is it to be done directly?
  2. How exactly would I have to configure/edit my data module to be the equivalent of mnist.py or cifar10.py (datasets directory)?
  3. As of now, have edited the datasets and networks (I built a custom architecture) directories. Am I right in assuming that the modules in base, utils and optim need not be edited in any way. If not, how should I go about doing it?

Any suggestion would be appreciated! Thank you.

@pavanvyn pavanvyn reopened this Jul 4, 2019
@pavanvyn pavanvyn changed the title custom datasets Loading custom datasets Jul 4, 2019
@jetjodh
Copy link

jetjodh commented Aug 3, 2019

@pavanvyn Did you find a way to load custom datasets?

@pavanvyn
Copy link
Author

pavanvyn commented Aug 3, 2019

Yes, I did. I wrote a program to extract data using a csv file.

@jetjodh
Copy link

jetjodh commented Aug 5, 2019

@pavanvyn Can you share the code?

@pavanvyn
Copy link
Author

Sorry for the late reply. I used another GitHub code to do it.
https://github.com/utkuozbulak/pytorch-custom-dataset-examples
Use this.

@JCCVW
Copy link

JCCVW commented Jun 22, 2020

Hello, I am using you code for my project. I have a few queries -

1. My data consists of a training directory with labelled images (train --> class1, class2,.. --> images) and a testing directory of unlabelled images (test --> images). I have not been able to find a decent method to load them onto the code. Do I use a csv file to load them or is it to be done directly?

2. How exactly would I have to configure/edit my data module to be the equivalent of mnist.py or cifar10.py (datasets directory)?

3. As of now,  have edited the datasets and networks (I built a custom architecture) directories. Am I right in assuming that the modules in base, utils and optim need not be edited in any way. If not, how should I go about doing it?

Any suggestion would be appreciated! Thank you.

Hello, can you give me some instructions on how to use my own data? I don't know how to use the link you sent. Thank you very much !

@pavanvyn
Copy link
Author

pavanvyn commented Jul 8, 2020

Go through my github https://github.com/pavanvyn/Galaxy-classification
I have used Lukas Ruff's anomaly detection program with custom datasets using csv files. My csv files for extracting data look like this -

Location Label
/full/location/to/image_1.jpg 0
/full/location/to/image_2.jpg 0
/full/location/to/image_3.jpg 1
/full/location/to/image_4.jpg 2
/full/location/to/image_5.jpg 1
/full/location/to/image_6.jpg 0

Hope this helps.

@omid-ghozatlou
Copy link

Hello dear @pavanvyn

How do you split the train and test dataset? as far as I understood you made one dataset that is called train_test_dataset.csv

thank you

@raymondlimw
Copy link

@pavanvyn Can you share the code again?...

@ChanganLeo
Copy link

@pavanvyn Could you please share the code again? Thank you.

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

6 participants