second.pytorch
second.pytorch copied to clipboard
Train NuScenesVelo error
I've uncommented the specific line in the config file plus generated the correct dataset but i'm experiencing always this error:
Traceback (most recent call last):
File "second/pytorch/train.py", line 298, in train
for example in dataloader:
File "/opt/conda/envs/py36/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 819, in next
return self._process_data(data)
File "/opt/conda/envs/py36/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 846, in _process_data
data.reraise()
File "/opt/conda/envs/py36/lib/python3.6/site-packages/torch/_utils.py", line 385, in reraise
raise self.exc_type(msg)
ValueError: Caught ValueError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/opt/conda/envs/py36/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "/opt/conda/envs/py36/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/opt/conda/envs/py36/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "second/pytorch/train.py", line 663, in
Someone did the training including velocity infos? Thanks
Hi, as far as I remember we need to change three things to use velocity infos:
- Create dataset with velocity data using
NuscenesDatasetVeloclass name. - Uncomment
custom_valuesfields in config file. - Modify
dataset_class_namefields toNuscenesDatasetVeloin config file.
My best guess is that you missed the last one because the error is saying gt_bboxes size is 7. Hope it helps.