Closed chainyo closed 3 years ago
@ChainYo, Yolo with one output tensor is not supported in Model Metadata and Task Library. From the other github issue, seems like there's a version of Yolo with 4 output tensors. If so, that will be supported.
It seems to be only with tfjs models not tflite models. But thanks for the quick answer
@ChainYo @lu-wang-g yes YOLOv5 exported models generally concat outputs into a single output. TFLite models do not export with NMS, only TF.js and pipelined CoreML models contains NMS.
hey, i have the same issue. Could you please tell me how you overcame it? Did you find a way to add 4 tensors in it's output layer in the metadata? if so, how?
Hi, I'm trying to add metadata to a converted YoloV5 model.
The conversion from
model.pt
tomodel.tflite
is working well (thanks to yolov5 scripts), but I can't add metadata with tflite support because the object detection template is waiting for 4 tensors in his output layer when there is only one tensor in the YoloV5 output layer. Anyone know how to add metadata to this kind of model ?This is the error I get everytime I'm trying to run the script:
This is my script to add metadata to my model:
This is what is printed with
writer.get_metadata.json()
:I need metadata in order to import the model in Android Studio.
Best regards.