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

Segmentation fault (core dumped) #252

Open
Typelias opened this issue Mar 28, 2022 · 2 comments
Open

Segmentation fault (core dumped) #252

Typelias opened this issue Mar 28, 2022 · 2 comments
Labels
bug Something isn't working need to reproduce Need a code or time to reproduce the issue

Comments

@Typelias
Copy link

Hi!

I trained the DeepSpeech2 model using the example scripts. With the trained checkpoints I generated a tflite model using the provided conversion script. I can successfully load and allocate the tensors but as soon as I invoke it fails and gives me Segmentation fault (core dumped).

Code for loading the model:

import tensorflow as tf
import soundfile as sf
wav, rate = sf.read("x.flac", dtype='float32')

model = tf.lite.Interpreter("test.tflite")

outputIndex = model.get_output_details()[0]['index']
model.resize_tensor_input(0, wav.shape)
model.allocate_tensors()
model.set_tensor(0, wav)

model.invoke()

output = model.get_tensor(outputIndex)
print(output)
@nglehuy
Copy link
Collaborator

nglehuy commented Apr 3, 2022

@Typelias Could you provide your tensorflow version?

@Typelias
Copy link
Author

Typelias commented Apr 4, 2022

@usimarit
TensorFlow version: '2.8.0'
Do you need any more information?

@nglehuy nglehuy added bug Something isn't working need to reproduce Need a code or time to reproduce the issue labels Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need to reproduce Need a code or time to reproduce the issue
Projects
None yet
Development

No branches or pull requests

2 participants