Sleeping-post-detection-fir.../ptToonnx.py

6 lines
268 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#更多功能参数介绍https://docs.ultralytics.com/modes/export/#key-features-of-export-mode
from ultralytics import YOLO
if __name__ == '__main__':
model = YOLO('best.pt') # load a custom trained model
# Export the model
model.export(format='onnx')