Skip to content

Commit 809143e

Browse files
committed
Small fixes.
1 parent af9f7ca commit 809143e

File tree

9 files changed

+105
-58
lines changed

9 files changed

+105
-58
lines changed

Assets/YOLOv8WithOpenCVForUnityExample/Scripts/YOLOv8WithOpenCVForUnity/YOLOv8ClassPredictor.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !UNITY_WSA_10_0
2+
13
using OpenCVForUnity.CoreModule;
24
using OpenCVForUnity.DnnModule;
35
using OpenCVForUnity.ImgprocModule;
@@ -15,7 +17,7 @@ namespace YOLOv8WithOpenCVForUnity
1517
/// <summary>
1618
/// Referring to https://github.com/ultralytics/ultralytics/
1719
/// </summary>
18-
public class YOLOv8ClassPredictor : IDisposable
20+
public class YOLOv8ClassPredictor
1921
{
2022
Size input_size;
2123
int backend;
@@ -313,4 +315,5 @@ public virtual string GetClassLabel(float id)
313315
return className;
314316
}
315317
}
316-
}
318+
}
319+
#endif

Assets/YOLOv8WithOpenCVForUnityExample/Scripts/YOLOv8WithOpenCVForUnity/YOLOv8ObjectDetector.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !UNITY_WSA_10_0
2+
13
using OpenCVForUnity.CoreModule;
24
using OpenCVForUnity.DnnModule;
35
using OpenCVForUnity.ImgprocModule;
@@ -17,7 +19,7 @@ namespace YOLOv8WithOpenCVForUnity
1719
/// Referring to https://github.com/ultralytics/ultralytics/
1820
/// https://github.com/ultralytics/ultralytics/tree/main/examples/YOLOv8-OpenCV-ONNX-Python
1921
/// </summary>
20-
public class YOLOv8ObjectDetector : IDisposable
22+
public class YOLOv8ObjectDetector
2123
{
2224
Size input_size;
2325
float conf_threshold;
@@ -494,4 +496,5 @@ public virtual string GetClassLabel(float id)
494496
return className;
495497
}
496498
}
497-
}
499+
}
500+
#endif

Assets/YOLOv8WithOpenCVForUnityExample/Scripts/YOLOv8WithOpenCVForUnity/YOLOv8PoseEstimater.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !UNITY_WSA_10_0
2+
13
using OpenCVForUnity.CoreModule;
24
using OpenCVForUnity.DnnModule;
35
using OpenCVForUnity.ImgprocModule;
@@ -16,7 +18,7 @@ namespace YOLOv8WithOpenCVForUnity
1618
/// <summary>
1719
/// Referring to https://github.com/ultralytics/ultralytics/
1820
/// </summary>
19-
public class YOLOv8PoseEstimater : IDisposable
21+
public class YOLOv8PoseEstimater
2022
{
2123
Size input_size;
2224
float conf_threshold;
@@ -632,4 +634,5 @@ public virtual string getClassLabel(float id)
632634
return className;
633635
}
634636
}
635-
}
637+
}
638+
#endif

Assets/YOLOv8WithOpenCVForUnityExample/Scripts/YOLOv8WithOpenCVForUnity/YOLOv8SegmentPredictor.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if !UNITY_WSA_10_0
2+
13
using OpenCVForUnity.CoreModule;
24
using OpenCVForUnity.DnnModule;
35
using OpenCVForUnity.ImgprocModule;
@@ -16,7 +18,7 @@ namespace YOLOv8WithOpenCVForUnity
1618
/// <summary>
1719
/// Referring to https://github.com/ultralytics/ultralytics/
1820
/// </summary>
19-
public class YOLOv8SegmentPredictor : IDisposable
21+
public class YOLOv8SegmentPredictor
2022
{
2123
Size input_size;
2224
float conf_threshold;
@@ -740,4 +742,5 @@ public virtual string GetClassLabel(float id)
740742
return className;
741743
}
742744
}
743-
}
745+
}
746+
#endif

models/YOLOv10/README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
# Export YOLOv10 models to ONNX format for OpenCV Dnn module:
2-
https://github.com/ultralytics/ultralytics
3-
https://docs.ultralytics.com/tasks/
4-
https://docs.ultralytics.com/models/yolov10/
1+
# YOLOv10
52

6-
Please read the contents of the LICENSE file located directly under each folder before using the model. The license of the source model itself is subject to the license of the provider repository.
3+
- https://github.com/ultralytics/ultralytics
4+
- https://docs.ultralytics.com/tasks/
5+
- https://docs.ultralytics.com/models/yolov10/
76

8-
# How to Train a YOLOv10 Model on a Custom Dataset
9-
https://blog.roboflow.com/yolov10-how-to-train/
7+
## How to export a YOLOv10 model to ONNX format for OpenCV Dnn module
8+
9+
- YOLOv10_export_to_OpenCVDNN_ONNX.ipynb
10+
11+
> Please read the contents of the LICENSE file located directly under each folder before using the model. The license of the source model itself is subject to the license of the provider repository.
12+
13+
## How to Train a YOLOv10 Model on a Custom Dataset
14+
15+
- https://blog.roboflow.com/yolov10-how-to-train/

models/YOLOv11/README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
# Export YOLOv11 models to ONNX format for OpenCV Dnn module:
2-
https://github.com/ultralytics/ultralytics
3-
https://docs.ultralytics.com/tasks/
4-
https://docs.ultralytics.com/models/yolov11/
1+
# YOLOv11
52

6-
Please read the contents of the LICENSE file located directly under each folder before using the model. The license of the source model itself is subject to the license of the provider repository.
3+
- https://github.com/ultralytics/ultralytics
4+
- https://docs.ultralytics.com/tasks/
5+
- https://docs.ultralytics.com/models/yolov11/
76

8-
# How to Train a YOLOv11 Object Detection Model on a Custom Dataset
9-
https://blog.roboflow.com/yolov11-how-to-train-custom-data/
7+
## How to export a YOLOv11 model to ONNX format for OpenCV Dnn module
108

11-
# How to Train YOLOv11 Instance Segmentation on a Custom Dataset
12-
https://blog.roboflow.com/train-yolov11-instance-segmentation/
9+
- YOLOv11_export_to_OpenCVDNN_ONNX.ipynb
10+
11+
> Please read the contents of the LICENSE file located directly under each folder before using the model. The license of the source model itself is subject to the license of the provider repository.
12+
13+
## How to Train a YOLOv11 Object Detection Model on a Custom Dataset
14+
15+
- https://blog.roboflow.com/yolov11-how-to-train-custom-data/
16+
17+
## How to Train YOLOv11 Instance Segmentation on a Custom Dataset
18+
19+
- https://blog.roboflow.com/train-yolov11-instance-segmentation/

models/YOLOv12/README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
# Export YOLOv12 models to ONNX format for OpenCV Dnn module:
2-
https://github.com/ultralytics/ultralytics
3-
https://docs.ultralytics.com/tasks/
4-
https://docs.ultralytics.com/models/yolov12/
1+
# YOLOv12
52

6-
Please read the contents of the LICENSE file located directly under each folder before using the model. The license of the source model itself is subject to the license of the provider repository.
3+
- https://github.com/ultralytics/ultralytics
4+
- https://docs.ultralytics.com/tasks/
5+
- https://docs.ultralytics.com/models/yolov12/
76

8-
# How to Train a YOLOv12 Object Detection Model on a Custom Dataset
9-
https://blog.roboflow.com/train-yolov12-model/
7+
## How to export a YOLOv12 model to ONNX format for OpenCV Dnn module
8+
9+
- YOLOv12_export_to_OpenCVDNN_ONNX.ipynb
10+
11+
> Please read the contents of the LICENSE file located directly under each folder before using the model. The license of the source model itself is subject to the license of the provider repository.
12+
13+
## How to Train a YOLOv12 Object Detection Model on a Custom Dataset
14+
15+
- https://blog.roboflow.com/train-yolov12-model/

models/YOLOv8/README.md

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,40 @@
1-
# Export YOLOv8 models to ONNX format for OpenCV Dnn module:
2-
https://github.com/ultralytics/ultralytics
3-
https://docs.ultralytics.com/tasks/
4-
https://docs.ultralytics.com/models/yolov8/
1+
# YOLOv8
52

6-
https://github.com/ultralytics/ultralytics/tree/main/examples/YOLOv8-OpenCV-ONNX-Python
3+
- https://github.com/ultralytics/ultralytics
4+
- https://docs.ultralytics.com/tasks/
5+
- https://docs.ultralytics.com/models/yolov8/
6+
- https://github.com/ultralytics/ultralytics/tree/main/examples/YOLOv8-OpenCV-ONNX-Python
77

8-
Please read the contents of the LICENSE file located directly under each folder before using the model. The license of the source model itself is subject to the license of the provider repository.
8+
## How to export a YOLOv8 model to ONNX format for OpenCV Dnn module
99

10+
- YOLOv8_export_to_OpenCVDNN_ONNX.ipynb
1011

11-
# How to Train YOLOv8 Object Detection on a Custom Dataset
12-
https://github.com/roboflow/notebooks/blob/main/notebooks/train-yolov8-object-detection-on-custom-dataset.ipynb
12+
> Please read the contents of the LICENSE file located directly under each folder before using the model. The license of the source model itself is subject to the license of the provider repository.
1313
14-
# YOLOv8 Train Custom Dataset: Train Your Object Detection Model
15-
https://yolov8.org/yolov8-train-custom-dataset-train/
14+
## How to Train YOLOv8 Object Detection on a Custom Dataset
1615

17-
# Training custom datasets with Ultralytics YOLOv8 in Google Colab
18-
https://www.ultralytics.com/blog/training-custom-datasets-with-ultralytics-yolov8-in-google-colab
16+
- https://github.com/roboflow/notebooks/blob/main/notebooks/train-yolov8-object-detection-on-custom-dataset.ipynb
1917

20-
# How to Train YOLOv8 Instance Segmentation on a Custom Dataset
21-
https://blog.roboflow.com/how-to-train-a-yolov8-classification-model/
18+
## YOLOv8 Train Custom Dataset: Train Your Object Detection Model
2219

23-
# How to Train an Ultralytics YOLOv8 Classification Model
24-
https://blog.roboflow.com/how-to-train-a-yolov8-classification-model/
20+
- https://yolov8.org/yolov8-train-custom-dataset-train/
2521

26-
# How to Train a Custom Ultralytics YOLOv8 Pose Estimation Model
27-
https://blog.roboflow.com/train-a-custom-yolov8-pose-estimation-model/
22+
## Training custom datasets with Ultralytics YOLOv8 in Google Colab
2823

29-
# How to Train an Ultralytics YOLOv8 Oriented Bounding Box (OBB) Model
30-
https://blog.roboflow.com/train-yolov8-obb-model/
24+
- https://www.ultralytics.com/blog/training-custom-datasets-with-ultralytics-yolov8-in-google-colab
25+
26+
## How to Train YOLOv8 Instance Segmentation on a Custom Dataset
27+
28+
- https://blog.roboflow.com/how-to-train-a-yolov8-classification-model/
29+
30+
## How to Train an Ultralytics YOLOv8 Classification Model
31+
32+
- https://blog.roboflow.com/how-to-train-a-yolov8-classification-model/
33+
34+
## How to Train a Custom Ultralytics YOLOv8 Pose Estimation Model
35+
36+
- https://blog.roboflow.com/train-a-custom-yolov8-pose-estimation-model/
37+
38+
## How to Train an Ultralytics YOLOv8 Oriented Bounding Box (OBB) Model
39+
40+
- https://blog.roboflow.com/train-yolov8-obb-model/

models/YOLOv9/README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
# Export YOLOv9 models to ONNX format for OpenCV Dnn module:
2-
https://github.com/ultralytics/ultralytics
3-
https://docs.ultralytics.com/tasks/
4-
https://docs.ultralytics.com/models/yolov9/
1+
# YOLOv9
52

6-
Please read the contents of the LICENSE file located directly under each folder before using the model. The license of the source model itself is subject to the license of the provider repository.
3+
- https://github.com/ultralytics/ultralytics
4+
- https://docs.ultralytics.com/tasks/
5+
- https://docs.ultralytics.com/models/yolov9/
76

8-
# How to Train YOLOv9 on a Custom Dataset
9-
https://blog.roboflow.com/train-yolov9-model/
7+
## Export YOLOv9 models to ONNX format for OpenCV Dnn module:
8+
9+
- YOLOv9_export_to_OpenCVDNN_ONNX.ipynb
10+
11+
> Please read the contents of the LICENSE file located directly under each folder before using the model. The license of the source model itself is subject to the license of the provider repository.
12+
13+
## How to Train YOLOv9 on a Custom Dataset
14+
15+
- https://blog.roboflow.com/train-yolov9-model/

0 commit comments

Comments
 (0)