ONNX, BCEBlurWithLogitsLoss, plot_study updates

This commit is contained in:
Glenn Jocher committed 2020-06-11 14:44:09 -07:00
1 parent 18b4da91e0
commit 3a5c5328c5
2 files changed
+24 -4

No files matched your search

+6 -3
View File
@@ -1,6 +1,9 @@
# Exports a pytorch *.pt model to *.onnx format
# Example usage (run from ./yolov5 directory):
# $ export PYTHONPATH="$PWD" && python models/onnx_export.py --weights ./weights/yolov5s.pt --img 640 --batch 1
"""Exports a pytorch *.pt model to *.onnx format
Usage:
import torch
$ export PYTHONPATH="$PWD" && python models/onnx_export.py --weights ./weights/yolov5s.pt --img 640 --batch 1
"""
import argparse