-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
TypeError: Can't instantiate abstract class AudioToTextDataLayer with abstract methods create_ports #246
Comments
looks like you are somehow mixing master branch with 0.9 version. |
Thanks that fixed it :D Now I'm trying to install the language model but I keep getting segmentation fault at random times when setup.sh is run the decoders. Sorry for reporting it on the same issue but do you have any idea what it might be wrong or how to clean install it again? (I tried deleting the decoders generated file and rerun install_decoders.sh but that didnt work) |
can you give details about your system (e.g. OS type and RAM size). |
It's Ubuntu 16.04.6 LTS with 32GB ram Is it supposed to work only on Ubuntu 18.04? |
can you please paste the full error? |
I'm gonna paste the last portion before and after the error (the log is a little bigger) gcc -pthread -B /home/checker/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -Ikenlm -Iopenfst-1.6.3/src/include -IThreadPool -I/home/checker/anaconda3/include/python3.7m -c kenlm/lm/search_trie.cc -o build/temp.linux-x86_64-3.7/kenlm/lm/search_trie.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB Running it again the script compiles for longer but get this segmentation fault at some point and the stops after a while openfst-1.6.3/src/include/fst/vector-fst.h: In member function ‘void fst::VectorState<Arc, Allocator>::SetArc(const Arc&, size_t) [with A = fst::ArcTpl<fst::LogWeightTpl >; M = std::allocator<fst::ArcTpl<fst::LogWeightTpl > >; fst::VectorState<Arc, Allocator>::Arc = fst::ArcTpl<fst::LogWeightTpl >; size_t = long unsigned int]’:
Please submit a full bug report, |
Looks like gcc 5.4.0 bug |
I think @borisgin is right, 16.04 comes with an older gcc. Could you please update your gcc and try again? |
Yes the first answer in the link fixed it thank you! Now the final (hopefully) problem I'm facing is building the 6-gram LM for librispeech by calling ./build_6-gram_OpenSLR_lm.sh After that the lm model starts to build but after some minutes I get this error /build_6-gram_OpenSLR_lm.sh |
closing as this is related to the old version |
Hi, I installed NeMo by cloning the repo and following the installation orders. However when i tried to run the ASR example notebook I got this error:
File "examples/asr/jasper_eval.py", line 96, in main
**eval_dl_params)
Create the Jasper_4x1 encoder as specified, and a CTC decoder
---> 23 encoder = nemo_asr.JasperEncoder(**params['JasperEncoder'])
24
25 decoder = nemo_asr.JasperDecoderForCTC(
TypeError: Can't instantiate abstract class JasperEncoder with abstract methods create_ports
I also get a similar error when trying to evaluate a quartznet on the Librispeech dev:
TypeError: Can't instantiate abstract class AudioToTextDataLayer with abstract methods create_ports
Did I miss something? Thanks in advance.
The text was updated successfully, but these errors were encountered: