This is the official implementation of the paper A Quality Index Metric and Method for Online Self-Assessment of Autonomous Vehicles Sensory Perception.
The proposed model is superpixel attention-based neural network, which combines superpixel and pixel features for camera-based perception quality index regression. Current model support BDD100k, NuScene, and KITTI dataset. Detailed implementation and labeling can be seen under the Implementation section
SPA-NET Model Architecture Camera Perception Quality Index Project Flowchart
@inproceedings{Zhang2022AQI,
title={A Quality Index Metric and Method for Online Self-Assessment of Autonomous Vehicles Sensory Perception},
author={Ce Zhang and Azim Eskandarian},
year={2022}
}
The code was tested on Ubuntu 20.04 with Anaconda Python 3.8, CUDA 11.3, and PyTorch v1.0. It should be compatible with PyTorch > 1.7 & Python 3.7. (If 30x GPUs, require CUDA 11.x. If 20X GPUs, CUDA 10.x should also work for this project)
conda create --name Camera_Perception_Quality python=3.8
conda activate Camera_Perception_Quality
conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cudatoolkit=11.3 -c pytorch -c conda-forge
pip install -r requirements.txt
The implementation of this project contains a demo module and a training module
The pre-trained models are available here (Google Drive). Run demp.py
with the selection of the desired dataset.
- Go to the BDD dataset's configuration file under
configs/bdd100k/super_vit_linear.yaml
- Change the
train_image_path, train_label_path, val_image_path, val_label_path
to the desired directory - run
demo.py --configs ./configs/bdd100k/super_vit_linear.yaml --file_dir ./demo_image/img1.jpg
The model can be trained under BDD100K, NuScene, and KITTI datasets. The corresponding labels for each datasets are here
- Go to the BDD dataset's configuration file under
configs/bdd100k/super_vit_linear.yaml
- Change the
train_image_path, train_label_path, val_image_path, val_label_path
to the desired directory - run
train.py --configs ./configs/bdd100k/super_vit_linear.yaml --file_dir ./demo_image/img1.jpg