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

Creatin mini ImageNet_LT #10

Open
Angelina1996 opened this issue Nov 22, 2022 · 2 comments
Open

Creatin mini ImageNet_LT #10

Angelina1996 opened this issue Nov 22, 2022 · 2 comments

Comments

@Angelina1996
Copy link

Hi Rahul,
Just wondering if you could help with the following error in creating a mini imageNet_LT dataset. I am using imageNet2012 which has 2 directories,
imageNet
train and val.
ImageNet Directory pic is also provided below the error message.
Error
(base) [Angelina@rob-gpu Notebooks]$ python create_mini_ImageNet_LT.py
Traceback (most recent call last):
File "create_mini_ImageNet_LT.py", line 69, in
train_x, test_x, train_y, test_y = train_test_split(final_1, labels_1, train_size=train_split_ratio, test_size=test_split_ratio, stratify=labels_1)
File "/home/Angelina/anaconda3/lib/python3.8/site-packages/sklearn/model_selection/_split.py", line 2130, in train_test_split
n_train, n_test = _validate_shuffle_split(n_samples, test_size, train_size,
File "/home/Angelina/anaconda3/lib/python3.8/site-packages/sklearn/model_selection/_split.py", line 1810, in _validate_shuffle_split
raise ValueError( ValueError: With n_samples=0, test_size=0.19999999999999996 and train_size=0.8, the resulting train set will be empty. Adjust any of the aforementioned parameters.

@Angelina1996
Copy link
Author

Hi just wondering if anyone has created the mini imagenet_Lt dataset?

@Angelina1996
Copy link
Author

Hi Rahul,
Could you please guide the contents of the following directory:
root = "/home/rahul_intern/Imagenet/mini_imagenet" # Should point to the dir in which your ImagNet is.
What are the directories or files in mini_imagenet folder.

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

1 participant