PHASEN-PyTorch icon indicating copy to clipboard operation
PHASEN-PyTorch copied to clipboard

Can you share your model?

Open yds1024 opened this issue 3 years ago • 8 comments

Do you have plans to open source the model?

yds1024 avatar Feb 22 '22 02:02 yds1024

which one

IMLHF avatar Mar 07 '22 09:03 IMLHF

which one

all

BBBoobb avatar Apr 02 '22 05:04 BBBoobb

Running python -m PHASEN_009._2_train Will report an error TypeError: forward() missing 1 required positional argument: 'L',what would cause this?

tianyajun123 avatar May 18 '22 08:05 tianyajun123

Running python -m PHASEN_009._2_train Will report an error TypeError: forward() missing 1 required positional argument: 'L',what would cause this?

i have the same problem.Have you solved it yet?

wp1120103773 avatar Jun 16 '22 01:06 wp1120103773

modifing the line 92 ,let L = 48000, in the conv_stft.py can solve this problem.

wp1120103773 avatar Jun 16 '22 06:06 wp1120103773

modifing the line 92 ,let L = 48000, in the conv_stft.py can solve this problem.

ok,thank you very much!

tianyajun123 avatar Jun 16 '22 08:06 tianyajun123

You're welcome.Are you Chinese?If you like,I think that you can add me to qq:1120103773, so we can talk about some questions.

wp1120103773 avatar Jun 16 '22 08:06 wp1120103773

Sorry,modifing the line 92 ,let L = 48000, in the conv_stft.py can‘t solve this problem,But i get the other way,let L=None,and
insert the line :”L = outputs.size(-1)“ before line 111 “t = self.window.repeat(1,1,inputs.size(-1))**2”.I think this can solve the problem.

wp1120103773 avatar Jun 16 '22 12:06 wp1120103773

Running python -m PHASEN_009._2_train Will report an error TypeError: forward() missing 1 required positional argument: 'L',what would cause this?

fixed : https://github.com/IMLHF/PHASEN-PyTorch/blob/082444f505e662948d9702f4e844ebd37c453e7e/phasen_torch/models/phasen.py#L505

change line 504 in "phasen_torch/models/phasen.py" to "_mixed_wav_length = mixed_wav_batch.size()[-1]; est_clean_wav_batch = self._istft_fn(est_clean_stft_batch, _mixed_wav_length)".

The parameter "L" is similar with "length" in torch.istft. You could find this function at https://pytorch.org/docs/stable/generated/torch.istft.html?highlight=stft#torch.istft.

IMLHF avatar Dec 28 '22 14:12 IMLHF