mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-01 02:41:42 +00:00
Add YOLO11 Support (#1736)
This commit is contained in:
@@ -39,6 +39,8 @@ public class RknnModel implements Model {
|
||||
*
|
||||
* <p>"yolov8" -> "YOLO_V8"
|
||||
*
|
||||
* <p>"yolov11" -> "YOLO_V11"
|
||||
*
|
||||
* @param modelName The model's filename
|
||||
* @return The model version
|
||||
*/
|
||||
@@ -48,6 +50,8 @@ public class RknnModel implements Model {
|
||||
return RknnJNI.ModelVersion.YOLO_V5;
|
||||
} else if (modelName.contains("yolov8")) {
|
||||
return RknnJNI.ModelVersion.YOLO_V8;
|
||||
} else if (modelName.contains("yolov11")) {
|
||||
return RknnJNI.ModelVersion.YOLO_V11;
|
||||
} else {
|
||||
throw new IllegalArgumentException("Unknown model version for model " + modelName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user