Created
June 2, 2024 06:36
-
-
Save hietalajulius/39fab0a38b0ef132f81840051966c13c to your computer and use it in GitHub Desktop.
YOLO executorch export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ultralytics import YOLO | |
import torch | |
def main(): | |
model = YOLO("yolov8n.pt") | |
example_input = torch.ones((1, 3, 640, 640)) | |
exported_program = torch.export.export(model, (example_input,)) | |
print(exported_program) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment