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 generate the index for excluding examples for npy? #1

Open
realliyifei opened this issue Dec 2, 2022 · 0 comments
Open

How to generate the index for excluding examples for npy? #1

realliyifei opened this issue Dec 2, 2022 · 0 comments

Comments

@realliyifei
Copy link

I understand the indexes for npys in class_exclusion are the category indexes. But what about the ones in example_exclusion?

Now I index the examples based on the ImageFolder's indexing on ImageNet, for example:

train_dataset = datasets.ImageFolder(args.data_dir) 
exs_list = [x[0].split('/')[-1].split('.')[0] for x in train_dataset.imgs]

But it seems slow. Could you guide me to the indexing to-be-excluded examples in your source code? (If there is any). Or let me know what is your way to do it?

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