Skip to content

一个小小的错误 #2

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

Open
sorrowyn opened this issue Aug 15, 2022 · 1 comment
Open

一个小小的错误 #2

sorrowyn opened this issue Aug 15, 2022 · 1 comment

Comments

@sorrowyn
Copy link

sorrowyn commented Aug 15, 2022

老师模型

python3 train_B_part.py --data /media/mlldiskSSD/MLICdataset/COCO2014/ --dataset coco --gpu 2 --part 0 --num-classes 80 --subnum 2 --typ cluster --model 101 --metric mse -b 32 --lr 1e-4
python3 train_B_part.py --data /media/mlldiskSSD/MLICdataset/COCO2014/ --dataset coco --gpu 3 --part 0 --num-classes 80 --subnum 2 --typ coocurrence --model 101 --metric mse -b 32 --lr 1e-4

学生模型

python3 dis_B_cpsd.py --data /media/mlldiskSSD/MLICdataset/COCO2014/ --dataset coco -t 101 -s 101 --num-classes 80 --subnum 2 --model-root ./checkpoints/coco/101/subnum2 --metric mse
下面这部分代码出错

for eachidxdic in idx_cl:
    sort_idx_cl += list(eachidxdic.keys())            
for j, each in enumerate(sort_idx_cl):
    dis_target_cl[:, int(each)] = output_t_cl[:, j]

图片

@Robbie-Xu
Copy link
Owner

老师模型

python3 train_B_part.py --data /media/mlldiskSSD/MLICdataset/COCO2014/ --dataset coco --gpu 2 --part 0 --num-classes 80 --subnum 2 --typ cluster --model 101 --metric mse -b 32 --lr 1e-4
python3 train_B_part.py --data /media/mlldiskSSD/MLICdataset/COCO2014/ --dataset coco --gpu 3 --part 0 --num-classes 80 --subnum 2 --typ coocurrence --model 101 --metric mse -b 32 --lr 1e-4

学生模型

python3 dis_B_cpsd.py --data /media/mlldiskSSD/MLICdataset/COCO2014/ --dataset coco -t 101 -s 101 --num-classes 80 --subnum 2 --model-root ./checkpoints/coco/101/subnum2 --metric mse
下面这部分代码出错

for eachidxdic in idx_cl:
    sort_idx_cl += list(eachidxdic.keys())            
for j, each in enumerate(sort_idx_cl):
    dis_target_cl[:, int(each)] = output_t_cl[:, j]

图片

谢谢提供的bug信息,目前没有进一步维护该代码,之后有空的时候会复现该错误并更正。

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