Coder Social home page Coder Social logo

aipreface / ap-plugin Goto Github PK

View Code? Open in Web Editor NEW
101.0 3.0 13.0 15.42 MB

基于 Yunzai 的 AI 绘图插件,使用 Stable Diffusion 接口

License: GNU Affero General Public License v3.0

JavaScript 91.96% Less 3.29% HTML 2.94% CSS 1.80%
plugin stable-diffusion stable-diffusion-webui yunzai yunzai-bot

ap-plugin's Introduction

ap-plugin

AP-PLUGIN🍊

Tip

这个插件是我刚接触 Yunzai 时,和一个叫 渔火 的大哥哥一起写的(其实我就是在他的插件上面加乱七八糟的东西,导致现在这么臃肿)。他是我的启蒙老师哦,之前我是一点 JavaScript 都不会的。现在他都退坑了都找到女朋友啦!

安装插件

1. 克隆仓库

git clone https://github.com/AiPreface/ap-plugin.git ./plugins/ap-plugin

Note

如果你的网络环境较差,无法连接到 Github,可以使用 GitHub Proxy 提供的文件代理加速下载服务

git clone https://mirror.ghproxy.com/https://github.com/AiPreface/ap-plugin.git ./plugins/ap-plugin

2. 安装依赖

pnpm install --filter=ap-plugin

插件配置

Warning

非常不建议手动修改配置文件,本插件已兼容 Guoba-plugin ,请使用锅巴插件对配置项进行修改

  • 关于部署 Stable Diffuison,请自行在网上寻找教程,这里放一个 秋葉 aaaki 的教程

  • 关于部署 HuggingFace 平台的相关功能,本插件作者不再维护这些功能,请自行寻找教程

  • 旧版的配置文档已归档在 ap-plugin-website,有需要可自行查看

功能列表

请使用 #ap帮助 获取完整帮助(藏了些小彩蛋功能)

  • 基本生成图片
  • 二次元的我
  • 鉴赏解析图片 Tags
  • 局部重绘
  • 控制网基础(需要后端安装 ControlNet)
  • 使用 Embedding 和 Lora
  • 图片存本地
  • 本地预设功能
  • 独立设置绘制参数
  • 多接口翻译
  • 切换模型
  • 远程下载模型(需要部署 AP 助手)
  • 识别动漫人物
  • 图片差分
  • 以图搜源
  • 卢浮宫滤镜(需要安装 Canvas 依赖)

常见问题

  1. 我的电脑能不能画图?
    • 建议使用 NVIDIA GeForce GTX 1660 以上的独立显卡,没有独立显卡的电脑不推荐部署。
  2. 为什么我部署了,网页端正常画,插件使用不了?
    • 请检查你的后端服务器能被机器人服务器访问。
    • 请在启动器中打开 启用API 选项,或在启动参数中加入 --api

支持与贡献

如果你喜欢这个项目,请不妨点个 Star🌟,这是对开发者最大的动力, 当然,你可以对我 爱发电 赞助,呜咪~❤️

有意见或者建议也欢迎提交 IssuesPull requests

相关项目

许可证

本项目使用 GNU AGPLv3 作为开源许可证。

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.