-
Git clone yolov5 project of u version and install requirements.txt
git clone https://github.com/ultralytics/yolov5 cd yolov5 pip install -r requirements.txt pip install coremltools > =4.1 onnx > =1.9.0 scikit-learn==0.19.2 if use gpu # pip install onnxruntime-gpu
-
To export onnx with 640x640, the batch size must be 1,if --train is not added, there will be many redundant layers
python export.py --weights yolov5s.pt --img 640 --batch 1 --train
-
Onnx simplifer simplified model
python -m onnxsim yolov5s.onnx yolov5s-sim.onnx
-
onnxruntime infer
python predict.py
forked from Outstanding/onnxruntime_yolov5_infer
-
Notifications
You must be signed in to change notification settings - Fork 0
allenxcp/onnxruntime_yolov5_infer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 98.7%
- Other 1.3%