You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# we allow to train on subset of self.METAINFO['classes']
It says
ifmetainfoisnotNoneand'classes'inmetainfo:
# we allow to train on subset of self.METAINFO['classes']# map unselected labels to -1self.label_mapping= {
i: -1foriinrange(len(self.METAINFO['classes']))
}
self.label_mapping[-1] =-1forlabel_idx, nameinenumerate(metainfo['classes']):
ori_label=self.METAINFO['classes'].index(name)
self.label_mapping[ori_label] =label_idx
That is pretty ridiculous. It took me forever to realize this hard-coded nonsense was preventing my dataset from working, due to labels specific to my use-case. Why is this hard-coded? I am not finding any way to use a dataset with labels other than the original. Of course, I could map my labels to the labels of the original dataset. That would be silly though and, even worse, if I have more classes than the original dataset I am out of luck again!
How is anybody supposed to use this for their own use-case? It is useless if it hard-coded for the original dataset!
Any other context?
No response
The text was updated successfully, but these errors were encountered:
Solution: You have to copy-paste the derived dataset (e.g. SUNRGBDDataset from mmdet3d.datasets.sunrgbd_datasets), give it a new name and make sure to use the @DATASETS.register_module() decorator and modify the set of classes in the copy-pasted version. Then you have to edit your training config to override the old dataset class with your new dataset class.
What is the feature?
Look at the code here:
mmdetection3d/mmdet3d/datasets/det3d_dataset.py
Line 105 in fe25f7a
It says
That is pretty ridiculous. It took me forever to realize this hard-coded nonsense was preventing my dataset from working, due to labels specific to my use-case. Why is this hard-coded? I am not finding any way to use a dataset with labels other than the original. Of course, I could map my labels to the labels of the original dataset. That would be silly though and, even worse, if I have more classes than the original dataset I am out of luck again!
How is anybody supposed to use this for their own use-case? It is useless if it hard-coded for the original dataset!
Any other context?
No response
The text was updated successfully, but these errors were encountered: