options

简介: 这篇文章描述了在使用modelscope库下载模型时遇到的`TypeError: __init__() got an unexpected keyword argument ‘allowed_methods’`错误,并提供了通过升级`urllib3`库来解决该错误的方案。

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
相关文章
|
5月前
|
jenkins 持续交付 算法框架/工具
environment与options
environment与options
44 7
ValidationError: Invalid options object. Dev Server has been initialized using an options object tha
ValidationError: Invalid options object. Dev Server has been initialized using an options object tha
|
存储 Python
05 Tornado - options
05 Tornado - options
63 0
成功解决TypeError: __init__() got an unexpected keyword argument 'serialized_options'
成功解决TypeError: __init__() got an unexpected keyword argument 'serialized_options'
|
应用服务中间件 Linux BI
Tomcat部署iframe出现Refused to display ‘url‘ in a frame because it set ‘X-Frame-Options‘ to ‘deny‘无法访问问题
Tomcat部署iframe出现Refused to display ‘url‘ in a frame because it set ‘X-Frame-Options‘ to ‘deny‘无法访问问题
770 0
Tomcat部署iframe出现Refused to display ‘url‘ in a frame because it set ‘X-Frame-Options‘ to ‘deny‘无法访问问题
You have to specify ‘-keep‘ options for the shrinking step
You have to specify ‘-keep‘ options for the shrinking step
80 0
|
Java 应用服务中间件 Python
Refused to display 'xxx' in a frame ,because it set 'X-Frame-Options' to 'deny'.
我本是在DJANGO页面的iframe里嵌入springboot的页面。 当报了这个错误之后,我花了时间在nginx和django上, 后来才改变解决思路,从springboot出发,解决问题。
5888 0
|
Web App开发 网络安全
Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute在这里插入图片描述
2133 0
|
Web App开发 Linux Android开发
chrome报错formData.set is not a function的解决办法
chrome报错formData.set is not a function的解决办法
669 0
|
缓存 Oracle 关系型数据库
20171122参数filesystemio_options=setall
[20171122]参数filesystemio_options=setall.txt --//首先给出oracle官方的解析: https://docs.oracle.
1165 0