I followed the instructions at GitHub - edgeimpulse/ml-block-yolov5: YOLOv5 transfer learning model for Edge Impulse to upload a Custom Learning Block. Everything is fine, but the parameters.json file does not seem to be applied. There is no change in the UI after selecting the model at the Studio.
Hello @naveen,
That is strange, I tried that a few days ago and it was working fine.
Could you try to delete your Object Detection block in Edge Impulse Studio and add it again please? That might be needed for the changes to be applied.
Best,
Louis
Hi @louis
I deleted the Object Detection block and the Custom Block and pushed it again. But it does not work. Also, I checked the Custom Block settings in the Studio and found the Parameters field is empty.
Can you try to copy paste the parameters.json
from the repo directly there. That should also work.
I’ll file a ticket to see if we could have happened.
Best,
Louis
It becomes empty again after it has been saved.
I’ll file an issue and I’ll try to reproduce on a community account.
This is what I did:
> git clone git@github.com:edgeimpulse/ml-block-yolov5.git
Cloning into 'ml-block-yolov5'...
remote: Enumerating objects: 310, done.
remote: Counting objects: 100% (123/123), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 310 (delta 99), reused 95 (delta 82), pack-reused 187 (from 1)
Receiving objects: 100% (310/310), 7.29 MiB | 1.55 MiB/s, done.
Resolving deltas: 100% (182/182), done.
> cd ml-block-yolov5
> edge-impulse-blocks init --clean
Edge Impulse Blocks v1.30.4
? What is your user name or e-mail address (edgeimpulse.com)? luisomoreau
? What is your password? [hidden]
? Enter a code from your authenticator app 123456
? In which organization do you want to create this block? Louis Moreau (personal
account)
Attaching block to organization 'Louis Moreau'
Your new block has been created in '/Users/luisomoreau/workspace/projects/ml-block-yolov5'.
When you have finished building your block, run 'edge-impulse-blocks push' to update the block in Edge Impulse.
> edge-impulse-blocks push
Edge Impulse Blocks v1.30.4
Archiving 'ml-block-yolov5'...
...
Building machine learning block 'YOLOv5' OK
And it seems to have the parameters:
Did you try to add the block differently?
Best,
Louis
Thanks, @louis for sharing the steps. It helped in finding the issue. I was using the Edge Impulse Blocks v1.18.1. After updating to the version v1.30.6, it works!
Also, I just noticed I did not see the custom block appear at first when creating my impulse.
It worked on a brand new project though.
Now I can see it and use it:
I’ll mention in the docs to update the CLI thanks for the feedback
Best,
Louis