I have trained PyTorch Yolo5 model and converted to .tflite. Now, how can I add this to EdgeImpulse. There is a document but I don’t understand. Please give me steps to add this .tflite file for the custom learning block. Thanks.
Hello @timothy.malche,
Have you checked this Github repository in addition to the documentation web page?
To push your custom learning block you will need to use the edge-impulse-blocks push
command.
Let me know if that helps.
Regards,
Louis
Yes @louis I did check github link. This is what i have completed
- Acquired images and labelled them and converted to YOLOv5 format.
- Trained model in colab nootbook.
- Convert the YOLOv5 model into TFLite format in colab nootbook.
- downloaded the .tffile
- created a project (object detection) in EI.
- uploaded few images and labelled them
- Now I am in Create Impulse tab
from here I don’t know what to do. How can I push the .tflite file which I have created from YOLOv5 model?
On the github page under heading “Pushing the block back to Edge Impulse” it is not clear how to push custom model, what will be the directory structure etc.
Thanks
@timothy.malche You need to push the training pipeline into EI, see e.g. GitHub - edgeimpulse/yolov5: YOLOv5 transfer learning model for Edge Impulse for an end-to-end example for YOLOv5. You can’t just upload the TFLite file.
@timothy.malche Not at the moment. I assume you can invoke the notebook with some parameters from a bash file? All the magic is in run.sh, just swap out the invocation of train.py in yolov5 with invoking your notebook?
Hey i followed the same approach and I’m stuck at the same step…can i please get a kind off detailed process to follow since the documentation is not helping me out. A video or an updated document will also help. Thanks