open-mmlab / mmdetection3d

OpenMMLab's next-generation platform for general 3D object detection.
https://mmdetection3d.readthedocs.io/en/latest/
Apache License 2.0
5.2k stars 1.53k forks source link

Can't train on nuImages #2435

Open salokin1997 opened 1 year ago

salokin1997 commented 1 year ago

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!

Xiangxu-0103 commented 1 year ago

Thanks for your feedback. We will refactor it ASAP.

Orbis36 commented 1 year ago

Same error

duanmushuangquan commented 1 year ago

Same error.

ZitengXue commented 10 months ago

same error

ZitengXue commented 10 months ago

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)?

Mingqj commented 9 months ago

same error

Ruvennsiow commented 2 months ago

same error