TypeError: __init__() got an unexpected keyword argument ‘allowed_methods‘
TypeError: init() got an unexpected keyword argument ‘allowed_methods’
2023-11-03 00:09:32,463 - modelscope - INFO - PyTorch version 2.0.1+cu117 Found.
2023-11-03 00:09:32,467 - modelscope - INFO - Loading ast index from C:\Users\Admin.cache\modelscope\ast_indexer
2023-11-03 00:09:32,582 - modelscope - INFO - Loading done! Current index file version is 1.8.1, with md5 a46873d50b184c3b12f04f6dd0884717 and a total number of 893 components indexed
2023-11-03 00:09:34,210 - modelscope - INFO - Use user-specified model revision: v1.1.0
Traceback (most recent call last):
File “E:\Big_AI\l2VGen-XL\main.py”, line 4, in
pipe = pipeline(task=“image-to-video”, model=‘damo/Image-to-Video’, model_revision=‘v1.1.0’, device=‘cuda:0’)
File “D:\Anaconda3\envs\human\lib\site-packages\modelscope\pipelines\builder.py”, line 106, in pipeline
model = normalize_model_input(
File “D:\Anaconda3\envs\human\lib\site-packages\modelscope\pipelines\builder.py”, line 33, in normalize_model_input
model = snapshot_download(
File “D:\Anaconda3\envs\human\lib\site-packages\modelscope\hub\snapshot_download.py”, line 149, in snapshot_download
http_get_file(
File “D:\Anaconda3\envs\human\lib\site-packages\modelscope\hub\file_download.py”, line 282, in http_get_file
retry = Retry(
TypeError: init() got an unexpected keyword argument ‘allowed_methods’
一、前言
在modelscope下载模型的时候报错
二、原因
urllib3版本低,升级一下就好
pip install urllib3 --upgrade
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!