From cb15a337a7df5960a0cc90226863428cb7f383d8 Mon Sep 17 00:00:00 2001 From: Maximilian McDiarmid <76010421+fakevoxel@users.noreply.github.com> Date: Tue, 22 Apr 2025 15:51:23 -0400 Subject: [PATCH 1/3] added a note about deleting custom models --- docs/source/docs/objectDetection/about-object-detection.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/docs/objectDetection/about-object-detection.md b/docs/source/docs/objectDetection/about-object-detection.md index 40ee828aee..59b0a4b148 100644 --- a/docs/source/docs/objectDetection/about-object-detection.md +++ b/docs/source/docs/objectDetection/about-object-detection.md @@ -53,3 +53,7 @@ should be `name-verticalResolution-horizontalResolution-yolovXXX`. The file ought to have the same name as the RKNN file, with `-labels` appended to the end. For example, if the RKNN file is named `Algae_1.03.2025-640-640-yolov5s.rknn`, the labels file should be named `Algae_1.03.2025-640-640-yolov5s-labels.txt`. + +:::{note} +Currently there is no way to delete custom models in the GUI, though this is a planned feature. To do this, you have to SSH into the coprocessor and delete the files manually. +::: From ef732e336ebdb7d6cabcb237ca11bd4633883b37 Mon Sep 17 00:00:00 2001 From: Sam Freund Date: Tue, 22 Apr 2025 14:55:36 -0500 Subject: [PATCH 2/3] Update about-object-detection.md --- docs/source/docs/objectDetection/about-object-detection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/docs/objectDetection/about-object-detection.md b/docs/source/docs/objectDetection/about-object-detection.md index 59b0a4b148..343bc36547 100644 --- a/docs/source/docs/objectDetection/about-object-detection.md +++ b/docs/source/docs/objectDetection/about-object-detection.md @@ -55,5 +55,5 @@ example, if the RKNN file is named `Algae_1.03.2025-640-640-yolov5s.rknn`, the l named `Algae_1.03.2025-640-640-yolov5s-labels.txt`. :::{note} -Currently there is no way to delete custom models in the GUI, though this is a planned feature. To do this, you have to SSH into the coprocessor and delete the files manually. +Currently there is no way to delete custom models in the GUI, though this is a planned feature. To do this, you have to SSH into the coprocessor and delete the files manually from `/opt/photonvision/photonvision_config/models`. ::: From d55ca97c6c7fbab9151e5c05ad2b178e37f1eb2f Mon Sep 17 00:00:00 2001 From: Maximilian McDiarmid <76010421+fakevoxel@users.noreply.github.com> Date: Tue, 22 Apr 2025 15:58:55 -0400 Subject: [PATCH 3/3] added warning about non-quantized models --- docs/source/docs/objectDetection/about-object-detection.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/source/docs/objectDetection/about-object-detection.md b/docs/source/docs/objectDetection/about-object-detection.md index 343bc36547..a155a2f98d 100644 --- a/docs/source/docs/objectDetection/about-object-detection.md +++ b/docs/source/docs/objectDetection/about-object-detection.md @@ -47,6 +47,10 @@ Before beginning, it is necessary to install the [rknn-toolkit2](https://github. PhotonVision currently ONLY supports 640x640 Ultralytics YOLOv5, YOLOv8, and YOLOv11 models trained and converted to `.rknn` format for RK3588 CPUs! Other models require different post-processing code and will NOT work. The model conversion process is also highly particular. Proceed with care. ::: +:::{warning} +Non-quantized models are not supported! If you have the option, make sure quantization is enabled when exporting to .rknn format. This will represent the weights and activations of the model as 8-bit integers, instead of 32-bit floats which PhotonVision doesn't support. Quantized models are also much faster. +::: + In the settings, under `Device Control`, there's an option to upload a new object detection model. Naming convention should be `name-verticalResolution-horizontalResolution-yolovXXX`. The `name` should only include alphanumeric characters, periods, and underscores. Additionally, the labels