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

6 lines
268 B
Python
Raw Normal View History

2024-09-08 14:08:46 +08:00
#更多功能参数介绍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')