yangdongchao / AcademiCodec

AcademiCodec: An Open Source Audio Codec Model for Academic Research
574 stars 80 forks source link

Error in "DiscriminatorSTFT" #34

Closed Liujingxiu23 closed 1 year ago

Liujingxiu23 commented 1 year ago

122 z = self.spec_transform(x) # [B, 2, Freq, Frames, 2]

But when I try to train the mode, z : torch.Size([8, 1, 513, 43, 2]), the second dim is 1 not 2. And errors when run z = torch.cat([z.real, z.imag], dim=1)

RuntimeError: real is not implemented for tensors with non-complex dtypes.

Liujingxiu23 commented 1 year ago

I update torchaudio and problem solved