You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
312 B
Python
8 lines
312 B
Python
from ultralytics import YOLO
|
|
|
|
# Load a model
|
|
model = YOLO('E:/code_files/train/ultralytics-main/model_files/yolov8x.pt') # load an official model
|
|
model = YOLO('E:/code_files/jy/20240411_model_test/train/weights/best.pt') # load a custom trained model
|
|
|
|
# Export the model
|
|
model.export(format='engine',half=True) |