OpenPCDet icon indicating copy to clipboard operation
OpenPCDet copied to clipboard

Adding new classes to a pre-trained model

Open d33dler opened this issue 2 years ago • 4 comments

Assuming the model was trained on kitti/waymo dataset with 3 classes, can we add new classes and continue training with the addition of these new classes? (by changing the dataset & model configs, specifically for PVRCNN++) Thanks @jihanyang

d33dler avatar Aug 18 '22 21:08 d33dler

You can have a try. But as the cls head will change with more class, I am not sure how the performance will behave.

jihanyang avatar Aug 19 '22 02:08 jihanyang

You can have a try. But as the cls head will change with more class, I am not sure how the performance will behave.

@jihanyang @sshaoshuai Thanks! So it is preferred to train with all classes from the beginning? Approximately how many classes could be used until the performance begins to degrade? Currently, adding a new class to a pre-trained model's config results in this info output and the model doesn't detect anything anymore, understandably the missing weights (are 0s?) obliterate the regressor and classifier, yes? You are not sure if this can be corrected by continuing training and updating the weights, correct? One last question, what does CLASS_AGNOSTIC mean here in the RPN head - I see that the heatmap (which relates to the abbreviation hm.) shape will differ, what is its role? image

d33dler avatar Aug 19 '22 09:08 d33dler

@jihanyang some insight would be greatly appreciated!

d33dler avatar Aug 22 '22 11:08 d33dler

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 22 '22 02:09 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Oct 07 '22 02:10 github-actions[bot]