Faster R-CNN HRNetV2p: an object detection model for roads
2 min readupdated
This model is based on the Faster R-CNN architecture with an HRNetV2p backbone (HRNet (a network that preserves high-resolution features across all image processing stages)) and was trained on the BDD100K dataset (a large-scale autonomous driving dataset) from researchers at ETH Zurich (Swiss Federal Institute of Technology in Zurich). It handles finding and classifying objects in road videos and images: recognizing pedestrians, cars, signs, and traffic lights. This version recovers lost weights from the closed SysCV archive with an added inference script (the process of running a model to generate predictions). The model is useful for computer vision developers and autonomous vehicle researchers.
Key features
- Trained on 70 thousand images from the BDD100K dataset for 36 epochs
- Works with the native resolution of road frames at 1280 by 720 pixels without altering proportions
- A fixed environment and inference scripts for CPU and GPU have been added to the repository
- Weights have been converted and saved in the safetensors format alongside the original files
What you can do
- Run object detection on a single image or a folder of photos while saving the results
- Process a video file from a dashcam or camera to analyze traffic conditions
- Connect a webcam in real time with detected objects displayed directly on the screen
- Export detection results in the standardized BDD100K JSON format for further analysis
Example
python infer.py image.jpg --out runs/
python infer.py drive.mov --out runs/
python infer.py 0 --showRead more
DetailsValidation metrics: AP 34.0, AP50 59.5, AP75 32.9
Environment: Python 3.10, torch 2.0.1, mmcv-full 1.7.2, mmdetection 2.28.2
License: BDD100K (educational and non-commercial use), config under Apache-2.0










Comments