This is an Object Detection app built with Streamlit, OpenCV, and the YOLOv10 model. The app allows users to upload an image, choose a pre-trained model, and adjust parameters such as confidence threshold and image size for detection. The processed image with detected objects will be displayed and can be downloaded.
-
Create new folder
-
Clone
yolov10
repo and installrequirements
git clone https://github.com/THU-MIG/yolov10 cd yolov10 pip install .
-
Download
dataset
andpretrained_model
from pretrained_model and dataset -
Check CUDA version
nvcc --version
-
Reinstall CUDA 11.7 from CUDA 11.7
-
Modify
datasets_dir
insettings.yaml
atC:\Users\your_user_name\AppData\Roaming\yolov10
code
: source codepredicts
: the location to save results during app executiontest_results
: previously produced resultstrained_models
: 2 models trained by Google Colab and RTX 4050 Tideploy.py
: main app using Streamlit
safety_helmet_dataset
: datasets for training and testing the modelsyolov10
: YOLOv10 implementation main directorytraining.py
: training sample on LocalProject.ipynb
: training sample on Google Colab
-
Once the environment is configured and dependencies are installed, you can begin using the YOLO model to detect objects in your images.
-
To use this app, run this command interminal:
streamlit run deploy.py
-
Sample Image Predictions
This project utilizes the YOLOv10 model from THU-MIG