Cc-Hy / CMKD

Cross-Modality Knowledge Distillation Network for Monocular 3D Object Detection (ECCV 2022 Oral)
Apache License 2.0
107 stars 9 forks source link

响应蒸馏那部分的分类蒸馏的loss具体在源码那个位置? #37

Closed xiaoxusanheyi closed 1 year ago

xiaoxusanheyi commented 1 year ago

你好,作者:看了源码不知道这个分类loss的源码的具体位置在哪里:希望作者给指出loss具体位置。 image

Cc-Hy commented 1 year ago

This loss is implemented in this line for anchor head and this line for center head. Note that si is removed in the classification loss in current version.

xiaoxusanheyi commented 1 year ago

收到,感谢 还有个问题就是,我看到这两个文件cmkd_kitti_eigen_R50_scd_bev.yaml和cmkd_kitti_eigen_R50_scd_V2.yaml中的info-path的'train'都是 [kitti_infos_kitti_train_and_eigen_clean.pkl],而数据集配置文件kitti_dataset.yaml的INFO_PATH:是'train': [kitti_infos_train.pkl], 我要进行kitti_raw数据集训练验证测试,是否需要将kitti_dataset.yaml的INFO_PATH的'train': 的[kitti_infos_train.pkl]改为kitti_infos_kitti_train_and_eigen_clean.pkl呢? yes or no呀

Cc-Hy commented 1 year ago

The answer is no. 'kitti_infos_kitti_train_and_eigen_clean.pkl' contains data information of the eigen clean split and kitti train split, both of which are subsets of kitti raw. If you want to use the entire kitti raw, use the kitti raw split file to generate a new pkl file for training. Again, please refer to the datasets part in the paper to know about kitti train,kitti val,kitti trainval,kitti test,eigen clean and kitti raw, they are different.

xiaoxusanheyi commented 1 year ago

不好意思作者,我也是第一次使用这个kitti_raw,对于你这句话“ If you want to use the entire kitti raw, use the kitti raw split file to generate a new pkl file for training. ”不理解,我也是很着急使用,希望作者告知如何去生成这个新的pkl文件,谢谢。

xiaoxusanheyi commented 1 year ago

如果要使用整个kitti raw,使用kitti raw分割文件生成新的pkl文件进行训练。

作者,你看生成的不正确吗, image

Cc-Hy commented 1 year ago

The data split file here indicates the data samples for kitti raw. Change this line to split_name = 'kitti_raw' and then run python -m pcdet.datasets.kitti.kitti_dataset_cmkd create_kitti_infos_unlabel tools/cfgs/dataset_configs/kitti_dataset.yaml. This will generate the pkl file for kitti raw.

xiaoxusanheyi commented 1 year ago

python -m pcdet.datasets.kitti.kitti_dataset_cmkd create_kitti_infos_unlabel tools/cfgs/dataset_configs/kitti_dataset.yaml

谢谢作者!

xiaoxusanheyi commented 1 year ago

This loss is implemented in this line for anchor head and this line for center head. Note that si is removed in the classification loss in current version.

image zuo'zh作者你好,你看这不代码里的分类和回归有这个si呀,为啥说分类中没有这个si呀,回归中也没有吗?

xiaoxusanheyi commented 1 year ago

啥说分类中没有这个si呀,回

还有就是说 这个响应蒸馏中咋用的GT呀,