Skip to content

Perspective-aware Convolution(PAC) is a convolution module which uses perspective information to adjust kernel shape

License

Notifications You must be signed in to change notification settings

KenYu910645/perspective-aware-convolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perspective-aware Convolution for Monocular 3D object detection

Jia-Quan Yu, Soo-Chang Pei

[arXiv]



Demo Video

PAC demo video on KITTI

Installation

pip install -r requirement.txt

or manually check dependencies.

# build ops (deform convs and iou3d), We will not install operations into the system environment
./make.sh

Environment

OS: Ubuntu 20.04.6 LTS
GPU: RTX Geforce 3090
python : 3.10.12
pytorch : 2.0.1
cuda1 : 11.7
torchvision: 0.15.2

Training

Train with baseline settings(Ground-aware network)

python scripts/train.py --cfg_path="config/pac/baseline.py"

Train with perspective-aware convolution module

python scripts/train.py --cfg_path="config/pac/pac_module.py"

Train with scene-aware copy-paste data augmentation method

python scripts/train.py --cfg_path="config/scene-aware/kitti_seg_solid_10_obj_3_zJitter_sceneAware.py"

Train with depth-aware anchor generation method

python scripts/train.py --cfg_path="config/das/das.py"

Evaluate on validation set

python ./scripts/test.py --cfg_path="config/pac/pac_module.py" \
                         --gpu=0 \
                         --checkpoint_path="exp_output/pac/pac_module/checkpoint/Yolo3D_24.pth" \
                         --split_to_test="val" \

Inference on test set (no label)

python ./scripts/test.py --cfg_path="config/pac/pac_module.py" \
                         --gpu=0 \
                         --checkpoint_path="exp_output/pac/pac_module/checkpoint/Yolo3D_latest.pth" \
                         --split_to_test="test" \

Inference on test sequence (no label)

python ./scripts/test.py --cfg_path="config/pac/pac_module.py" \
                         --gpu=0 \
                         --checkpoint_path="exp_output/pac/pac_module/checkpoint/Yolo3D_latest.pth" \
                         --split_to_test="test_sequence" \

Demo result


About

Perspective-aware Convolution(PAC) is a convolution module which uses perspective information to adjust kernel shape

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published