Skip to content
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

Build your own personal models (using Docker) #14

Merged
merged 2 commits into from
May 3, 2021
Merged

Build your own personal models (using Docker) #14

merged 2 commits into from
May 3, 2021

Conversation

dschnabel
Copy link

Created a PR as requested in #7 (comment)

Copy link
Collaborator

@chenguoguo chenguoguo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you!

@chenguoguo chenguoguo merged commit 01cb94e into seasalt-ai:master May 3, 2021
@dschnabel dschnabel deleted the add-dockerfile branch May 3, 2021 17:19
@DocksDocks
Copy link

Hello I was just using your Dockerfile to able to make my 'hotword.pmdl' and went through some problems

First problem was that in the last version released for scipy in python2 depends on numpy and mkv to be built

I simply resolved this by adding pip install for numpy and mkv

    . venv/snowboy/bin/activate && \
    cd examples/Python && \
    pip install numpy && \
    pip install mkv && \
    pip install -r requirements.txt

But then i built my docker image with

sudo docker build -t snowboy-pmdl .

And ran it

sudo docker run -it -v $(pwd)/model:/snowboy-master/examples/Python/model snowboy-pmdl

I got this import error for snowboy.so

Traceback (most recent call last):
  File "generate_pmdl.py", line 7, in <module>
    from pmdl.snowboy_pmdl import SnowboyPersonalEnroll, SnowboyTemplateCut
  File "/snowboy-master/examples/Python/pmdl/snowboy_pmdl.py", line 10, in <module>
    from snowboy import *
  File "/snowboy-master/examples/Python/pmdl/lib/ubuntu64/pmdl/snowboy.py", line 28, in <module>
    _snowboy = swig_import_helper()
  File "/snowboy-master/examples/Python/pmdl/lib/ubuntu64/pmdl/snowboy.py", line 24, in swig_import_helper
    _mod = imp.load_module('_snowboy', fp, pathname, description)
ImportError: /snowboy-master/examples/Python/pmdl/lib/ubuntu64/pmdl/_snowboy.so: cannot open shared object file: No such file or directory

I actually didnt get how to solve this problem, if anyone could help me I would be very grateful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants