VI
vivekmenonm/Yolo-Interface-using-Streamlit
A web interface for real-time yolo inference using streamlit. It supports CPU and GPU inference, supports both images and videos and uploading your own custom models.
Yolov5 Real-time Inference using Streamlit
A web interface for real-time yolo inference using streamlit. It supports CPU and GPU inference, supports both images and videos and uploading your own custom models.
Live Demo
Features
- Caches the model for faster inference on both CPU and GPU.
- Supports uploading model files (<200MB) and downloading models from URL (any size)
- Supports both images and videos.
- Supports both CPU and GPU inference.
- Supports:
- Custom Classes
- Changing Confidence
- Changing input/frame size for videos
How to run
After cloning the repo:
- Install requirements
pip install -r requirements.txt
- Add sample images to
data/sample_images - Add sample video to
data/sample_videosand call itsample.mp4or change name in the code. - Add the model file to
models/and changecfg_model_pathto its path.
git clone https://github.com/moaaztaha/Yolo-Interface-using-Streamlit
cd Yolo-Interface-using-Streamlit
streamlit run app.pyTo-do Next
- Allow model upload (file / url).
- resizing video frames for faster processing.
- batch processing, processes the whole video and then show the results.
References
https://discuss.streamlit.io/t/deploy-yolov5-object-detection-on-streamlit/27675
