The repository is now extremely deprecated and I would highly recommend using: PCDet: https://github.com/open-mmlab/OpenPCDet Detectron2: https://github.com/facebookresearch/detectron2
Faster-RCNN Image/LiDAR nets by Mat Hildebrand This repository is based on the work performed by Ruotian Luo: https://github.com/ruotianluo/pytorch-faster-rcnn
This is a golden reference guide to how this repository operates: https://www.telesens.co/2018/03/11/object-detection-and-classification-using-r-cnns/
This repo supports
- 3D LiDAR detection
- 2D Image detection
- Uncertainty Estimation
- baseline Faster-RCNN or FPN
- pseudo batching
- end-to-end pytorch implementation
- Many visualization options including:
- Minibatch drawing (for augmentation and GT verification)
- Anchor overlay draw (for anchor verification)
- RPN output draw (for first stage verification)
- Train time output detection draw (this is normally enabled for validation cycles in training)
- Test time output draw (optional, used for drawing output scenes) -Limitations include
- FPN for LiDAR detector does not change anchor sizes for each stage
- No real HW batching enabled
- Heavy on GPU memory usage, especially when uncertainty is enabled
Lidar First run python3 ./trainval_net.py --net_type lidar --train_iter 1 --preload 0 --en_full_net 0
then after some training cycles run: (en_full_net is 1 by default) python3 ./trainval_net.py --net_type lidar --weights_file ~/thesis/data/weights/lidar_rpn_60k.pth --train_iter 2 --preload 2
Current sample commands:
RPN Train: /usr/bin/python3 /home/mat/thesis/faster_rcnn_pytorch_multimodal/tools/trainval_net.py --iters 400000 --net res101 --db waymo --net_type lidar --iter 3 --scale 0.5 --preload 0 --en_full_net 0
Vanilla Net: (use RPN preload) /usr/bin/python3 /home/mat/thesis/faster_rcnn_pytorch_multimodal/tools/trainval_net.py --iters 400000 --net res101 --db waymo --net_type lidar --iter 1 --scale 0.5 --preload 2 --en_full_net 1 --weights_file ~/thesis/data/weights/lidar_rpn_50p_168k.pth /usr/bin/python3 /home/mat/thesis/faster_rcnn_pytorch_multimodal/tools/trainval_net.py --iters 400000 --net res101 --db waymo --net_type lidar --iter 4 --scale 1.0 --preload 1 --en_full_net 1 --weights_file /home/mat/thesis/data/weights/res101_lidar_rpn_50p_168k.pth
Aleatoric Only: (Use full preload) /usr/bin/python3 /home/mat/thesis/faster_rcnn_pytorch_multimodal/tools/trainval_net.py --iters 400000 --net res101 --db waymo --net_type lidar --iter 3 --scale 0.5 --preload 2 --en_full_net 1 --en_aleatoric 1 --uc_sort_type a_bbox_var --weights_file /home/mat/thesis/data/weights/res101_lidar_full_50p_36k.pth
Epistemic Only: /usr/bin/python3 /home/mat/thesis/faster_rcnn_pytorch_multimodal/tools/trainval_net.py --iters 400000 --net res101 --db waymo --net_type lidar --iter 3 --scale 0.5 --preload 1 --en_full_net 1 --en_epistemic 1 --uc_sort_type e_bbox_var --weights_file /home/mat/thesis/data/weights/res101_lidar_full_50p_36k.pth
Aleatoric & Epistemic: (Changed the dropout rate) /usr/bin/python3 /home/mat/thesis/faster_rcnn_pytorch_multimodal/tools/trainval_net.py --iters 400000 --net res101 --db waymo --net_type lidar --iter 3 --scale 0.5 --preload 2 --en_full_net 1 --en_epistemic 1 --en_aleatoric 1 --weights_file /home/mat/thesis/data/weights/res101_lidar_full_50p_36k.pth
Image Since its pretrained on caffe, only one command to run python3 ./trainval_net.py --net_type image --weights_file ~/thesis/data/weights/res101-caffe.pth --train_iter 1 --preload 1
Current sample commands:
RPN Train: /usr/bin/python3 /home/mat/thesis/faster_rcnn_pytorch_multimodal/tools/trainval_net.py --iters 400000 --net res101 --db waymo --net_type lidar --iter 3 --scale 0.5 --preload 0 --en_full_net 0
Vanilla Net: (use RPN preload) /usr/bin/python3 /home/mat/thesis/faster_rcnn_pytorch_multimodal/tools/trainval_net.py --iters 400000 --net res101 --db waymo --net_type image --iter 1 --scale 0.5 --preload 1 --en_full_net 1 --weights_file /home/mat/thesis/data/weights/res101_caffe.pth
Aleatoric Only:
Epistemic Only:
Aleatoric & Epistemic: /usr/bin/python3 /home/mat/thesis/faster_rcnn_pytorch_multimodal/tools/trainval_net.py --iters 400000 --net res101 --db waymo --net_type image --iter 1 --scale 0.5 --preload 1 --en_full_net 1 --en_epistemic 1 --en_aleatoric 1 --uc_sort_type a_bbox_var --weights_file /home/mat/thesis/data/weights/res101_caffe.pth