-
Notifications
You must be signed in to change notification settings - Fork 161
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
Tf_lite #56
Comments
@StuartIanNaylor Please can you explain what changes do I have to make in my code or in process to get out of this error? |
I never got round to trying but somehow the tensor sizes get mixed up so prob do a print(shape) and set the input tensors accordingly. |
@StuartIanNaylor Okay Thanks!.... |
Code:
''' Error: I got the following Dimension mismatch error. '''
'''
And when I am adding another dimension in the in_mag, getting this error:
And for other values getting this error:
|
Yeah its really confusing for the likes of me as the in_mag shape is the output shape not the input maybe @breizhn might have time to give us some pointers as I did the same and just swapped the model loads. |
So from
we see that the TF-lite model has two inputs: From the input details you can see that, 'shape': array([ 1, 2, 128, 2] (the LSTM states) has idx=0 and 'shape': array([ 1, 1, 257] (the input magnitude) has idx=1. so switch the index:
if you get and error after the first iteration also switch
Always check input and output details, so that the index for each input and output is correct. |
OK I am still having an off day but got to line 100 but thrown in loads of print statements so you can see.
I get to here and maybe those shape printouts may help
Which then swapping the indexes on
Yeah :) thanks
|
So if that was as confusing as it was for this slightly befuddled brain at the moment just try this
|
Getting this error when I am running real_time_processing_tf_lite.py.
Any help will be greatly appreciable . Thanks in Advance!
@breizhn
The text was updated successfully, but these errors were encountered: