Skip to content

Commit 3e95fb2

Browse files
authored
Merge pull request #81 from kohya-ss/dev
merge Dev
2 parents 2d0bcdb + 6eeccc1 commit 3e95fb2

10 files changed

+988
-468
lines changed

README.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,9 @@ __Stable Diffusion web UI now seems to support LoRA trained by ``sd-scripts``.__
88

99
Note: Currently the models models for SD 2.x does not seem to be supported in Web UI. The models trained by the scripts 0.4.0 seem to be supported.
1010

11-
- 30 Jan. 2023, 2023/1/30
12-
- Fix to allow folder names containing commas in ``Extra paths to scan for LoRA models``. Enclose in ``"``. Thanks to shirayu!
13-
- ``Extra paths to scan for LoRA models`` でのモデルディレクトリの指定時にカンマを含むフォルダ名が使用できるようになりました。``"`` で囲んでください。shirayu氏に感謝します。
14-
- 29 Jan. 2023, 2023/1/29
15-
- Support multiple LoRA model directories. You can set a comma-separated list in ``Extra paths to scan for LoRA models`` at ``Settings`` tab. Thanks to space-nuko!
16-
17-
- Add separated U-Net/Text Encoder weight sliders. Thanks to Naegles and space-nuko!
18-
- 複数のモデルディレクトリを指定できるようになりました。``Settings`` タブの ``Extra paths to scan for LoRA models`` にカンマ区切りで指定してください。space-nuko氏に感謝します。
19-
- U-Net/Text Encoder に独立して重みを指定できるようになりました。Naegles氏およびspace-nuko氏に感謝します。
11+
- 31 Jan. 2023, 2023/1/31
12+
- Metadata editor for LoRA models is now integrated in ``Additional Network`` tab. Documentation will be added later. Thanks to space-nuko!
13+
- LoRAモデル用のメタデータエディタ ``Additional Network`` タブに追加されました。ドキュメントはのちほど追加予定です。space-nuko氏に感謝します。
2014

2115
Please read [Releases](https://github.com/kohya-ss/sd-webui-additional-networks/releases) for recent updates.
2216
最近の更新情報は [Release](https://github.com/kohya-ss/sd-webui-additional-networks/releases) をご覧ください。

javascript/additional_networks.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
function addnet_switch_to_txt2img(){
2+
switch_to_txt2img();
3+
setTimeout(function() { gradioApp().getElementById("additional_networks_txt2img").scrollIntoView(); }, 100);
4+
return args_to_array(arguments);
5+
}
6+
7+
function addnet_switch_to_img2img(){
8+
switch_to_img2img();
9+
setTimeout(function() { gradioApp().getElementById("additional_networks_img2img").scrollIntoView(); }, 100);
10+
return args_to_array(arguments);
11+
}
12+
13+
function addnet_switch_to_addnet(){
14+
Array.from(gradioApp().querySelector('#tabs').querySelectorAll('button')).filter(e => e.textContent.trim() === "Additional Networks")[0].click()
15+
return args_to_array(arguments);
16+
}

0 commit comments

Comments
 (0)