-
Notifications
You must be signed in to change notification settings - Fork 126
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
Train own model with Ubuntu 18? #7
Comments
I had the same problem so I made a Dockerfile:
Save the above in a file called
This will create an image which you can run to train your personal model. In order for this to work you'll need to create a directory called
Finally you can call docker (note: need to be in the parent directory of
This command mounts the If everything went well, you should now have a file called |
Hi Daniel Schnabel, I'm not using the Ubuntu version, but it seems the API is not functional at the moment. I see your Dockerfile creates a personal model, however, is this personal model successfully trained on new audio samples? Just to confirm, your Dockerfile does indeed work for personal models trained after the API was shutdown on December 31st, 2020? |
My dockerfile does not use the API, it uses the python script to train a personal model. See this portion from the Dockerfile which does the job:
|
Thanks for your reply. Do you know if this script performs the same function as the API (without using training_service)? @chenguoguo Can you maybe clarify? Thanks! |
@Hemanshu-Bhargav I asked a similar question in #5 |
@dschnabel @chenguoguo @hs79hs |
@Hemanshu-Bhargav yes we are supposed to use the new script to replace the old training_service.py script. For Android/iOS, you can try to set up your own service, and then call the service from Android/iOS. @dschnabel would you like to add your dockerfile to the repo? By the way it looks great! |
@chenguoguo Thanks for the confirmation. I had another question related to Ubuntu if you don't mind. I can open another issue if that keeps things organized. Although I believe that support for the Raspberry Pi was later added to the original repository by other collaborators, I've been experiencing an issue with SciPy on the Raspberry Pi and I wanted to ask if you've perhaps had a similar experience. I've tried different versions of SciPy, Python virtual environments, and @dschnabel's Dockerfile on both Ubuntu and Raspbian, but they all fail— either stating that SciPy is not available, or that Ubuntu 16.04 is required. The Dockerfile works without issue on Ubuntu running on any other architecture. Any thoughts? |
@chenguoguo I created a PR: #14 |
Hi @dschnabel @chenguoguo Thank you |
I'm having the same issue, but cannot find a way to make it working. |
I tried to bypass the version check in
snowboy_pmdl.py
:elif platform.linux_distribution()[0] == "Ubuntu" and platform.linux_distribution()[1] in ("16.04", "18.04"):
.When I try to run the
generate_pmdl.py
, output (no error):But when I try to use the hotword.pmdl with demo, it doesn't work:
This issue makes me think that the pmdl is corrupted so it was not generated properly in the first place. May I ask how can I make it work in Ubuntu 18? What's the difference between Ubuntu 16 and 18? Maybe I can try Docker?
The text was updated successfully, but these errors were encountered: