-
Notifications
You must be signed in to change notification settings - Fork 69
Evaluating Deep Speech 2 on Mac OSX #56
Comments
Update: I reloaded the
(The paths are correct; I checked.) The error message looks like:
The data that I'm using comes from running:
I don't know what I could be doing wrong? |
@karllab41 You are doing everything right. PR #57 is addressing the initial problem. |
Thanks, @wei-v-wang. While on the Mac, I haven't gotten evaluation on Librispeech to work (with either aeon-0.2.7 or 1.0), Linux has been okay with aeon-0.2.7 (release), neon 2.1, python 2.7 (though I'd like to try 3...) Not sure if that helps, but just FYI |
report: not working on Mac for both train and evaluation (with aeon 1.0). |
report update: tested on Linux (Ubuntu 1604) with aeon-0.2.7 (release), neon 2.2.0, python 2.7. So far so good. |
Thanks @yangroupaomo neon 2.2.0 should be automatically install aeon 1.0. In neon's virtual environment (. .venv/bin/activate), and do "pip list |grep aeon", it should be aeon-1.0, right? @karllab41 We released neon 2.2.0 which featured our first improvement of DS2 on IA (more improvement to come in future releases). Feel free to try the latest neon as well (git checkout latest) from neon directory. :) |
Yes, it is *nervana-aeon (1.0.0).*
Will keep working on the evaluation part tonight and hopefully it will work.
BTW, is there any workaround for the Mac Issue?
…On Thu, Sep 28, 2017 at 11:18 PM, Wei Wang ***@***.***> wrote:
Thanks @yangroupaomo <https://github.com/yangroupaomo> neon 2.2.0 should
be automatically install aeon 1.0. In neon's virtual environment (.
.venv/bin/activate), and do "pip list |grep aeon", it should be aeon-1.0,
right?
Please feel free to let us know of issues.
@karllab41 <https://github.com/karllab41> We released neon 2.2.0 which
featured our first improvement of DS2 on IA (more improvement to come in
future releases). Feel free to try the latest neon as well (git checkout
latest) from neon directory. :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWBRGTrz1iw7LwaisBnAYBERjJQV4eLbks5snIvIgaJpZM4PhGCo>
.
|
I am getting many errors while installing aeon and try to check for nervana-aeon; ...... In file included from /home/saikishor/Deepspeech/neon/aeon/src/buffer_batch.hpp:23: In file included from /usr/include/opencv2/core/core.hpp:58: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/cstddef:51:11: error: no member named 'max_align_t' in the global namespace using ::max_align_t;
In file included from /home/saikishor/Deepspeech/neon/aeon/src/box.cpp:16: In file included from /home/saikishor/Deepspeech/neon/aeon/src/box.hpp:19: In file included from /usr/include/opencv2/core/core.hpp:58: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/cstddef:51:11: error: no member named 'max_align_t' in the global namespace using ::max_align_t;
In file included from /home/saikishor/Deepspeech/neon/aeon/src/block_manager.cpp:18: In file included from /home/saikishor/Deepspeech/neon/aeon/src/block_manager.hpp:21: In file included from /home/saikishor/Deepspeech/neon/aeon/src/buffer_batch.hpp:23: In file included from /usr/include/opencv2/core/core.hpp:58: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/cstddef:51:11: error: no member named 'max_align_t' in the global namespace using ::max_align_t;
1 error generated. clang++ -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -fstack-protector -I/usr/include/opencv -I/usr/include/python2.7 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c /home/saikishor/Deepspeech/neon/aeon/src/boundingbox.cpp -o build/temp.linux-x86_64-2.7/home/saikishor/Deepspeech/neon/aeon/src/boundingbox.o -O3 -std=c++11 -Werror=return-type -Werror=inconsistent-missing-override -Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded -Wno-weak-vtables -Wno-global-constructors -Wno-switch-enum -Wno-gnu-zero-variadic-macro-arguments -Wno-undef -Wno-exit-time-destructors -Wno-missing-prototypes -Wno-disabled-macro-expansion -Wno-pedantic -Wno-documentation -Wno-covered-switch-default -Wno-old-style-cast -Wno-unknown-warning-option -Wno-sign-compare -Wno-unused-parameter -Wno-conversion -Wno-float-equal -Wno-duplicate-enum -Wno-used-but-marked-unused -Wno-c++11-compat-deprecated-writable-strings -Wno-deprecated -Wno-double-promotion -DPYTHON_FOUND error: command 'clang++' failed with exit status 1 1 error generated. 1 error generated. 1 error generated. 1 error generated. In file included from /home/saikishor/Deepspeech/neon/aeon/src/boundingbox.cpp:17: In file included from /home/saikishor/Deepspeech/neon/aeon/src/etl_boundingbox.hpp:21: In file included from /home/saikishor/Deepspeech/neon/aeon/src/interface.hpp:27: In file included from /home/saikishor/Deepspeech/neon/aeon/src/typemap.hpp:19: In file included from /usr/include/opencv2/core/core.hpp:58: /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/cstddef:51:11: error: no member named 'max_align_t' in the global namespace using ::max_align_t;
1 error generated. 1 error generated. 1 error generated. 1 error generated. Cleaning up... |
It was not quite eye-catching but "http://neon.nervanasys.com/index.html/installation.html" has a suggestion when encountering aeon related issues. To be more clear, the above seems to be related to clang and could you try following aeon readme to install all pre-requisites? aeon is part of neon but neon does not list (automatically install) all aeon pre-requisites. https://github.com/NervanaSystems/aeon/blob/master/README.md |
Yes the problem is definitely with clang, but it's very hard on resolve. I am using Ubuntu so the prerequisites installation is only: apt-get install git clang cmake python-dev python-pip libcurl4-openssl-dev libopencv-dev libsox-dev Followed by normal installation "cmake" of aeon. Do you have any idea how to solve it?. |
The version of the clang is 3.4 and it's using gcc and gcc++ of 4.9 as default. Is there any possible way to resolve it? |
any possibility of upgrading clang from 3.4 to 3.5? Google search on "max_align_t" had suggestions along these lines. |
I tried installing clang to 3.6 after removing 3.4 and tried to run the commands, but ended up with the same at the end. I tried about max_align_t on Google, but there are many solutions with clang, but they only propose to run for individual files and they didn't explain well how to do for a Cmake file. |
FYI: NervanaSystems/neon#375 had some suggestion with using libc++ Can you try the fix in the above 375? That was a Mac system in 375 fix. |
Thanks I tried but, I have a question I didn't find env.sh in aeon package folder, so I didn't find a way to proceed further!!! |
I am using Ubuntu 14.04 system |
Oh, sorry the 375 issue must have been for old aeon. Let me take a closer look. |
Thanks you for your effort.. @wei-v-wang |
First, sorry to others if we are discussing neon installation issues on deep speech :) @saikishor I am using a similar system as yours (Ubuntu 16.04) and clang 3.8 and gcc5.4 HEAD is now at 7e1af03... Merge for v1.0.0 release. The number changed from v1.0.1 to v1.0.0 because v1.0.0 has never been released. |
Sorry to others from my side as well. |
OK, sorry for the frustrating experience. Here hopefully is a better suggestion: -- The C compiler identification is GNU 4.8.4 would also work. So can you completely remove gcc-4.9 and install gcc-4.8? Afterwards, can you try install clang 3.4? |
Sure @wei-v-wang. I will try and keep you updated. Do you think uninstalling and installing all gcc by gcc 4.8, will not create any issue to my cuda?. I will surely give a try. |
I am not sure whether changes to gcc will affect cuda. |
Yes sure. I will try to do that and keep you posted. |
I gave up on neon, i tried many suggestions from stackoverflow and other places, couldn't resolve my issue. Thanks for all your help @wei-v-wang |
Hi @saikishor I understand your frustration regarding gcc versions and clang version. Did "GNU 4.8.4 and Clang 3.4.0" not help? Also, neon is evolving, we encourage you to try it later on while we improve the installation experience. However, it is likely there would be difficult corner cases to handle, e.g. the gcc/clang related issue tied to the operating system. |
@wei-v-wang Yes yes docker is an option!!!, but where can I find the info about setting up neon on docker? |
Hi @saikishor I will contact my team for the instructions on the docker option. Please stay tuned. |
Wow!!! @wei-v-wang Thanks for your generous help.... Thank you once again for an initiative on docker option. |
@saikishor You are welcome. |
@wei-v-wang Surely I will consider Intel Xeon Scalable Processor Family (Skylake) for training, but more researchers are very interested on its evaluation peformance on CPU's as this will drive the whole neon into real-time applications. |
@saikishor Good point! I should have asked you to consider Skylake for both training and inference, :) |
Hi @saikishor , below I'm providing you instruction how to set and run Neon + Deepspeech inside Docker container: Build docker image using below dockerfile:docker build --rm -f=Ubuntu-14.04.txt -t=neon:test . Run your docker container:docker run -it --name neon_test neon:test /bin/bash To run Deepspeech training on Neon, while inside docker container, follow below steps:1. Install Neon 2.2git clone https://github.com/NervanaSystems/neon.git 2. Install Deepspeechgit clone https://github.com/NervanaSystems/deepspeech.git 3. Prepare Deepspeech datasets and run the trainingPlease follow instructions described in https://github.com/NervanaSystems/deepspeech/blob/master/README.md , paragraph "Training a model". IMPORTANT: You might need to additionally install scipy package (pip install scipy) Example training commandline using GPU backend: python train.py --manifest train:/root/output/train-clean-100/train-manifest.csv This will run 2 epochs on GPU backend, use batch size 8 and save model to "model_output.pkl" file. Let me know if you encounter any issues, I will help. |
Thank you @wsokolow that was a fast response. I need some time to try this, after that i will let you know. |
@saikishor I investigated extactly the same problem as yours recently. This problem does not reproduce with gcc 4.8, but does with gcc 4.9. AFAIK gcc 4.8 is default version for ubuntu 14.04, so I suppose you had to update it. I see you wrote that it didnt help for you to install clang 3.5 - that's strange. Maybe try upgrading to 3.8 or downgrading gcc to 4.8. |
Hello! Thanks for posting this. I'm excited to run speech recognition on files! I've been trying to use Deep Speech 2 for evaluating my denoising pipeline. However, I'm having some trouble with the installation, and most of it is from
aeon
and the data loading.When I run:
python evaluate.py --manifest val:$TOPDIR/librispeech/test-clean/test-manifest.csv --model_file $TOPDIR/model/librispeech_16_epochs.prm
I get:
Here's how I did my installation. I installed Neon from scratch via the original github page, which I assumed installed
aeon
. It did, but dataloader apparently was not in that installation. So, I went to the aeon page. The instructions told me to install aeon via:That seemed incorrect (since private-aeon.git seems to no longer be private). So, I just installed
I ran into some C++ problems, so I followed Aeon Issue 48, which installed it. However, even after I installed aeon, I still couldn't import aeon.datasetloader.
The text was updated successfully, but these errors were encountered: