GithubHelp home page GithubHelp logo

ai_image_gen's Issues

使用naifu绘图后报错

使用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
请问如何处理呢,谢谢!

已报错:获取图片信息失败,服务器未返回数据:<class 'IndexError'>

[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次能正常出片

生成失败…list index out of range

问下大佬,我novelai注册了,也开通了付费服务,但是api这个地方我不太清楚应该是填什么,填了个不知道对不对,然后底下token填了注册时发给我的token,绘图的话就一直相应“生成失败…list index out of range”其他命令应该都能正常响应,大佬教教要怎么解决啊
QQ截图20221014192659
QQ截图20221014192713

『查看全部(个人)图片』报错

可能是nonebot版本的问题,我这里的MessageSegment不能自动转换成字符串。

大佬看看能不能兼容下老版本的nonebot(我是docker容器,一升级nonebot,容器就挂了),改成原来的:
resultmes = f"[CQ:image,file={imgmes}]"

image

image

无法访问黑白名单

版本:49cd3a4

config.json 设置
"whitelistmode": true,
"blacklistmode": false,
使用指令
绘图 白名单/黑名单 添加/删除
得到的回复均是
"无法访问黑白名单"
但实际写入了grouplist.json
如果重复添加群也会写入list,但会导致白名单功能整个失效,所有群都不算进白名单。

线佬,你有打算缝合sans佬的sd画图api功能吗?

sans佬的插件加了使用服务器部署的sd画图api等相关功能,我最近把这部分功能缝合进[AI_image_gen]插件里并自行测试过了,可是由于我这边bot用的插件就是基于你这插件,但又自行修改过一部分的(做了些简单修改更适应我这边qqBot需要的情况哈),所以已经算是你的插件的小分支,因此要是直接和你的插件合并的话可能会出现破坏原有这个插件的config设置的情况,所以不建议merge这类方式合并,就先来提交个issue问问,如果线佬你也有这个想法但还没时间去缝合,那这部分我已经缝合好sans佬sd画图相关功能代码可以联系我发一份给你,你看着代码对比和实际的需要,可以直接大段复制粘贴合并进去你的源代码中,没啥问题的。不然你可能需要自己读sans佬的代码,自己重新缝合了,这样我觉得比读你自己插件的分支代码应该略微麻烦了一些?我是考虑到这个。(如需联系,可以在novelai api群找派蒙头像的我【昵称:东】)

如何配置api

生成失败…HTTPSConnectionPool(host='lulu.uedbq.xyzgot_image', port=443): Max retries exceeded with url: /?tags=miku&token
e8c5de3e6ddea8f
(Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000031BDAA1D00>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

图片鉴赏功能会卡死bot

问题描述

@BlueDeer233

  • 使用图片鉴赏功能后,bot会毫异常卡死,不会留下任何报错记录。
  • 在服务器端和本地端均会复现该bug,初步检查代码后暂未发现问题所在,故为了用户正常使用bot先暂时关闭了该功能

image

image

插件无反应

Screenshot_2022-10-19-11-27-12-396_com microsoft rdc androidx
Screenshot_2022-10-19-11-36-47-238_com microsoft rdc androidx
插件可以启用或者关闭,其他指令没有效果,是我配置问题吗?

之后会支持百度翻译吗

目前百度在实名认证之后是有每个月的百万字符翻译额度,就算是没实名每个月也有5万字符的费用额度
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.