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

Running errors #32

Open
gujinjing opened this issue Dec 13, 2021 · 3 comments
Open

Running errors #32

gujinjing opened this issue Dec 13, 2021 · 3 comments

Comments

@gujinjing
Copy link

Hi, Professors. there are bugs when I run the code. Can you explain what they mean and how to solve the problems? Thank you very much!

python main.py --nb_cl_fg=50 --nb_cl=10 --gpu=0 --random_seed=1993 --baseline=lucir --branch_mode=dual --branch_1=ss --branch_2=free --dataset=cifar100

Traceback (most recent call last):
File "main.py", line 436, in
train(config, training_chunked_samples_dir, testing_chunked_samples_file)
File "main.py", line 238, in train
X_valid_ori, Y_valid_ori, X_valid_cumul, Y_valid_cumul, iteration, is_start_iteration, top1_acc_list_ori, top1_acc_list_cumul)
File "/data/gjj/code/hf2vad/cil/AANet/trainer/base_trainer.py", line 792, in compute_acc
order_list, is_start_iteration=is_start_iteration)
File "/data/gjj/code/hf2vad/cil/AANet/utils/incremental/compute_accuracy.py", line 78, in compute_accuracy
sqd_icarl = cdist(class_means[:,:,0].T, outputs_feature.cpu(), 'sqeuclidean')
File "/home/gjj/anaconda3/envs/py36/lib/python3.6/site-packages/scipy/spatial/distance.py", line 2710, in cdist
raise ValueError('XB must be a 2-dimensional array.')

@yaoyao-liu
Copy link
Owner

yaoyao-liu commented Dec 13, 2021

Thanks for your interest in our work.

May I know whether you are using PyTorch 1.2.0?

@gujinjing
Copy link
Author

no, I use PyTorch 1.6.0.

@yaoyao-liu
Copy link
Owner

I think this error can be solved by using PyTorch 1.2.0.

If you don't want to change your PyTorch version, maybe you need to set a breakpoint there and update the corresponding lines.

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