-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from tnc-ca-geo/speedup-inference
speeding up yolov5 megadetector inference
- Loading branch information
Showing
9 changed files
with
2,260 additions
and
932 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
python yolov5/export.py --imgsz '(960,1280)' --weights model-weights/md_v5a.0.0.pt --include torchscript onnx | ||
mv model-weights/md_v5a.0.0.onnx model-weights/md_v5a.0.0.960.1280.onnx | ||
mv model-weights/md_v5a.0.0.torchscript model-weights/md_v5a.0.0.960.1280.torchscript | ||
python yolov5/export.py --imgsz '(1280,1280)' --weights model-weights/md_v5a.0.0.pt --include torchscript onnx | ||
mv model-weights/md_v5a.0.0.onnx model-weights/md_v5a.0.0.1280.1280.onnx | ||
mv model-weights/md_v5a.0.0.torchscript model-weights/md_v5a.0.0.1280.1280.torchscript | ||
python yolov5/export.py --imgsz '(642,856)' --weights model-weights/md_v5a.0.0.pt --include torchscript onnx | ||
mv model-weights/md_v5a.0.0.onnx model-weights/md_v5a.0.0.642.856.onnx | ||
mv model-weights/md_v5a.0.0.torchscript model-weights/md_v5a.0.0.642.856.torchscript | ||
python yolov5/export.py --imgsz '(642,642)' --weights model-weights/md_v5a.0.0.pt --include torchscript onnx | ||
mv model-weights/md_v5a.0.0.onnx model-weights/md_v5a.0.0.642.642.onnx | ||
mv model-weights/md_v5a.0.0.torchscript model-weights/md_v5a.0.0.642.642.torchscript |
Oops, something went wrong.