Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片生成失败 'Version' object has no attribute 'predict' #7

Open
sephrioth opened this issue Nov 13, 2023 · 11 comments
Open

图片生成失败 'Version' object has no attribute 'predict' #7

sephrioth opened this issue Nov 13, 2023 · 11 comments

Comments

@sephrioth
Copy link

模型都报同一个错误
HTTP Request: GET https://api.replicate.com/v1/models/luosiallen/latent-consistency-model "HTTP/1.1 200 OK" HTTP Request: GET https://api.replicate.com/v1/models/luosiallen/latent-consistency-model/versions/553803fd018b3cf875a8bc774c99da9b33f36647badfd88a6eec90d61c5f62fc "HTTP/1.1 200 OK" [ERROR][2023-11-13 21:30:46][main.py:159] - [RP] exception: 'Version' object has no attribute 'predict' Traceback (most recent call last): File "/root/chatgpt-on-wechatcom/plugins/plugin_replicate/main.py", line 125, in on_handle_context result = version.predict(**params) AttributeError: 'Version' object has no attribute 'predict'

@sephrioth sephrioth changed the title 图片生成失败 图片生成失败 'Version' object has no attribute 'predict' Nov 13, 2023
@linqiu919
Copy link

Version.predict()方法貌似已经被弃用了,现在推荐使用replicate.run这个方法了。
Update deprecation warnings for Model.predict and Version.predict #137
更新 Model.predict 和 Version.predict 的弃用警告 #137

@sephrioth
Copy link
Author

Version.predict()方法貌似已经被弃用了,现在推荐使用replicate.run这个方法了。 Update deprecation warnings for Model.predict and Version.predict #137 更新 Model.predict 和 Version.predict 的弃用警告 #137

尝试改了下, 但是还是失败了... 好像作者也停止更新了

@linqiu919
Copy link

需要画图还是接入Link.AI用midjourney吧,这个即使可以使用效果也不是很好。

@sephrioth
Copy link
Author

需要画图还是接入Link.AI用midjourney吧,这个即使可以使用效果也不是很好。

主要是这个可以很容易通过关键词来选择合适的模型...

@lanvent
Copy link
Owner

lanvent commented Nov 20, 2023

装<=0.10.0的replicate包可以用吗

@sephrioth
Copy link
Author

装<=0.10.0的replicate包可以用吗

作者现身了!

还没有尝试过老的包, 等有空我我试试, 不过最好的方法还是支持新的方法吧

@linqiu919
Copy link

已测试,降级为0.10.0版本后可正常使用。

@lanvent
Copy link
Owner

lanvent commented Nov 20, 2023

感谢反馈,已限制replicate版本。根据官方的pr信息,应该只修改了api调用方法,对性能没有影响。等有空时候再适配一下新版本的api :)

@sephrioth
Copy link
Author

奇怪, 我降级为 0.10.0 后还是发生了报错

[ERROR][2023-11-20 22:57:08][main.py:159] - [RP] exception: Invalid reference to model version: fofr/latent-consistency-model. Expected format: owner/name:version Traceback (most recent call last): File "/root/chatgpt-on-wechatcom/plugins/plugin_replicate/main.py", line 125, in on_handle_context result = version.predict(**params) File "/usr/local/lib/python3.8/site-packages/replicate/client.py", line 141, in run ): File "/usr/local/lib/python3.8/site-packages/replicate/run.py", line 29, in run replicate.exceptions.ReplicateError: Invalid reference to model version: fofr/latent-consistency-model. Expected format: owner/name:version

@linqiu919
Copy link

卸载重装插件试

@markgeen
Copy link

markgeen commented Dec 4, 2023

模型都报同一个错误 HTTP Request: GET https://api.replicate.com/v1/models/luosiallen/latent-consistency-model "HTTP/1.1 200 OK" HTTP Request: GET https://api.replicate.com/v1/models/luosiallen/latent-consistency-model/versions/553803fd018b3cf875a8bc774c99da9b33f36647badfd88a6eec90d61c5f62fc "HTTP/1.1 200 OK" [ERROR][2023-11-13 21:30:46][main.py:159] - [RP] exception: 'Version' object has no attribute 'predict' Traceback (most recent call last): File "/root/chatgpt-on-wechatcom/plugins/plugin_replicate/main.py", line 125, in on_handle_context result = version.predict(**params) AttributeError: 'Version' object has no attribute 'predict'

感谢各位先遣者的提醒,我找到我的问题和你一样。but重新卸载安装真能没有了version的问题。不过图片并没有发出来,点开url一看是replicate网站的报错
image。不过好像今晚我用replicate网站img2video也一直错误,可能是网站出问题了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants