mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-24 01:31:44 +00:00
Add support for object detection on Rubik Pi 3 (#2005)
This commit is contained in:
@@ -8,7 +8,6 @@ import pvInput from "@/components/common/pv-input.vue";
|
||||
import { useTheme } from "vuetify";
|
||||
|
||||
const theme = useTheme();
|
||||
|
||||
const showImportDialog = ref(false);
|
||||
const showInfo = ref({ show: false, model: {} as ObjectDetectionModelProperties });
|
||||
const confirmDeleteDialog = ref({ show: false, model: {} as ObjectDetectionModelProperties });
|
||||
@@ -303,11 +302,33 @@ const handleBulkImport = () => {
|
||||
<v-card color="surface" dark>
|
||||
<v-card-title class="pb-0">Import New Object Detection Model</v-card-title>
|
||||
<v-card-text>
|
||||
Upload a new object detection model to this device that can be used in a pipeline. Note that ONLY
|
||||
640x640 YOLOv5, YOLOv8, and YOLOv11 models trained and converted to `.rknn` format for RK3588 CPUs are
|
||||
currently supported!
|
||||
<span v-if="useSettingsStore().general.supportedBackends?.includes('RKNN')"
|
||||
>Upload a new object detection model to this device that can be used in a pipeline. Note that ONLY
|
||||
640x640 YOLOv5, YOLOv8, and YOLOv11 models trained and converted to `.rknn` format for RK3588 SOCs are
|
||||
currently supporter!</span
|
||||
>
|
||||
<span v-else-if="useSettingsStore().general.supportedBackends?.includes('RUBIK')"
|
||||
>Upload a new object detection model to this device that can be used in a pipeline. Note that ONLY
|
||||
640x640 YOLOv8 and YOLOv11 models trained and converted to `.tflite` format for QCS6490 compatible
|
||||
backends are currently supported!
|
||||
</span>
|
||||
<span v-else>
|
||||
If you're seeing this, something broke; please file a ticket and tell us the details of your
|
||||
situation.</span
|
||||
>
|
||||
<div class="pa-5 pb-0">
|
||||
<v-file-input v-model="importModelFile" variant="underlined" label="Model File" accept=".rknn" />
|
||||
<v-file-input
|
||||
v-model="importModelFile"
|
||||
variant="underlined"
|
||||
label="Model File"
|
||||
:accept="
|
||||
useSettingsStore().general.supportedBackends?.includes('RKNN')
|
||||
? '.rknn'
|
||||
: useSettingsStore().general.supportedBackends?.includes('RUBIK')
|
||||
? '.tflite'
|
||||
: ''
|
||||
"
|
||||
/>
|
||||
<v-text-field
|
||||
v-model="importLabels"
|
||||
label="Labels"
|
||||
@@ -321,7 +342,11 @@ const handleBulkImport = () => {
|
||||
v-model="importVersion"
|
||||
variant="underlined"
|
||||
label="Model Version"
|
||||
:items="['YOLOv5', 'YOLOv8', 'YOLO11']"
|
||||
:items="
|
||||
useSettingsStore().general.supportedBackends?.includes('RKNN')
|
||||
? ['YOLOv5', 'YOLOv8', 'YOLO11']
|
||||
: ['YOLOv8', 'YOLO11']
|
||||
"
|
||||
/>
|
||||
<v-btn
|
||||
color="buttonActive"
|
||||
|
||||
Reference in New Issue
Block a user