开发者社区 问答 正文

modelscope下载模型文件报错

报错信息如下: /usr/local/lib/python3.8/dist-packages/modelscope/hub/file_download.py in http_get_file(url, local_dir, file_name, cookies, headers) 208 logger.info('downloading %s to %s', url, temp_file.name) 209 # retry sleep 0.5s, 1s, 2s, 4s --> 210 retry = Retry( 211 total=API_FILE_DOWNLOAD_RETRY_TIMES, 212 backoff_factor=1,

TypeError: init() got an unexpected keyword argument 'allowed_methods'

展开
收起
游客hglwcpcduhde2 2022-12-01 09:50:37 1253 分享 版权
2 条回答
写回答
取消 提交回答
  • 你试试把那个参数注释了,我注释之后就没那个问题了。 微信图片_20230209171540.png

    2023-02-09 17:16:16
    赞同 1 展开评论
  • 一名在读研究生程序猿,欢迎大家指教,我们共同进步!

    如果报错是“TypeError: init() got an unexpected keyword argument 'xxx'”,请检查“xxx”的拼写是否正确。

    例如:错误案例:TypeError: init() got an unexpected keyword argument 'substitle',把“substitle”改为“subtitle”,则错误修正。

    详细的过程去结合你的代码内容看一下

    2022-12-01 16:38:42
    赞同 1 展开评论