Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 887 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 887 Bytes

yolov5

Input --> Output

Convert

pt --> TorchScript --> pnnx --> ncnn

git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install
python export.py --weights yolov5s.pt --include torchscript --train
./pnnx yolov5s.torchscript inputshape=[1,3,640,640] inputshape2=[1,3,320,320]

Example project

Reference