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

Missing argument when computing prototypes with word embeddings #3

Closed
VSainteuf opened this issue Apr 23, 2020 · 1 comment
Closed

Comments

@VSainteuf
Copy link

Hi, thanks for the nice repo and very interesting paper!

I am trying to recompute the prototypes on CIFAR100 with privileged information, using the following command:
python prototypes.py -c 100 -d 50 -r prototypes/sgd-sem/ -w wtv/cifar100_wtvvectors.npy

but I get this error:
Traceback (most recent call last): File "prototypes.py", line 95, in <module> nns.append(sorder[:args.nn]) AttributeError: 'Namespace' object has no attribute 'nn'

And it seems indeed that argument nn is not defined anywhere...

@psmmettes
Copy link
Owner

Thanks for your interest! It seems that I forgot a user argument when refactoring the code. I added it now.

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