Amphion icon indicating copy to clipboard operation
Amphion copied to clipboard

Fix bugs shape quantize, outs

Open huutuongtu opened this issue 10 months ago • 2 comments

Fix size for quantized_buf residual, prosody, phone.

✨ Description

Some audio will have bug with shape when I try voice conversion, so I changed some code to fix:

[1048] outs += out RuntimeError: The size of tensor a (335) must match the size of tensor b (334) at non-singleton dimension 2

👨‍💻 Changes Proposed

  • [x] Change shape residual, out, x, ...

🧑‍🤝‍🧑 Who Can Review?

@HeCheng0625

✅ Checklist

  • [ ] Code has been reviewed
  • [ ] Code complies with the project's code standards and best practices
  • [ ] Code has passed all tests
  • [ ] Code does not affect the normal use of existing features
  • [ ] Code has been commented properly
  • [ ] Documentation has been updated (if applicable)
  • [ ] Demo/checkpoint has been attached (if applicable)

huutuongtu avatar Apr 01 '24 07:04 huutuongtu

@huutuongtu Hi, please install black and run it to reformat the code, ensuring the GitHub auto-check is successful.

yuantuo666 avatar Apr 04 '24 15:04 yuantuo666

@HeCheng0625 Hi, yuancheng, could you take a look at this pr about bugs in FaCodec when u r available? The codes look good to me.

HarryHe11 avatar Apr 06 '24 03:04 HarryHe11