We trained a UniAD-tiny model for deployment, the differences compared to the original model are summarized in the following table:
model | img backbone | bev size | img size | with bevslicer? | with bev upsample? |
---|---|---|---|---|---|
UniAD | ResNet-101 | 200x200 | 1600x928 | Y | Y |
UniAD-tiny | ResNet-50 | 50x50 | 400x256 | N | N |
Please follow training instructions from official UniAD for details on UniAD model training.
To train this variant, the following files are needed:
-
Download BEVFormer-tiny weights from BEVFormer Model Zoo for stage1 initialization.
After training, please put tiny_imgx0.25_e2e_ep20.pth
into UniAD/ckpts
and make sure the structure of UniAD
is as follows:
UniAD
├── ckpts/
│ ├── tiny_imgx0.25_e2e_ep20.pth
├── data/
│ ├── nuscenes/
│ │ ├── can_bus/
│ │ ├── maps/
│ │ ├── samples/
│ │ ├── sweeps/
│ │ ├── v1.0-trainval/
│ ├── infos/
│ │ ├── nuscenes_infos_temporal_train.pkl
│ │ ├── nuscenes_infos_temporal_val.pkl
│ ├── others/
│ │ ├── motion_anchor_infos_mode6.pkl
├── nuscenes_np/
│ ├── uniad_onnx_input/
│ ├── uniad_trt_input/
├── projects/
├── third_party/
│ ├── uniad_mmdet3d/
├── tools/
To export an ONNX model, please run the following commands
cd /workspace/UniAD
CUDA_VISIBLE_DEVICES=0 ./tools/uniad_export_onnx.sh ./projects/configs/stage2_e2e/tiny_imgx0.25_e2e_trt_p.py ./ckpts/tiny_imgx0.25_e2e_ep20.pth 1
Due to legal reasons, we can only provid an ONNX model of UniAD-tiny with random weights. Please follow instructions on training to obtain a model with real weights.
<- Last Page: Data Preparation
-> Next Page: Engine Build, C++ Inference and Visualization