Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
yznote committed May 12, 2023
1 parent 0b17083 commit cc026fd
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 12 deletions.
60 changes: 48 additions & 12 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
# stable-diffusion-mobileui

## 1. 项目介绍
为了方便本地搭建的stable diffusion 可以随时随地的使用。基于一键包搭建的stable-diffusion,推出适配移动端的界面UI,可以生成H5和微信小程序。

### 1.1主要功能:
1.文生图:正向提示词,反向提示词,大模型选择,LoRA模型选择,采样方法选择,采样步数设置,多张图片生成,高清超高清图片绘制。可供下载到本地
2.咒语解析:上传一张图片,解析为多个英文提示词
### 1.2即将发布:
1.图生图
2.MJ图生图,文生图
### 不断更新优化,欢迎Star
### 1.1效果展示
![s1](./static/s1.png) ![s2](./static/s2.png) ![s3](./static/s3.png)

### 1.2主要功能:

1.文生图:正向提示词,反向提示词,大模型选择,LoRA模型选择,采样方法选择,采样步数设置,多张图片生成,高清超高清图片绘制。可供下载到本地

2.咒语解析:上传一张图片,解析为多个英文提示词

### 1.3即将发布:

1.图生图

2.MJ图生图,文生图

### 不断更新优化,欢迎Star。如需定制,欢迎联系

## 2. 搭建步骤

### 2.1 安装一键端

2.1.1一键端使用的是秋葉aaaki的整合包,直接下载根据说明安装即可

https://pan.baidu.com/s/1TK7UyX5lgNjdwdfcmYCI5Q 密码 c132

2.1.2 安装完成后在启动界面找到左侧的【高级选项】--【网络设置】--勾选【开放远程连接】,勾选【启用API】,往下拉,找到【CORS授权管理】--新增一条记录为*
Expand All @@ -20,30 +34,52 @@ https://pan.baidu.com/s/1TK7UyX5lgNjdwdfcmYCI5Q 密码 c132

### 2.2 安装H5端
2.2.1 下载本仓库下的`uniapp`文件夹;
2.2.2 使用`Hbuilder`打开项目,在`uniapp/config/app.js`中的`httpApi`处填写您的域名;

2.2.2 使用`Hbuilder`打开项目,在`uniapp/config/app.js`中的`httpApi`处填写您的域名;

此处的域名是指你启动的【SD一键包】的地址,一般默认为http://127.0.0.1:7860

![uniapp](./static/uni_1.png)

2.2.3 `Hbuilder`工具栏->运行->运行到浏览器->Chrome;

## 3. 其他资料
3.1新增LoRA模型

LoRA模型下载地址:https://civitai.com/

放置位置:SD根目录的 \models\Lora\目录下

3.2新增大模型

大模型下载地址:https://huggingface.co/models

放置位置:SD根目录的 \models\Stable-diffusion\目录下
## 3. 其他资料


3.3内网穿透方式FRP,NPS,zerotier

FRP官网:https://github.com/fatedier/frp

NPS官网:https://ehang-io.github.io/nps/#/

zerotier官网:https://www.zerotier.com/

## 4. 常见问题

4.1跨域如何解决

见上方搭建步骤2.1.2

4.2LoRA无图片如何解决

需要自行新增图片,假设LoAR名称为AAA.safetensors,在其同级目录下放置一张你喜欢的图片,重命名为AAA.png即可
4.3如果需要从外网访问到,需根据3.3的方式配置内网穿透

4.3如果需要从外网访问到,需根据3.3的方式配置内网穿透并且重新设置H5或小程序的域名地址

## 5. 联系我们
- QQ讨论群:123456
- 微信:yuanyuekeji
- 官网:http://www.yuanyuekj.com/
- QQ讨论群:341220974

![s1](./static/qr.png)

Binary file added static/qr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/s1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/s2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/s3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified static/uni_1.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cc026fd

Please sign in to comment.