TypeError: Image.__init__() got an unexpected keyword argument ‘tool‘
·
运行zero123++的时候遇到报错:
TypeError: Image.__init__() got an unexpected keyword argument 'tool'
这是gradio的Image模块里报错了,看着像是版本问题。所以去查文档 Gradio Image Docs,发现最新版本4.19.2里已经移除了tool,而3.50.2里是有的。

然后在自己环境里 pip show gradio 或者 pip list 看一下版本,我装的是4.19.2。

所以只需要降级一下就可以了:
pip install gradio==3.50
更多推荐

所有评论(0)