Clone repo and install requirements.txt in your environment.
git clone https://github.com/adhiiisetiawan/faster-rcnn-inference.git # clone
cd faster-rcnn-inference
pip install -r requirements.txt # install
You can inference this repository using your own images, just put your own images in input folder and run this script
python3 detect.py -i input/[image-name] -s [min-image-size] -m [backbone you want to use (mobilenetv3/resnet50)]
Example usage
python3 detect.py -i input/image1.jpg -s 1024 -m resnet50
You can inference this repository using your own videos, just put your own videos in input folder and run this script
python3 detect_vid.py -i input/[video-name] -s [min-input-size] -m [backbone you want to use (mobilenetv3/resnet50)]
Example usage
python3 detect_vid.py -i input/video1.mp4 -s 1024 -m mobilenetv3