Skip to content

Can models be exported as code? [ANSWERED] #16

Discussion options

You must be logged in to vote

@TheSuperiorTwin not sure what you mean. Every model is composed of code. All supported export formats are indicated here:

Formats

YOLOv5 inference is officially supported in 11 formats:

Format export.py --include Model
PyTorch - yolov5s.pt
TorchScript torchscript yolov5s.torchscript
ONNX onnx yolov5s.onnx
OpenVINO openvino yolov5s_openvino_model/
TensorRT engine yolov5s.engine
CoreML coreml yolov5s.mlmodel
TensorFlow SavedModel saved_model yolov5s_saved_model/
TensorFlow GraphDef pb yolov5s.pb
TensorFlow Lite tflite yolov5s.tflite
TensorFlow Edge TPU edgetpu yolov5s_edgetpu.tflite
TensorFlow.js tfjs yolov5s_web_model/

You can visualize all exports with Netro…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TheSuperiorTwin
Comment options

@glenn-jocher
Comment options

Answer selected by glenn-jocher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants