cydxdianxian / ai_image_gen Goto Github PK
View Code? Open in Web Editor NEWNovelAI绘图HoshinoBot插件版
License: GNU General Public License v3.0
NovelAI绘图HoshinoBot插件版
License: GNU General Public License v3.0
使用naifu,
小号:ai绘画 1girl
bot回复:生成失败…list index out of range
naifu的cmd里面显示INFO: 127.0.0.1:59984 - "GET /got_image?tags=1girl&token= HTTP/1.1" 404 Not Found
请问如何处理呢,谢谢!
[2022-10-29 22:29:46,495 nonebot] INFO: Self: 1577886880, Message -1956582883 from 2536654446@[群:727288390]: '[CQ:image,file=a2d13c4bf564b312980b7d1085f503c7.image,url=https://gchat.qpic.cn/gchatpic_new/2536654446/727288390-3056989118-A2D13C4BF564B312980B7D1085F503C7/0?term=3&is_origin=0,subType=1]'
[2022-10-29 22:29:46,495] INFO in message: Self: 1577886880, Message -1956582883 from 2536654446@[群:727288390]: '[CQ:image,file=a2d13c4bf564b312980b7d1085f503c7.image,url=https://gchat.qpic.cn/gchatpic_new/2536654446/727288390-3056989118-A2D13C4BF564B312980B7D1085F503C7/0?term=3&is_origin=0,subType=1]'
Traceback (most recent call last):
File "D:\hoshinoBOT\HoshinoBot\hoshino\modules\AI_image_gen\utils.py", line 161, in get_imgdata
msgdata = json.loads(re.findall(r'{"steps".+?}',str(imgdata))[0]) # 使用r''来声明原始字符串,避免转义
IndexError: list index out of range
10次会报5次这种错,5次能正常出片
rt
报错信息:图片被创死
看起来像是没调用到本地部署的ai接口,我确定本地部署成功,用其他的也测试过,现在这个错误该怎么解决
yudao.py使用同步请求,会卡死bot
ban worlds中加上ass会把embarrassed过滤成embarred
版本:49cd3a4
config.json 设置
"whitelistmode": true,
"blacklistmode": false,
使用指令
绘图 白名单/黑名单 添加/删除
得到的回复均是
"无法访问黑白名单"
但实际写入了grouplist.json
如果重复添加群也会写入list,但会导致白名单功能整个失效,所有群都不算进白名单。
预计今晚完成重构(如果顺利的话)... @azmiao @BlueDeer233
需要添加的功能内容
调用翻译api对输入的中文文本进行翻译,再生成图片
sans佬的插件加了使用服务器部署的sd画图api等相关功能,我最近把这部分功能缝合进[AI_image_gen]插件里并自行测试过了,可是由于我这边bot用的插件就是基于你这插件,但又自行修改过一部分的(做了些简单修改更适应我这边qqBot需要的情况哈),所以已经算是你的插件的小分支,因此要是直接和你的插件合并的话可能会出现破坏原有这个插件的config设置的情况,所以不建议merge这类方式合并,就先来提交个issue问问,如果线佬你也有这个想法但还没时间去缝合,那这部分我已经缝合好sans佬sd画图相关功能代码可以联系我发一份给你,你看着代码对比和实际的需要,可以直接大段复制粘贴合并进去你的源代码中,没啥问题的。不然你可能需要自己读sans佬的代码,自己重新缝合了,这样我觉得比读你自己插件的分支代码应该略微麻烦了一些?我是考虑到这个。(如需联系,可以在novelai api群找派蒙头像的我【昵称:东】)
类似另一个ai绘图插件的那种。非常感谢!
Line 93 in 644edd5
貌似是查看本群图片功能没能指到res那边,我沿老版本目录换了一下SaveImage还可以接着用
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.