-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update examples to SDK 3.9 or higher #41
Comments
I wanted to let you know that I created a SDK 3.9.1 dockerfile, available here: https://github.com/bot-motion/aideck-dev you can test it and copy it if you like. |
There was a forum post about this recently: https://forum.bitcraze.io/viewtopic.php?f=21&t=4871&p=22251#p22251 @bot-motion thanks for providing the dockerfile! And sorry for the late response. Did you manage to use this docker file on the ai mnist example? |
I tested it with the simatai/gapsdk:3.9.1 container provided by @bot-motion and got the following error
Dockerfile.zip
|
Hello, I have not tested the docker image for GAP SDK 3.9.1 for the MNIST example. I don't think it is possible to skip the requirements.txt for the NNTool, as that installs Keras - see https://github.com/GreenWaves-Technologies/gap_sdk/blob/master/tools/nntool/requirements.txt At the moment I bricked my NINA chip, so I'm far away from AI ;-). The docker image has worked well for me to flash the GAP with most functionality examples, but I have not run the python parts of it yet. @neoamos I don't understand what you mean by "because it was moved into the make tasks" -- it is true though that tensorflow is conspicously absent in the image:
|
@bot-motion I mean that the python requirements for nntool was integrated into the make tasks for nntool. I installed tensorflow in your docker container, and it had the same behavior as mine. I looked a bit more into the flash command that is failing.
The command that fails is the gap8-opoenocd, and specifically, the Line 143 is where it stalls, and this line was changed from 3.8 to 3.9. Reverting this file does not solve the issue though. |
The GAP8 OpenOCD always worked for me 100% in the SDK 3.9.1 docker image. Strange that it fails for you! Thanks for clarifying. I started playing around with installing tensorflow as well, installing 'naively' w/o specifying a version, installs tf 1.14. However the SDK relies on TF 1.15 - so errors ensue. First it requires a syntax change to convert the model (some tf API changed) but then it leads to failures some of which I cannot fix.
fails with
The alternative is to force-install tf 1.15 which fails for Ubuntu's standard Python install, b/c the wheels aren't there. So I'm now installing miniconda in the docker container. I'll re-post here if I ever get anywhere. I remember that SDK 3.8.1 was a pain in the a* to get running too. Feels like a trip down memory lane. |
You can install tensorflow 1.15 by doing
I also had the cmd2 issue you mentioned. I just edited |
The flashing issue has been fixed in the current master branch of the gap_sdk (as per this issue). I see that the docker instructions now just point to an official docker image. It would be good to transition this to the new version, although maybe its better to wait till the next release of the sdk since the issue is only fixed in the master branch currently. |
Hi! I guess it's official as it is on docker hub, but it is more out of convenience and it's good to start separating functionalities from this current repo (as we usually have docker files in their own github repo). But technically the latest docker container on bitcraze/aideck is the exact same file as it was here in the repo :). See #50 You can probably already see here in the docker repo but I already gotten the latest 3.9 and 4.0.0 dockerfile uploaded. We just want to test it more thoroughly before tagging it pushing it officially to docker hub. Once we do that, than it shouldn't be much effort to update it to the latest release that has the fix. Anyway, it should be up soon! |
btw, the qtune.py is a difficult one to solve for docker... but I managed to fix it by adding:
before making the nntool. |
By the way, for big examples, it seems that 'make run' is hanging too. Anybody experiencing that too? perhaps its not a bad idea to keep on advising to use 3.8.1 .... |
This was a bit forgotten but we should try to update the 'latest' docker tags now... |
#68 should fix this |
Docker has been updated to latest gap_sdk |
The newest sdk 3.9 is out, so we should update the docker files and test out all the examples
The text was updated successfully, but these errors were encountered: