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

Error facing when trying to train a model using hypo #2

Open
hgKang02 opened this issue Apr 3, 2024 · 1 comment
Open

Error facing when trying to train a model using hypo #2

hgKang02 opened this issue Apr 3, 2024 · 1 comment

Comments

@hgKang02
Copy link

hgKang02 commented Apr 3, 2024

Dear HYPO authors,

Hi, I am Hangoo Kang trying to train resnet18 using hypo and CIFAR-10 dataset. I have managed some parts to work on my device, but I keep getting the error below which I am not sure why it is not working.

File "/home/hangoo/hypo/utils/losses.py", line 264, in init_class_prototypes
for i, (input, target, domain) in enumerate(self.loader):
ValueError: not enough values to unpack (expected 3, got 2)

Would there be any bug that should be fixed or is there anything that I need to additionally mange?

My second question would be, when I try using the command that you wrote in the README,

sh scripts/train_hypo_cifar10.sh
sh scripts/train_hypo_dg.sh

These do not work by saying I do not have permission to the file. Moreover, when I manually copy and past the contents in the file and run, it says train_cider.py not found.

Sincerely,
Hangoo Kang.

@alvinmingsf
Copy link
Collaborator

Hi! Thanks for your interest in our work. The current codebase is under development. We have fixed the permission and loading issues in the updated version.

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