GithubHelp home page GithubHelp logo

lcell / sdweb-multi-user-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from newlxj/ai-online-painting-system

0.0 0.0 0.0 5.43 MB

stable diffusion Multi User Website,多用户站点,针对stable diffusion api进行二次开发

License: Apache License 2.0

sdweb-multi-user-website's Introduction

sdweb-mulit-user-website

下方使用介绍图很重要,如果看不见可以去国内gitee站点 https://gitee.com/aliu/sdweb-multi-user-website

介绍

Sdweb Mulit User Website是基于AUTOMATIC1111 API二次开发的平台,在这个平台上提供了用户账号注册,多用户在线绘画、评分、共享及模型管理等功能,并提供tag自动推荐,在用户不具备AI技能情况下自动推荐很好的tag

(代码正在整理上传中,将在6月1日前完成,请提前fork和star,谢谢)

示例站点:https://ai8.live

软件架构

Python 3.10 Flask 2.2.3

跨网络解及安全决方案

本项目支持Stable Diffusion Stable Diffusion webui部署在个人PC上,PC在法国,sdweb-mulit-user-website 在新加坡,只要Stable Diffusion webui 主机与sdweb-mulit-user-website 在不同国家地域网络,例如: Network-Architecture-Diagram Stable Diffusion webui部署在个人PC上,PC在美国,sdweb-mulit-user-website 在新加坡,只要Stable Diffusion webui能被新加坡服务器访问到,sdweb-mulit-user-website面对使用的客户将只知道他们访问的是新加坡服务器,这样有效避免了黑客攻击等情况。

对于安全方便,我们对客户端用户请求的内容进行了AES加密,每次用户登录会颁发不同的密钥,使得即使没有SSL链路情况下数据传输也是安全的。

配置教程

1.sdweb 是项目web工程 ,sdweb-server是项目Python工程 第一次使用,请修改 sdweb-server/config/setting.py

如果使用https协议, 请将 SSL_ENABLED = True
SSL_CA_FILE SSL域名证书文件
SSL_CA_KEY_FILE域名证书key文件
WARRING_ALERT_INFO 警告提醒,如果为空不会打开弹出警告提醒
REMOTE_STABLE_DIFFUSION_SERVER_ADDRESS  特别注意:这个协商你的stable-diffusion-webui 地址例如:http://127.0.0.1:7860 ,建议修改这个端口并加上IP白名单策略,不要让其他人访问到127.0.0.1:7860而带来安全隐患。

2.stable-diffusion-webui开启API, 在启动参数加上 --api (必须加上) 或者webui-user.bat 中设置为 set COMMANDLINE_ARGS="--api" 例如:

python webui.py   --opt-sdp-attention --no-gradio-queue --device-id=0 --no-half-vae   --disable-safe-unpickle --disable-nan-check --api

如果使用的是秋叶启动器,请在高级选项选中 "启用API" 秋叶设置

安装教程

自动安装(Windows)

InstallAll.bat

手动安装(Windows)

cd sdweb
npm install
cd sdweb-server
python -m venv ai8-env
ai8-env\Scripts\activate.bat
pip install -r requirements.txt

手动安装(Linux)

cd sdweb
npm install
cd ../
cd sdweb-server
python -m venv ai8-env
ai8-env\Scripts\activate
pip install -r requirements.txt

构建web项目

buildSdweb.bat

启动服务

启动开发环境

startDevServer.bat

访问地址:http://127.0.0.1:9999

启动生产环境(一般正式环境运行稳定)

startPordServer.bat

访问地址:http://127.0.0.1 (端口80) 可以配置80和443端口双开

使用教程

1.登录 登录 2.进入创作模式 3.选择模型 设置模型 开启超级模式后,使用快捷键alt+p 快捷键会自动弹出stable diffusion 模型选择清单,你可以放缩略图,建议宽高 w512*h256 图片存放是相对路径,例如:modelLogo/counterfeitV2525d.png 4.设置高级参数

5.使用随机tag

6.生成图片 7.查看图片 8.共享图片

如果你喜欢,请给我一个star用来鼓励我带来更多开源作品

未来计划增加功能

序号 计划内容
1 用户管理维护
2 接入ChatGPT
3 接入语音识别通过说话生成
4 语音版移动端生成
5 图生图一键自动换衣服、换发型
6 集群模式分布式生成
7 对色情图像进行准确过滤

参与贡献

欢迎您一起来构建,创建更强大个性化的stable diffusion

sdweb-multi-user-website's People

Contributors

newlxj avatar

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.