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

How to proceed if we use our own dataset? #3

Closed
Vidushi1107 opened this issue Dec 24, 2020 · 1 comment
Closed

How to proceed if we use our own dataset? #3

Vidushi1107 opened this issue Dec 24, 2020 · 1 comment

Comments

@Vidushi1107
Copy link

Vidushi1107 commented Dec 24, 2020

I saw that for cifar-100, a lot of custom code is written. I have already went through another issue where the author recommend to use H5dataset part of code. But still I have doubts, is there a specific manner in which the data have to be used ?

Will I have to write that custom code for my dataset also ? Any clue or directions will be very helpful.

Also, I am asking for main Dataset input, not about unlabeled dataset.

@kibok90
Copy link
Owner

kibok90 commented Dec 29, 2020

If you want to use your own dataset without modifying the code, you can simply convert your dataset to match the format with the imagenet dataset, which is loaded using the H5Dataset class.

You can find the link to download it in the instruction:

Below might also be useful:

creating an H5 file:
https://github.com/kibok90/iccv2019-inc/blob/master/sample_imagenet.py#L211-L213

loading an H5 file:
https://github.com/kibok90/iccv2019-inc/blob/master/datasets/inc_ext.py#L445-L447

@kibok90 kibok90 closed this as completed Dec 29, 2020
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