-
Notifications
You must be signed in to change notification settings - Fork 44
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
If i need a file of tflite format,how to convert the stft and istft use conv1d? #30
Comments
initialize the weights of convolutional layers by the basis function of the FFT. |
Thanks,This is modified code: import os import soundfile as sf from modules import DprnnBlock seed(42) def init_kernels(win_len, win_inc, fft_len, win_type=None, invers=False):
#kernel = init_kernels(400, 100, 512, win_type='hanning', invers=False) class ConvSTFT(tf.keras.layers.Layer):
class ConviSTFT(tf.keras.layers.Layer):
class MK_M(tf.keras.layers.Layer):
class Overlap_addLayer(tf.keras.layers.Layer):
class DPCRN_model():
But,i got a error: ValueError: Depth of output (402) is not a multiple of the number of groups (400) for 'Adam/gradients/convi_stft/conv1d_transpose_grad/Conv2D' (op: 'Conv2D') with input shapes: [8,1,1599,400], [1,400,1,402]. Thanks! |
it looks like the output dimensions of the iSTFT do not match the groups number |
Yes,but i changed the size of kernel(filter) and stride is invalid。 |
Can you help me verify the code of tf.nn.conv1d_transpose(ConviSTFT)? |
Ok,I'll get back to you later. Please post the code of ConviSTFT agian? you can send the .py file to [email protected] |
OK |
Hi: modelparh = r"dpcrn_4.h5" The error is : ValueError: Unknown loss function:lossFunction |
When i use: The error is: TypeError: lossWrapper() takes 1 positional argument but 2 were given |
Hi,i find a method https://github.com/huyanxin/phasen/blob/master/model/conv_stft.py use conv1d and conv1d_transpose instead stft and istft,but it is pytorch.When i replace tensorflow with pytorch,the result is error.Can i know you code about conv1d and conv1d_transpose instead stft and istft? Because later I want to compress it and move it to the chip。
Thank you vary much!
The text was updated successfully, but these errors were encountered: