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

error in run_audio_attack.py #5

Closed
shudong-zhang opened this issue Sep 25, 2019 · 4 comments
Closed

error in run_audio_attack.py #5

shudong-zhang opened this issue Sep 25, 2019 · 4 comments

Comments

@shudong-zhang
Copy link

ValueError: Input tensor 'ExpandDims:0' enters the loop with shape (1, 11), but has shape (1, ?) after one iteration. To allow the shape to vary across iterations, use the shape_invariants argument of tf.while_loop to specify a less-specific shape.

When I run run_audio_attack.py, I got an error list above.How to solve it ?

@rtaori
Copy link
Owner

rtaori commented Sep 26, 2019

Hi,
It seems the DeepSpeech repo has been updated since this work was done. Could you try following the suggestion in #4 ?

@rtaori rtaori closed this as completed Sep 26, 2019
@shudong-zhang
Copy link
Author

I can pass the make_checkpoint.py, so I don't think the error casued by version.

@rtaori
Copy link
Owner

rtaori commented Sep 26, 2019

Right yes, but run_audio_attack.py still makes calls to the DeepSpeech library, so if anything there has changed then it could break the program. Could you try reverting to the commit specified in #4? I have tested it on that version so it should work.

@rtaori rtaori mentioned this issue Oct 3, 2019
@rtaori
Copy link
Owner

rtaori commented Aug 27, 2020

hi @zhangdong1992,

I have updated the installation instructions with much more detail in the README.
Please follow the steps there and open another issue if you still have any problems.

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

No branches or pull requests

2 participants