Skip to content

Instantly share code, notes, and snippets.

View DarthSim's full-sized avatar

Sergei Aleksandrovich DarthSim

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DarthSim
DarthSim / yolov10.patch
Created July 8, 2024 17:44
This patch allows exporting YOLOv10 to ONNX file compatible with OpenCV
diff --git a/export_opencv.py b/export_opencv.py
new file mode 100644
index 00000000..15bfef90
--- /dev/null
+++ b/export_opencv.py
@@ -0,0 +1,23 @@
+from ultralytics import YOLOv10
+import argparse
+
+if __name__ == "__main__":