Open zoldaten opened 5 months ago
Hi
I'm not familiar with this model, so without more information I can't help much. What architecture is it? Please could you re-post a minimal example without any of the additional code - i.e. load the weights, make a fake input and run it through the EdgeTPU interpreter.
See https://github.com/jveitchmichaelis/edgetpu-yolo/blob/main/edgetpumodel.py for example.
Thanks
i fixed code for tflite but not for edgetpu - https://github.com/zoldaten/PINTO_model_zoo/blob/main/051_East_Text_Detection/text_detection_video_tflite.py
here is working code for tflite model.
What weights are you using? https://www.kaggle.com/models/spsayakpaul/east-text-detector/tfLite/int8
Have you compiled the model to EdgeTPU? If so, how?
edgetpu_compiler -m 13 1.tflite
Can you run the model at all, or is it an issue with the output format? Sure, but without edge_tpu - https://youtu.be/OgjtP2O7sp4
In your first post it looks like the forward pass runs fine, but you aren't interpreting the output correctly. What if you don't use the detect
framework and just print the output tensor? detect
makes assumptions about your model architecture which may not be correct (e.g. I think it assumes you're using mobilenet-ssd - we don't use it for YOLO).
If you look at how prediction is done in this repository, it's basically the same as your tflite example - use set_tensor
to load the input and then run invoke
. We don't use the Engine.
Have you tried the instructions from the docs?
could you help with outdated ocr_text_detection on coral: https://github.com/zoldaten/PINTO_model_zoo/blob/main/051_East_Text_Detection/text_detection_video_tpu.py
i tried to adopt it but sank:
it returns:
here`s model: https://drive.google.com/file/d/1fNZYONsMnpa6_w0ekf0Jjpc10QDXn2in/view?usp=sharing
i fixed code for tflite but not for edgetpu - https://github.com/zoldaten/PINTO_model_zoo/blob/main/051_East_Text_Detection/text_detection_video_tflite.py