-
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
Train stateful DTLN model #52
Comments
The stateful model inside the class was only build for exporting the model as a SavedModel. If you would like to train a stateful model use the standard model and change line 334 to a defined Input length and batch size. In the next step add in the call to self.seperation_kernel in line 344 and 354 the argument |
@breizhn Nils
If you are using tflite do you have to retrain as a stateful with the above or I am just doing something wrong with convert weights to tf_lite? Line 344 in 1de1f15
mask_1 = self.seperation_kernel(self.numLayer, (self.blockLen//2+1), mag_norm, stateful=True)
Is there a preference to defined Input length and batch size for realtime tflite? |
Hi Stuart (@StuartIanNaylor),
DTLN/real_time_processing_tf_lite.py Lines 34 to 38 in 1de1f15
And for the predefined length: As far as I know, conversion does not work with undefined dimensions. |
I will have a look at the shapes and see if I can work it out as just trying a singlekw of "hey marvin" than a full language just out of interest to see how well it could would work. |
Got round to having another go so just posting as I go.
DTLN/real_time_processing_tf_lite.py Lines 34 to 38 in 1de1f15
L39 insert ... print(input_details_1, "\n") print(output_details_1, "\n") print(input_details_2, "\n") print(output_details_2, "\n") ... They are returned as lists not tensors? Been too long and my memory as guess tflite but sure they are tensors with tensorflow
I thought ha this is simple just reverse the model loads
But
I have MS and I am having a not wake-up day and will have another go when feeling better :) |
Thanks to Nils but if your as confused as my befuddled brain just use this
|
Hi @breizhn ,
I'm trying train stateful DTLN model. And I see
time_dat = Input(batch_shape=(1, self.blockLen))
.Why is the
self.batchsize = 1
? Is this performance better?The text was updated successfully, but these errors were encountered: