hiromu / robust_audio_ae

Robust Audio Adversarial Example for a Physical Attack
BSD 2-Clause "Simplified" License
60 stars 22 forks source link

error when run python recognize.py models/output_graph.pb ae_recorded.wav models/alphabet.txt models/lm.binary models/trie #3

Closed Vai-bhav closed 4 years ago

Vai-bhav commented 4 years ago

Loading model from file models/output_graph.pb Traceback (most recent call last): File "recognize.py", line 96, in main() File "recognize.py", line 63, in main ds = Model(args.model, N_FEATURES, N_CONTEXT, args.alphabet, BEAM_WIDTH) File "/home/robust_audio_ae/env/lib/python3.6/site-packages/deepspeech/init.py", line 40, in init status, impl = deepspeech.impl.CreateModel(*args, **kwargs) TypeError: CreateModel() takes at most 2 arguments (5 given)

tom-doerr commented 4 years ago

You could try:

pip uninstall deepspeech
pip install deepspeech==0.1.0

recognize.py seems to use the deepspeech python package instead of the deepspeech 0.1.0 version you downloaded.