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

train data #258

Open
wuhen777 opened this issue May 9, 2024 · 0 comments
Open

train data #258

wuhen777 opened this issue May 9, 2024 · 0 comments

Comments

@wuhen777
Copy link

wuhen777 commented May 9, 2024

          > For most simple case, hard code on mmdet3d. https://github.com/open-mmlab/mmdetection3d/blob/f1107977dfd26155fc1f83779ee6535d2468f449/mmdet3d/datasets/custom_3d.py#L64C12-L64C12 for example, sub sample to 1/5. From self.data_infos = self.load_annotations(self.ann_file) to self.data_infos = self.load_annotations(self.ann_file)[::5]

For more reasonable way, check here:

super().__init__(*args, **kwargs)

add line:
self.data_infos = self.data_infos[::5]

maybe modify more variable

Or, construct a new dataset called nuscenes-subset

Thank you for your suggestion. Now, when slicing the mini dataset, I will change the 64th line of BEVFormer/mmdeletion3d/mmdet3d/datasets/custom_1d. py from # self. data_infos=self. loaduannotations (self. annunfile) to
After self. data_infos=self. loadannotations (self. annunfile) [:: 5], the training time remains the same as before it was modified.
Meanwhile, if I am in line 26 of BEVFormer/projects/mmdet3d_plugin/datasets/nuscenes_dataset. py, that is, super()__ After init__ (* args, * * kwargs), add self. data_infos=self. data_infos [:: 5], and it is found that the training time has not changed. May I ask what is the reason for this
before change
after change
2024-05-09 175548
2024-05-09 175609
Looking forward to your answer

Originally posted by @wuhen777 in #209 (comment)

@wuhen777 wuhen777 changed the title > For most simple case, hard code on mmdet3d. https://github.com/open-mmlab/mmdetection3d/blob/f1107977dfd26155fc1f83779ee6535d2468f449/mmdet3d/datasets/custom_3d.py#L64C12-L64C12 for example, sub sample to 1/5. From self.data_infos = self.load_annotations(self.ann_file) to self.data_infos = self.load_annotations(self.ann_file)[::5] train data May 9, 2024
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

1 participant