Welcome to the detection model repository
Few things to note
-
The images used as well as detected images in
results
directory are only for demo purpose here, new images should be used for detection purpose. -
newpts.pt
is an entire trained model for this project and should not be changed or removed anyhow... -
This model is not yet integrated and hence you can use it saperately
-
Clone the repo into local system:
git clone https://github.com/vinayrewatkar/Detection-model.git
-
install requirements: (use any IDE like pycharm or jupyter notebook and ensure your interpreter is properly configured for python 3, else download python3 and set its environment variable globally.. also if need, update pip command)
pip install -r requirements.txt
-
open python console or powershell in same IDE:
For python console:
!python ultralytics/yolo/v8/detect/predict.py model='newpts.pt' source='/replace with image path'
for powershell:
python ultralytics/yolo/v8/detect/predict.py model='newpts.pt' source='/image path'
-
If cuda and pytorch is properly configured in your model then you will be able to see detected image in
results
directory..just contact me for any doubt
All the best...:)