Giter Site home page Giter Site logo

plugin_sdwebui's People

Contributors

lanvent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

plugin_sdwebui's Issues

未匹配的关键词转换成英文失败

大大,我不会代码,然后发现翻译失败,我用CHATGPT分析了一下,没有匹配到的管家此被存储在unused_keywords然后变成prompt,这个过程会调用Bridge().fetch_translate()将中文翻译成英文,不过在调用的时候发生了错误。错误日志:
[INFO][2023-05-11 08:08:18][sdwebui.py:97] - [SD] translate prompt from zh to en
[INFO][2023-05-11 08:08:18][sdwebui.py:101] - [SD] translate failed: unsupported operand type(s) for +: 'NoneType' and 'str'
[INFO][2023-05-11 08:08:18][sdwebui.py:102] - [SD] translated prompt=猫
chatgpt:这个错误可能是由于Bridge().fetch_translate()方法返回了None,然后代码试图将这个None值和一个字符串进行连接,导致了这个错误。这个方法通过调用self.get_bot("translate")获取一个翻译的机器人,然后调用这个机器人的translate方法进行翻译。要解决这个问题,你需要查看get_bot("translate")返回的机器人的translate方法的实现,看看为什么它会返回None,并确保它在所有情况下都返回一个Reply对象。
请问,这个机器人bot在哪里,然后如何解决这个问题。

是否能够支持远程调用webui

家里有一台服务器b可以提供api,可以做内网穿透,能否让服务器a调用服务器a的webui的api进行画图,然后图片返回到服务器a?

请问大佬怎么更改使用的模型。

因为这个模型太🐍🐍,所以我想要换一个模型。
我通过更改config中的文件中的
"options": {
"sd_model_checkpoint": "perfectWorld_v2Baked"
}

把perfectWorld_v2Baked模型改为
image
上面的模型,但是经过测试,模型还是没变。请问模型应该怎么更改啊

血的教训:关键词排除

先放个方案在这

在100行左右开始改为

                if re.search(r'nsfw', prompt, re.IGNORECASE):
                    reply = Reply(ReplyType.TEXT, "你想封我号吗,朋友")
                else:
                    if len(options) > 0:
                        logger.info("[SD] cover options={}".format(options))
                        self.api.set_options(options)
                    logger.info("[SD] params={}".format(params))
                    result = self.api.txt2img(
                        **params
                    )
                    reply.type = ReplyType.IMAGE
                    b_img = io.BytesIO()
                    result.image.save(b_img, format="PNG")
                    reply.content = b_img

图生图

能否增加一个图生图功能呢?

【求助】sdwebui插件的配置与启用

  1. 我先私聊机器人微信账号,获得管理员认证
  2. 然后使用指令:
    image
  3. 此时发现服务端上,在\plugin路径下已经多了一个plugin_sdwebui的文件夹,在服务端上按流程配置创建config.json
    2744cac75f9b90c40338a082aec7c9e
    主要是将host和端口改成了我部署sd的机器,并且我部署sd的机器确定能从公网访问:
    09dc210b8b7fe5fd942fce349a875a7
  4. 同步修改了sdwebapi.py中的host和端口:
    24c2f3c71d648286e47f492faca5d5d

想请问按以上步骤是否就能成功激活该插件?
是否需要重启整个机器人?或者还需要其他操作?

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.