mmdetection3d
mmdetection3d copied to clipboard
Can't train on nuImages
Hallo,
I have tried to train Mask RCNN and HTC on nuImages. But in both cases it fails with the following error message:
$ python3 tools/train.py configs/nuimages/mask-rcnn_r50_fpn_1x_nuim.py
Traceback (most recent call last):
File "tools/train.py", line 135, in <module>
main()
File "tools/train.py", line 124, in main
runner = Runner.from_cfg(cfg)
File "/home/labor/anaconda3/envs/mmdet3d/lib/python3.8/site-packages/mmengine/runner/runner.py", line 439, in from_cfg
runner = cls(
File "/home/labor/anaconda3/envs/mmdet3d/lib/python3.8/site-packages/mmengine/runner/runner.py", line 290, in __init__
raise ValueError(
ValueError: train_dataloader, train_cfg, and optim_wrapper should be either all None or not None, but got train_dataloader=None, train_cfg={'type': 'EpochBasedTrainLoop', 'max_epochs': 12, 'val_interval': 1}, optim_wrapper={'type': 'OptimWrapper', 'optimizer': {'type': 'SGD', 'lr': 0.02, 'momentum': 0.9, 'weight_decay': 0.0001}}.
I used your script to convert the Labels to COCO-format. My data directory looks like this:
- mmdet3d
- - data
- - - annotations
- - - - nuimages_v1.0-train.json
- - - - nuimages_v1.0-val.json
- - - samples
- - - - CAM_BACK
- - - - etc.
Thank you for your help!
Thanks for your feedback. We will refactor it ASAP.
Same error
Same error.
same error
Thanks for your feedback. We will refactor it ASAP.
Hi! Sorry to bother you, I noticed that the bug still hasn't been fixed, is there any temporary solution for the bug(no train_dataloader)?
same error
same error