MockingBird icon indicating copy to clipboard operation
MockingBird copied to clipboard

TypeError: resample() takes 1 positional argument but 3 were given

Open banner90 opened this issue 1 year ago • 11 comments

Summary[问题简述(一句话)] TypeError: resample() takes 1 positional argument but 3 were given

Env & To Reproduce[复现与环境] windows10,newest code,i download data\ckpt\synthesizer\pretrained-11-7-21_75k.pt python web.py --》hit synthesize button

Screenshots[截图(如有)] If applicable, add screenshots to help 捕获

banner90 avatar Mar 16 '23 05:03 banner90

i have the same problem

Karry-Almond avatar Mar 22 '23 08:03 Karry-Almond

i have the same problem

i resolved it, change the code where error, like this:xxx = xxx, but i think it need official solution 44357167

banner90 avatar Mar 23 '23 01:03 banner90

这是自动回复邮件。  已收到,谢谢!(请勿回复)

Karry-Almond avatar Mar 23 '23 01:03 Karry-Almond

It seems that there's compatibility issue of newer version of librosa, could you help to specify the older version in requirement.txt file or fix the parameters in my call?

On Thu, Mar 23, 2023 at 9:59 AM Karry-Almond @.***> wrote:

这是自动回复邮件。 已收到,谢谢!(请勿回复)

— Reply to this email directly, view it on GitHub https://github.com/babysor/MockingBird/issues/852#issuecomment-1480476202, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYUKEGKOM6XR2ZSGNDY6FLW5OVBTANCNFSM6AAAAAAV4W6UQ4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Cordially, Weijia Chen

  • www.linkedin.com/pub/weijia-chen/84/a7a/463/

babysor avatar Mar 23 '23 03:03 babysor

i have the same problem

i resolved it, change the code where error, like this:xxx = xxx, but i think it need official solution 44357167

Thanks for solving this problem! I've been bothered by it for a long time.

tianmingling avatar Apr 02 '23 07:04 tianmingling

I solved the same problem by edit models\encoder\audio.py:

image

Then it works. on Python 3.9.16, librosa 0.10.0.post2.

Pandaft avatar Apr 03 '23 12:04 Pandaft

I have the same issue. Could you please explain the solution in detail? I haven't tried modifying the code in audio.py as suggested below, but the issue persists. Therefore, I would like to ask for a detailed tutorial on the solution. Thank you.Looking forward to your help. Thank you.

ShareMk avatar Apr 18 '23 06:04 ShareMk

You can solve this problem by specifying the version of the librosa library.Such as: pip install librosa==0.9.2

pop1wlf avatar Jul 12 '23 07:07 pop1wlf

这是自动回复邮件。  已收到,谢谢!(请勿回复)

Karry-Almond avatar Jul 12 '23 07:07 Karry-Almond

TypeError: resample() takes 1 positional argument but 3 were given How to resolve this problem

Sivakgpian avatar Jun 29 '24 05:06 Sivakgpian

这是自动回复邮件。  已收到,谢谢!(请勿回复)

Karry-Almond avatar Jun 29 '24 05:06 Karry-Almond