Skip to content

Commit 36d1257

Browse files
author
legionfu
committed
v2.0.3
1 parent aa280a4 commit 36d1257

File tree

9 files changed

+95
-69
lines changed

9 files changed

+95
-69
lines changed

CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
### Contributing
2+
3+
欢迎参与 LightDiffusionFlow 的贡献,你可以给我们提出意见、建议,报告 bug,或者贡献代码。在参与贡献之前,请阅读以下指引。
4+
5+
#### 咨询问题
6+
7+
简单的咨询,如询问如何使用或其他StableDiffision相关的技术问题,请在官方微信群中询问,效率更高。
8+
9+
#### 关于 issue
10+
11+
如果你对 LightDiffusionFlow 的现状有意见、建议或者发现了 bug,欢迎通过 issue 给我们提出。提 issue 之前,请阅读以下指引。
12+
13+
- 搜索以往的 issue ,看是否已经提过,避免重复提出;
14+
- 请确认你遇到的问题,是否在最新版本已被修复;
15+
- 如果是报告 bug,请尽量提供可以复现的条件:
16+
- 操作系统、浏览器版本
17+
- Stable Diffusion WebUI 版本以及相关插件的版本(如果有的话)
18+
- LightDiffusionFlow 插件版本
19+
- Bug 表现
20+
- 操作步骤
21+
- 是否必现
22+
- 最好可以提供截图
23+
- 如果你的问题已经得到解决,请关闭你的 issue。
24+
25+
#### 贡献者名单
26+
27+
非常感谢以下几位对LightDiffusionFlow做出的贡献:
28+
29+
- 非常感谢 [Hali](https://github.com/ThisHaliHali) 为本项目提供的灵感、建议以及在开发期间的各种支持!
30+
31+
- 我们的项目是以 [Ilian Iliev](https://github.com/ilian6806)[stable-diffusion-webui-state](https://github.com/ilian6806/stable-diffusion-webui-state) 项目为基础进行的二次开发,这为我们提供了很大的帮助,感谢 Ilian Iliev !

ChangeLog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 2.0.3
2+
3+
### Bug Fixes:
4+
* 修复了对比模型选项出现的bug。
5+
* 修复了一些已知的问题。
6+
* 确定了插件名称和文件后缀。
7+
8+
### Features:
9+
* 导入flow文件时,会自动在Civitai搜索相关模型,如果找到对应模型则提供下载链接。
10+
111
## 2.0.2
212

313
### Bug Fixes:

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,43 @@
33
<img alt="" src="https://img.shields.io/badge/Python-FFD43B?style=for-the-badge&logo=python&logoColor=blue" />
44
</p>
55

6-
# stable-diffusion-lightdiffusionflow
6+
# sd-webui-lightdiffusionflow
77

88
[**English**](./README.md) | [**中文**](./README_CN.md)
99

10-
This extension is for AUTOMATIC1111's [Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
10+
This extension is developed for AUTOMATIC1111's [Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) that provides import/export options for parameters.
11+
"Stable Diffusion Web UI" hereafter referred to as "SD Web UI"
12+
[**Plugin demonstration and other instructions**](https://fvkij7wuqx9.feishu.cn/docx/HgZndihraotmmzxFni7cFZISnvb)
13+
[**Our open-source community**](https://www.lightflow.ai/)
1114

1215
### Capabilities
1316

1417
* Export/Import web UI parameters with a single file (images, inputs, sliders, checkboxes etc.) .
1518
* Support parsing png info from image and restoring parameters back to the web UI.
16-
* It can be extended to preserve basically everything in the UI.
1719
* Supported extensions:
18-
- In theory, it can support any plugin.
19-
20-
### Usage
21-
20+
- In theory, it can support any plugin. (Except for certain plugin images, as they require the corresponding elem_id to be provided.)
2221

2322
### Install
2423

2524
Use **Install from URL** option with this repo url.
2625

2726
### Requirements
2827

29-
None at all.
28+
*None at all.*
29+
30+
### Usage
31+
* I don't think I need to explain it in detail, right? :)
3032

3133
### Contributing
3234

33-
Feel free to submit PRs to develop!
35+
If you have any comments, suggestions, or encounter issues with our project, please feel free to raise them through an issue, and we also welcome pull requests at any time!
3436

3537
### Credits
3638

3739
Licenses for borrowed code can be found in LICENSES/[**Licenses.md**](./LICENSES/Licenses.md)
3840

3941
- stable-diffusion-webui-state - https://github.com/ilian6806/stable-diffusion-webui-state
4042

41-
*Our team urgently needs a solution to quickly share the stable diffusion web UI settings, and Ilian Iliev's project provided us with great help, thank you Ilian Iliev!*
43+
*Our team urgently needs a solution to easily share the Stable Diffusion Web UI settings, and Ilian Iliev's stable-diffusion-webui-state project has been a great help to us. Thank you, Ilian Iliev!*
4244

43-
- Thanks to Joshua Yu and Hali for providing the inspiration and suggestions for this project.
45+
- Big thanks to [Hali](https://github.com/ThisHaliHali) for the inspiration, suggestions, and various forms of support during the development of this project. Much appreciated!

README_CN.md

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,22 @@
33
<img alt="" src="https://img.shields.io/badge/Python-FFD43B?style=for-the-badge&logo=python&logoColor=blue" />
44
</p>
55

6-
# stable-diffusion-lightdiffusionflow
6+
# sd-webui-lightdiffusionflow
77

88
[**English**](./README.md) | [**中文**](./README_CN.md)
99

10-
这是为[Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) 开发的一款保存配置选项的插件
10+
这是为[Stable Diffusion Web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) 开发的一款导入/导出参数选项的插件。
11+
Stable Diffusion Web UI 以下简称 SD Web UI。
12+
[**插件效果演示和其他说明**](https://fvkij7wuqx9.feishu.cn/docx/HgZndihraotmmzxFni7cFZISnvb)
13+
[**我们的开源社区**](https://www.lightflow.ai/)
1114

1215
### 功能
1316

14-
* 实现单个文件导入/导出web UI参数选项。
15-
* 支持解析图片的png info,并自动将参数恢复到web UI面板上,包括部分插件参数。
16-
* 理论上这个插件可以拓展支持所有的参数选项。
17+
* 实现单个文件导入/导出SD Web UI参数选项。
18+
* 支持解析图片的PNG Info,并自动将参数恢复到SD Web UI面板上,包括部分插件参数。
1719
* 目前支持的插件:
18-
- 理论上来说,目前可以支持所有插件。
19-
20-
### 用法
21-
22-
*待补充*
20+
- 理论上来说,目前可以支持所有插件。
21+
部分插件的图片参数除外,因为必须要有对应的elem_id。
2322

2423
### 安装
2524

@@ -29,16 +28,29 @@
2928

3029
3130

31+
### 用法
32+
33+
* 导出配置:
34+
- 在SD Web UI上设置好合适的选项,点击Export按钮即可导出记录了当前设置的flow文件。
35+
* 导入配置:
36+
- 在SD Web UI上,点击文件框选择对应的flow文件,即可导入文件中的设置。
37+
- 也可以直接把flow文件拖入文件框内完成导入。
38+
39+
### 注意事项
40+
41+
* 每次导入新的flow文件之前,最好刷新一下SD Web UI页面,因为插件只会修改已保存的参数选项。
42+
* 插件当前版本不支持秋叶启动器的"云端汉化选项",使用本插件时建议关闭。
43+
3244
### 插件共建
3345

34-
欢迎随时发起PR!
46+
如果你对我们的项目有意见、建议或者使用中遇到问题,欢迎通过 issue 给我们提出,也欢迎随时发起PR!
3547

3648
### 感谢
3749

3850
本项目参考和引用的第三方代码开源许可放在 LICENSES/[**Licenses.md**](./LICENSES/Licenses.md)
3951

4052
- stable-diffusion-webui-state - https://github.com/ilian6806/stable-diffusion-webui-state
4153

42-
*我们团队急需一个能快速分享stable diffusion Web UI 设置的解决方案,Ilian Iliev 的项目为我们提供了很大的帮助,感谢 Ilian Iliev!*
54+
*我们团队急需一个能快速分享 SD Web UI 设置的解决方案,Ilian Iliev 的 stable-diffusion-webui-state 项目为我们提供了很大的帮助,感谢 Ilian Iliev!*
4355

44-
- 感谢 Joshua Yu 和 Hali 为本项目提供的灵感和建议。
56+
- 非常感谢 [Hali](https://github.com/ThisHaliHali) 为本项目提供的灵感、建议以及在开发期间的各种支持!

example_img.png

-635 KB
Binary file not shown.

javascript/state.utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ state.utils = {
505505
console.log(url)
506506
const link = document.createElement('a');
507507
link.href = url;
508-
link.download = fileName + '.lightdiffusionflow';
508+
link.download = fileName + '.flow';
509509
document.body.appendChild(link);
510510
link.click();
511511
link.parentNode.removeChild(link);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lightdiffusionflow_version = "v2.0.2"
1+
lightdiffusionflow_version = "v2.0.3"

scripts/state_api.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
Need_Preload = False
3838
Preload_File = r""
39-
39+
File_extension = ".flow"
4040

4141
def test_func():
4242
print("test_func")
@@ -185,7 +185,7 @@ def fn_import_workflow(workflow_file):
185185
config_file = workflow_file.name
186186

187187
print("fn_import_workflow "+str(config_file))
188-
if (os.path.splitext(config_file)[-1] in [".lightdiffusionflow", ".lightflow", ".json"]):
188+
if (os.path.splitext(config_file)[-1] in [File_extension, ".lightflow", ".json"]): # 兼容部分旧版本文件
189189
with open(config_file, mode='r', encoding='UTF-8') as f:
190190
json_str = f.read()
191191
workflow_json = json.loads(json_str)
@@ -427,6 +427,8 @@ def show(self, is_img2img):
427427
return scripts.AlwaysVisible
428428

429429
def ui(self, is_img2img):
430+
global File_extension
431+
430432
try:
431433
State_Comps["import"]
432434
State_Comps["export"]
@@ -438,17 +440,17 @@ def ui(self, is_img2img):
438440

439441
with gr.Accordion('LightDiffusionFlow '+lightdiffusionflow_version.lightdiffusionflow_version, open=True, visible=True):
440442
with gr.Row():
441-
lightdiffusionflow_file = gr.File(label="LightDiffusionFlow File",file_count="single", file_types=[".lightdiffusionflow"])
443+
lightdiffusionflow_file = gr.File(label="LightDiffusionFlow File",file_count="single", file_types=[File_extension])
442444
State_Comps["import"].append(lightdiffusionflow_file)
443445

444-
# with gr.Column(scale=1):
445-
# gr.HTML(label="",value='''
446-
# <a style ="text-decoration:underline;color:cornflowerblue;",
447-
# href="https://www.lightflow.ai/">LightFlow开源社区</a>''')
448-
State_Comps["outlog"].append(gr.HTML(label="Output Log",value='''
449-
<p style=color:Tomato;>Welcome to LightDiffusionFlow! \(^o^)/~</p>
450-
<p style=color:MediumSeaGreen;>Welcome to LightDiffusionFlow! \(^o^)/~</p>
451-
<p style=color:DodgerBlue;>Welcome to LightDiffusionFlow! \(^o^)/~</p>'''))
446+
with gr.Column(scale=1):
447+
gr.HTML(label="",value='''
448+
<a style ="text-decoration:underline;color:cornflowerblue;",
449+
href="https://www.lightflow.ai/">开源社区</a>''')
450+
State_Comps["outlog"].append(gr.HTML(label="Output Log",value='''
451+
<p style=color:Tomato;>Welcome to LightDiffusionFlow! \(^o^)/~</p>
452+
<p style=color:MediumSeaGreen;>Welcome to LightDiffusionFlow! \(^o^)/~</p>
453+
<p style=color:DodgerBlue;>Welcome to LightDiffusionFlow! \(^o^)/~</p>'''))
452454

453455
with gr.Row():
454456
export_config = gr.Button(value='Export')
@@ -457,7 +459,7 @@ def ui(self, is_img2img):
457459
if(not is_img2img):
458460

459461
State_Comps["background_import"] = gr.File(label="LightDiffusionFlow File",file_count="single",
460-
file_types=[".lightdiffusionflow"],visible=False)
462+
file_types=[File_extension],visible=False)
461463

462464
State_Comps["json2js"] = gr.Textbox(label="json2js",visible=False)
463465

sd-webui-example.lightdiffusionflow

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)