Can models be exported as code? [ANSWERED] #16
Answered
by
glenn-jocher
TheSuperiorTwin
asked this question in
Q&A
-
Can models be exported as lines of code? |
Beta Was this translation helpful? Give feedback.
Answered by
glenn-jocher
Apr 13, 2022
Replies: 1 comment 2 replies
-
@TheSuperiorTwin not sure what you mean. Every model is composed of code. All supported export formats are indicated here: FormatsYOLOv5 inference is officially supported in 11 formats:
You can visualize all exports with Netron, load them in their respective environments for introspection etc. For example if you download your trained PyTorch model: model = torch.load('downloaded_model.pt')
print(model['model']) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
glenn-jocher
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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:
export.py --include
yolov5s.pt
torchscript
yolov5s.torchscript
onnx
yolov5s.onnx
openvino
yolov5s_openvino_model/
engine
yolov5s.engine
coreml
yolov5s.mlmodel
saved_model
yolov5s_saved_model/
pb
yolov5s.pb
tflite
yolov5s.tflite
edgetpu
yolov5s_edgetpu.tflite
tfjs
yolov5s_web_model/
You can visualize all exports with Netro…