deeplearning-wisc / hypo

13 stars 0 forks source link

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

Open hgKang02 opened 5 months ago

hgKang02 commented 5 months ago

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 commented 5 months ago

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.