@svempati said in No detections when running custom YOLOv8 model on voxl-tflite-server:
"labels": "/usr/bin/dnn/yolov8_labels.txt",
So running your model we get the following errors via voxl-tflite-server:
Error in TensorData<float>: should not reach here
Error in TensorData<float>: should not reach here
Error in TensorData<float>: should not reach here
Error in TensorData<float>: should not reach here
Error in TensorData<float>: should not reach here
Error in TensorData<float>: should not reach here
Error in TensorData<float>: should not reach here
Error in TensorData<float>: should not reach here
Which means there is an issue in your model itself and most likely means you ran into an issue during the build process. Specifically this means that is a model issue, not a labels file issue. Your .tflite model has an output tensor with a different data type than what voxl-tflite-server expects
The code itself shows the error when you hit this case statement:
// Gets the uint8_t tensor data pointer
template <>
inline uint8_t *TensorData(TfLiteTensor *tensor, int batch_index)
{
int nelems = 1;
for (int i = 1; i < tensor->dims->size; i++)
{
nelems *= tensor->dims->data[i];
}
switch (tensor->type)
{
case kTfLiteUInt8:
return tensor->data.uint8 + nelems * batch_index;
default:
fprintf(stderr, "Error in %s: should not reach here\n",
__FUNCTION__);
}
return nullptr;
}
Which means the output tensor doesnt match the expected output in this header file. Please look into your model.
zach