Upload 35 files
Browse files- frontend/dist/404.html +33 -0
- frontend/dist/assets/404.0ca36773.js +1 -0
- frontend/dist/assets/404.html.1c89c614.js +1 -0
- frontend/dist/assets/404.html.686caba0.js +1 -0
- frontend/dist/assets/about.html.5113db77.js +1 -0
- frontend/dist/assets/about.html.5b0c0de9.js +1 -0
- frontend/dist/assets/app.406c12df.js +0 -0
- frontend/dist/assets/back-to-top.8efcbe56.svg +1 -0
- frontend/dist/assets/basic.html.002769d7.js +1 -0
- frontend/dist/assets/basic.html.a7870e5f.js +1 -0
- frontend/dist/assets/index.html.12bc7781.js +1 -0
- frontend/dist/assets/index.html.647b0b74.js +1 -0
- frontend/dist/assets/index.html.9d7cc666.js +1 -0
- frontend/dist/assets/index.html.b97ec799.js +1 -0
- frontend/dist/assets/index.html.c4113495.js +1 -0
- frontend/dist/assets/index.html.fbbfced2.js +1 -0
- frontend/dist/assets/layout.2e2cec1b.js +11 -0
- frontend/dist/assets/master.html.76757967.js +1 -0
- frontend/dist/assets/master.html.89b46f6c.js +1 -0
- frontend/dist/assets/params.html.3151a571.js +1 -0
- frontend/dist/assets/params.html.c8cc13ef.js +1 -0
- frontend/dist/assets/style.a8135c07.css +0 -0
- frontend/dist/assets/tagger.html.49fb651e.js +1 -0
- frontend/dist/assets/tagger.html.d98b6655.js +1 -0
- frontend/dist/assets/tensorboard.html.37ea225e.js +1 -0
- frontend/dist/assets/tensorboard.html.92d7d710.js +1 -0
- frontend/dist/dreambooth/index.html +33 -0
- frontend/dist/index.html +33 -0
- frontend/dist/lora/basic.html +33 -0
- frontend/dist/lora/index.html +33 -0
- frontend/dist/lora/master.html +33 -0
- frontend/dist/lora/params.html +33 -0
- frontend/dist/other/about.html +33 -0
- frontend/dist/tagger.html +33 -0
- frontend/dist/tensorboard.html +33 -0
frontend/dist/404.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-US">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6 |
+
<meta name="generator" content="VuePress 2.0.0-beta.49">
|
7 |
+
<style>
|
8 |
+
:root {
|
9 |
+
--c-bg: #fff;
|
10 |
+
}
|
11 |
+
html.dark {
|
12 |
+
--c-bg: #22272e;
|
13 |
+
}
|
14 |
+
html, body {
|
15 |
+
background-color: var(--c-bg);
|
16 |
+
}
|
17 |
+
</style>
|
18 |
+
<script>
|
19 |
+
const userMode = localStorage.getItem('vuepress-color-scheme');
|
20 |
+
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
21 |
+
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
22 |
+
document.documentElement.classList.toggle('dark', true);
|
23 |
+
}
|
24 |
+
</script>
|
25 |
+
<title>SD 训练 UI</title><meta name="description" content="">
|
26 |
+
<link rel="modulepreload" href="/assets/app.406c12df.js"><link rel="modulepreload" href="/assets/404.html.1c89c614.js"><link rel="modulepreload" href="/assets/404.html.686caba0.js"><link rel="prefetch" href="/assets/index.html.9d7cc666.js"><link rel="prefetch" href="/assets/tagger.html.d98b6655.js"><link rel="prefetch" href="/assets/tensorboard.html.37ea225e.js"><link rel="prefetch" href="/assets/index.html.fbbfced2.js"><link rel="prefetch" href="/assets/basic.html.a7870e5f.js"><link rel="prefetch" href="/assets/index.html.b97ec799.js"><link rel="prefetch" href="/assets/master.html.76757967.js"><link rel="prefetch" href="/assets/params.html.c8cc13ef.js"><link rel="prefetch" href="/assets/about.html.5b0c0de9.js"><link rel="prefetch" href="/assets/index.html.c4113495.js"><link rel="prefetch" href="/assets/tagger.html.49fb651e.js"><link rel="prefetch" href="/assets/tensorboard.html.92d7d710.js"><link rel="prefetch" href="/assets/index.html.647b0b74.js"><link rel="prefetch" href="/assets/basic.html.002769d7.js"><link rel="prefetch" href="/assets/index.html.12bc7781.js"><link rel="prefetch" href="/assets/master.html.89b46f6c.js"><link rel="prefetch" href="/assets/params.html.3151a571.js"><link rel="prefetch" href="/assets/about.html.5113db77.js"><link rel="prefetch" href="/assets/404.0ca36773.js"><link rel="prefetch" href="/assets/layout.2e2cec1b.js">
|
27 |
+
<link rel="stylesheet" href="/assets/style.a8135c07.css">
|
28 |
+
</head>
|
29 |
+
<body>
|
30 |
+
<div id="app"><!--[--><div class="theme-container"><main class="page"><div class="theme-default-content"><h1>404</h1><blockquote>There's nothing here.</blockquote><a href="/" class="">Take me home</a></div></main></div><!----><!--]--></div>
|
31 |
+
<script type="module" src="/assets/app.406c12df.js" defer></script>
|
32 |
+
</body>
|
33 |
+
</html>
|
frontend/dist/assets/404.0ca36773.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as i,f as d,u as p,g as f,r as v,o as k,c as g,a as e,t as c,d as L,w as x,b as B,h as l}from"./app.406c12df.js";const N={class:"theme-container"},T={class:"page"},b={class:"theme-default-content"},C=e("h1",null,"404",-1),M=d({__name:"404",setup(R){var a,s,n;const _=p(),o=f(),t=(a=o.value.notFound)!=null?a:["Not Found"],r=()=>t[Math.floor(Math.random()*t.length)],u=(s=o.value.home)!=null?s:_.value,m=(n=o.value.backToHome)!=null?n:"Back to home";return(V,w)=>{const h=v("RouterLink");return k(),g("div",N,[e("main",T,[e("div",b,[C,e("blockquote",null,c(r()),1),L(h,{to:l(u)},{default:x(()=>[B(c(l(m)),1)]),_:1},8,["to"])])])])}}});var F=i(M,[["__file","404.vue"]]);export{F as default};
|
frontend/dist/assets/404.html.1c89c614.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as e,o as _,c}from"./app.406c12df.js";const r={};function t(o,a){return _(),c("div")}var s=e(r,[["render",t],["__file","404.html.vue"]]);export{s as default};
|
frontend/dist/assets/404.html.686caba0.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
const t=JSON.parse('{"key":"v-3706649a","path":"/404.html","title":"","lang":"en-US","frontmatter":{"layout":"404"},"excerpt":"","headers":[],"filePathRelative":null}');export{t as data};
|
frontend/dist/assets/about.html.5113db77.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as n,r as o,o as s,c,a as e,b as r,d as a}from"./app.406c12df.js";const h={},i=e("h2",{id:"\u5173\u4E8E",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#\u5173\u4E8E","aria-hidden":"true"},"#"),r(" \u5173\u4E8E")],-1),d={href:"https://github.com/shigma/schemastery",target:"_blank",rel:"noopener noreferrer"},l=e("h3",{id:"\u53CD\u9988",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#\u53CD\u9988","aria-hidden":"true"},"#"),r(" \u53CD\u9988")],-1),_={href:"https://github.com/Akegarasu/lora-scripts/issues",target:"_blank",rel:"noopener noreferrer"},u=e("h3",{id:"\u8054\u7CFB\u65B9\u5F0F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#\u8054\u7CFB\u65B9\u5F0F","aria-hidden":"true"},"#"),r(" \u8054\u7CFB\u65B9\u5F0F")],-1),p=e("p",null,"\u90AE\u7BB1\[email protected]",-1),f={href:"https://discord.gg/Uu3syD9PnR",target:"_blank",rel:"noopener noreferrer"};function m(b,k){const t=o("ExternalLinkIcon");return s(),c("div",null,[i,e("p",null,[r("\u7531 "),e("a",d,[r("schemastery"),a(t)]),r(" \u5F3A\u529B\u9A71\u52A8")]),l,e("p",null,[r("\u8BF7\u524D\u5F80 Github \u63D0\u4EA4 "),e("a",_,[r("issue"),a(t)])]),u,p,e("p",null,[e("a",f,[r("discord \u9891\u9053"),a(t)])])])}var x=n(h,[["render",m],["__file","about.html.vue"]]);export{x as default};
|
frontend/dist/assets/about.html.5b0c0de9.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
const t=JSON.parse('{"key":"v-b5471278","path":"/other/about.html","title":"","lang":"en-US","frontmatter":{},"excerpt":"","headers":[],"filePathRelative":"other/about.md"}');export{t as data};
|
frontend/dist/assets/app.406c12df.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
frontend/dist/assets/back-to-top.8efcbe56.svg
ADDED
|
frontend/dist/assets/basic.html.002769d7.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as a,o as t,c as o,a as e,b as c}from"./app.406c12df.js";const r={},s=e("h1",{id:"lora-\u8BAD\u7EC3-\u65B0\u624B\u6A21\u5F0F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#lora-\u8BAD\u7EC3-\u65B0\u624B\u6A21\u5F0F","aria-hidden":"true"},"#"),c(" LoRA \u8BAD\u7EC3 \u65B0\u624B\u6A21\u5F0F")],-1),_=e("p",null,"\u9ED8\u8BA4\u8BBE\u7F6E\u4E3A\u4F60\u51C6\u5907\u597D\u4E86\u6240\u6709\u9700\u8981\u7684\u53C2\u6570\uFF0C\u53EA\u9700\u8981\u4F60\u4FEE\u6539\u5E95\u6A21\u8DEF\u5F84\u3001\u8BAD\u7EC3\u96C6\u8DEF\u5F84\u3001\u8BAD\u7EC3\u8F6E\u6570\u5373\u53EF\u4E00\u952E\u8BAD\u7EC3\u6A21\u578B\u3002",-1),n=[s,_];function d(i,l){return t(),o("div",null,n)}var f=a(r,[["render",d],["__file","basic.html.vue"]]);export{f as default};
|
frontend/dist/assets/basic.html.a7870e5f.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
const e=JSON.parse(`{"key":"v-3e43d6e2","path":"/lora/basic.html","title":"LoRA \u8BAD\u7EC3 \u65B0\u624B\u6A21\u5F0F","lang":"en-US","frontmatter":{"example":true,"trainType":"lora-basic","code":"Schema.intersect([\\n Schema.object({\\n pretrained_model_name_or_path: Schema.string().role('folder').default(\\"./sd-models/model.ckpt\\").description(\\"\u5E95\u6A21\u8DEF\u5F84\\"),\\n }).description(\\"\u8BAD\u7EC3\u7528\u6A21\u578B\\"),\\n\\n Schema.object({\\n train_data_dir: Schema.string().role('folder').default(\\"./train/aki\\").description(\\"\u8BAD\u7EC3\u6570\u636E\u96C6\u8DEF\u5F84\\"),\\n reg_data_dir: Schema.string().role('folder').description(\\"\u6B63\u5219\u5316\u6570\u636E\u96C6\u8DEF\u5F84\uFF0C\u9ED8\u8BA4\u4E0D\u4F7F\u7528\u6B63\u5219\u5316\u56FE\u50CF\\"),\\n resolution: Schema.string().default(\\"512,512\\").description(\\"\u8BAD\u7EC3\u56FE\u7247\u5206\u8FA8\u7387\uFF0C\u5BBDx\u9AD8\u3002\u652F\u6301\u975E\u6B63\u65B9\u5F62\uFF0C\u4F46\u5FC5\u987B\u662F 64 \u500D\u6570\u3002\\"),\\n }).description(\\"\u6570\u636E\u96C6\u8BBE\u7F6E\\"),\\n\\n Schema.object({\\n output_name: Schema.string().default(\\"aki\\").description(\\"\u6A21\u578B\u4FDD\u5B58\u540D\u79F0\\"),\\n output_dir: Schema.string().default(\\"./output\\").description(\\"\u6A21\u578B\u4FDD\u5B58\u6587\u4EF6\u5939\\"),\\n save_every_n_epochs: Schema.number().default(2).description(\\"\u6BCF N epoch\uFF08\u8F6E\uFF09\u81EA\u52A8\u4FDD\u5B58\u4E00\u6B21\u6A21\u578B\\"),\\n }).description(\\"\u4FDD\u5B58\u8BBE\u7F6E\\"),\\n\\n Schema.object({\\n max_train_epochs: Schema.number().min(1).default(10).description(\\"\u6700\u5927\u8BAD\u7EC3 epoch\uFF08\u8F6E\u6570\uFF09\\"),\\n train_batch_size: Schema.number().min(1).default(1).description(\\"\u6279\u91CF\u5927\u5C0F\\"),\\n }).description(\\"\u8BAD\u7EC3\u76F8\u5173\u53C2\u6570\\"),\\n\\n Schema.intersect([\\n Schema.object({\\n unet_lr: Schema.string().default(\\"1e-4\\").description(\\"U-Net \u5B66\u4E60\u7387\\"),\\n text_encoder_lr: Schema.string().default(\\"1e-5\\").description(\\"\u6587\u672C\u7F16\u7801\u5668\u5B66\u4E60\u7387\\"),\\n lr_scheduler: Schema.union([\\n \\"cosine\\",\\n \\"cosine_with_restarts\\",\\n \\"constant\\",\\n \\"constant_with_warmup\\",\\n ]).default(\\"cosine_with_restarts\\").description(\\"\u5B66\u4E60\u7387\u8C03\u5EA6\u5668\u8BBE\u7F6E\\"),\\n optimizer_type: Schema.union([\\n \\"AdamW8bit\\",\\n \\"Lion\\",\\n ]).default(\\"AdamW8bit\\").description(\\"\u4F18\u5316\u5668\u8BBE\u7F6E\\"),\\n }).description(\\"\u5B66\u4E60\u7387\u4E0E\u4F18\u5316\u5668\u8BBE\u7F6E\\"),\\n\\n Schema.union([\\n Schema.object({\\n lr_scheduler: Schema.const('cosine_with_restarts'),\\n lr_scheduler_num_cycles: Schema.number().default(1).description('\u91CD\u542F\u6B21\u6570'),\\n }),\\n Schema.object({\\n lr_scheduler: Schema.const('constant_with_warmup'),\\n lr_warmup_steps: Schema.number().default(100).description('\u70ED\u8EAB\u6B65\u6570'),\\n }),\\n Schema.object({}),\\n ]),\\n ]),\\n\\n Schema.intersect([\\n Schema.object({\\n network_weights: Schema.string().role('folder').description(\\"\u4ECE\u5DF2\u6709\u7684 LoRA \u6A21\u578B\u4E0A\u7EE7\u7EED\u8BAD\u7EC3\uFF0C\u586B\u5199\u8DEF\u5F84\\"),\\n network_dim: Schema.number().min(8).max(256).step(8).default(32).description(\\"\u7F51\u7EDC\u7EF4\u5EA6\uFF0C\u5E38\u7528 4~128\uFF0C\u4E0D\u662F\u8D8A\u5927\u8D8A\u597D\\"),\\n network_alpha: Schema.number().min(1).default(32).description(\\n \\"\u5E38\u7528\u4E0E network_dim \u76F8\u540C\u7684\u503C\u6216\u8005\u91C7\u7528\u8F83\u5C0F\u7684\u503C\uFF0C\u5982 network_dim \u7684\u4E00\u534A\u3002\u4F7F\u7528\u8F83\u5C0F\u7684 alpha \u9700\u8981\u63D0\u5347\u5B66\u4E60\u7387\u3002\\"\\n ),\\n }).description(\\"\u7F51\u7EDC\u8BBE\u7F6E\\"),\\n ]),\\n\\n Schema.object({\\n shuffle_caption: Schema.boolean().default(true).description(\\"\u8BAD\u7EC3\u65F6\u968F\u673A\u6253\u4E71 tokens\\"),\\n keep_tokens: Schema.number().min(0).max(255).step(1).default(0).description(\\"\u5728\u968F\u673A\u6253\u4E71 tokens \u65F6\uFF0C\u4FDD\u7559\u524D N \u4E2A\u4E0D\u53D8\\"),\\n }).description(\\"caption \u9009\u9879\\"),\\n]);\\n"},"excerpt":"","headers":[],"filePathRelative":"lora/basic.md"}`);export{e as data};
|
frontend/dist/assets/index.html.12bc7781.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as t,o,c as n,a as e,b as s}from"./app.406c12df.js";const a={},l=e("h1",{id:"lora-\u8BAD\u7EC3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#lora-\u8BAD\u7EC3","aria-hidden":"true"},"#"),s(" LoRA \u8BAD\u7EC3")],-1),c=e("p",null,"\u672C LoRA \u8BAD\u7EC3\u754C\u9762\u5206\u4E3A\u4E24\u79CD\u6A21\u5F0F\u3002",-1),i=e("ul",null,[e("li",null,"\u9488\u5BF9\u65B0\u624B\u7684\u7B80\u6613\u8BAD\u7EC3\u53EA\u6709\u90E8\u5206\u53EF\u8C03\u8282\u53C2\u6570"),e("li",null,"\u9488\u5BF9\u6709\u4E00\u5B9A\u7ECF\u9A8C\u7684\u7528\u6237\u7684\u4E13\u5BB6\u6A21\u5F0F\uFF0C\u5F00\u653E\u5168\u90E8\u7684\u9AD8\u7EA7\u53C2\u6570")],-1),r=e("div",{class:"custom-container tip"},[e("p",{class:"custom-container-title"},"TIP"),e("p",null,"\u5982\u679C\u4F60\u662F\u65B0\u624B\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u65B0\u624B\u6A21\u5F0F\uFF0C\u4E0D\u8981\u901E\u5F3A\u4F7F\u7528\u4E13\u5BB6\u6A21\u5F0F\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u610F\u60F3\u4E0D\u5230\u7684\u95EE\u9898\u3002")],-1),_=[l,c,i,r];function d(u,h){return o(),n("div",null,_)}var m=t(a,[["render",d],["__file","index.html.vue"]]);export{m as default};
|
frontend/dist/assets/index.html.647b0b74.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as t,o as a,c as o,a as e,b as r}from"./app.406c12df.js";const c={},n=e("h1",{id:"dreambooth-\u8BAD\u7EC3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#dreambooth-\u8BAD\u7EC3","aria-hidden":"true"},"#"),r(" Dreambooth \u8BAD\u7EC3")],-1),s=e("p",null,"\u8FD8\u5728\u5F00\u53D1\u4E2D\uFF0C\u656C\u8BF7\u671F\u5F85\u3002",-1),d=[n,s];function _(h,i){return a(),o("div",null,d)}var m=t(c,[["render",_],["__file","index.html.vue"]]);export{m as default};
|
frontend/dist/assets/index.html.9d7cc666.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
const e=JSON.parse('{"key":"v-8daa1a0e","path":"/","title":"SD-Trainer","lang":"en-US","frontmatter":{},"excerpt":"","headers":[],"filePathRelative":"index.md"}');export{e as data};
|
frontend/dist/assets/index.html.b97ec799.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
const e=JSON.parse('{"key":"v-14e91824","path":"/lora/","title":"LoRA \u8BAD\u7EC3","lang":"en-US","frontmatter":{},"excerpt":"","headers":[],"filePathRelative":"lora/index.md"}');export{e as data};
|
frontend/dist/assets/index.html.c4113495.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as n,r as t,o,c as s,a as e,b as a,d as c}from"./app.406c12df.js";const i={},l=e("h1",{id:"sd-trainer",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#sd-trainer","aria-hidden":"true"},"#"),a(" SD-Trainer")],-1),d={href:"https://space.bilibili.com/12566101",target:"_blank",rel:"noopener noreferrer"};function _(f,h){const r=t("ExternalLinkIcon");return o(),s("div",null,[l,e("p",null,[a("Stable Diffusion \u8BAD\u7EC3 UI v1.0.0 by "),e("a",d,[a("\u79CB\u8449aaaki"),c(r)])])])}var m=n(i,[["render",_],["__file","index.html.vue"]]);export{m as default};
|
frontend/dist/assets/index.html.fbbfced2.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
const e=JSON.parse('{"key":"v-33a23463","path":"/dreambooth/","title":"Dreambooth \u8BAD\u7EC3","lang":"en-US","frontmatter":{},"excerpt":"","headers":[],"filePathRelative":"dreambooth/index.md"}');export{e as data};
|
frontend/dist/assets/layout.2e2cec1b.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import{i as watch,j as isRef,k as buildProps,l as definePropType,m as useSizeProp,f as defineComponent,p as provideGlobalConfig,n as renderSlot,q as useNamespace,s as computed,v as isNumber$1,o as openBlock,c as createElementBlock,d as createVNode,w as withCtx,x as withDirectives,a as createBaseVNode,y as normalizeClass,h as unref,t as toDisplayString,z as vShow,T as Transition,A as _export_sfc,B as withInstall,C as nextTick,E as EVENT_CODE,D as mutable,F as iconPropType,G as isClient,H as shallowReactive,I as useGlobalComponentSettings,J as ref,K as TypeComponentsMap,L as onMounted,M as useEventListener,N as useResizeObserver,O as createBlock,P as normalizeStyle,Q as createCommentVNode,R as ElIcon,S as resolveDynamicComponent,U as Fragment,V as withModifiers,W as TypeComponents,X as useTimeoutFn,Y as isString,Z as isVNode,$ as isFunction,a0 as render,a1 as isElement,a2 as withInstallFunction,a3 as ElButton,a4 as ElFocusTrap,a5 as ElInput,a6 as ElOverlay,a7 as isValidComponentSize,a8 as reactive,a9 as useId,aa as useDraggable,ab as onBeforeUnmount,ac as useLockscreen,ad as toRefs,ae as useSameTarget,r as resolveComponent,af as withKeys,b as createTextVNode,ag as hasOwn,ah as isObject,ai as isUndefined,_ as _export_sfc$1,aj as usePageFrontmatter,ak as renderList,al as isArray,am as useRoute,an as mergeProps,ao as isLinkHttp,ap as isLinkMailto,aq as isLinkTel,ar as useSiteData,as as useSiteLocaleData,at as useDarkMode,au as h,av as withBase,aw as ClientOnly,u as useRouteLocale,g as useThemeLocaleData,ax as removeLeadingSlash,ay as removeEndingSlash,az as useRouter,aA as useNavLink,e as createStaticVNode,aB as usePageData,aC as useSidebarItems,aD as isPlainObject,aE as useToggle,aF as pushScopeId,aG as popScopeId,aH as onUnmounted,aI as useScrollPromise,aJ as isNullable,aK as clone,aL as createSlots}from"./app.406c12df.js";const FOCUSABLE_ELEMENT_SELECTORS='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',isVisible=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,obtainAllFocusableElements=e=>Array.from(e.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(t=>isFocusable(t)&&isVisible(t)),isFocusable=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},useRestoreActive=(e,t)=>{let n;watch(()=>e.value,o=>{var a,r;o?(n=document.activeElement,isRef(t)&&((r=(a=t.value).focus)==null||r.call(a))):n.focus()})},configProviderProps=buildProps({a11y:{type:Boolean,default:!0},locale:{type:definePropType(Object)},size:useSizeProp,button:{type:definePropType(Object)},experimentalFeatures:{type:definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),messageConfig={};defineComponent({name:"ElConfigProvider",props:configProviderProps,setup(e,{slots:t}){watch(()=>e.message,o=>{Object.assign(messageConfig,o!=null?o:{})},{immediate:!0,deep:!0});const n=provideGlobalConfig(e);return()=>renderSlot(t,"default",{config:n==null?void 0:n.value})}});const badgeProps=buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),_hoisted_1$m=["textContent"],__default__$2=defineComponent({name:"ElBadge"}),_sfc_main$r=defineComponent({...__default__$2,props:badgeProps,setup(e,{expose:t}){const n=e,o=useNamespace("badge"),a=computed(()=>n.isDot?"":isNumber$1(n.value)&&isNumber$1(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:a}),(r,c)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(o).b())},[renderSlot(r.$slots,"default"),createVNode(Transition,{name:`${unref(o).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(o).e("content"),unref(o).em("content",r.type),unref(o).is("fixed",!!r.$slots.default),unref(o).is("dot",r.isDot)]),textContent:toDisplayString(unref(a))},null,10,_hoisted_1$m),[[vShow,!r.hidden&&(unref(a)||r.isDot)]])]),_:1},8,["name"])],2))}});var Badge=_export_sfc(_sfc_main$r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const ElBadge=withInstall(Badge),FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=e=>{if(FOCUS_STACK.length===0)return;const t=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(t.length>0&&e.code===EVENT_CODE.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],a=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),a&&!n&&(e.preventDefault(),t[0].focus())}},TrapFocus={beforeMount(e){e[FOCUSABLE_CHILDREN]=obtainAllFocusableElements(e),FOCUS_STACK.push(e),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated(e){nextTick(()=>{e[FOCUSABLE_CHILDREN]=obtainAllFocusableElements(e)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&document.removeEventListener("keydown",FOCUS_HANDLER)}},messageTypes=["success","info","warning","error"],messageDefaults=mutable({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:isClient?document.body:void 0}),messageProps=buildProps({customClass:{type:String,default:messageDefaults.customClass},center:{type:Boolean,default:messageDefaults.center},dangerouslyUseHTMLString:{type:Boolean,default:messageDefaults.dangerouslyUseHTMLString},duration:{type:Number,default:messageDefaults.duration},icon:{type:iconPropType,default:messageDefaults.icon},id:{type:String,default:messageDefaults.id},message:{type:definePropType([String,Object,Function]),default:messageDefaults.message},onClose:{type:definePropType(Function),required:!1},showClose:{type:Boolean,default:messageDefaults.showClose},type:{type:String,values:messageTypes,default:messageDefaults.type},offset:{type:Number,default:messageDefaults.offset},zIndex:{type:Number,default:messageDefaults.zIndex},grouping:{type:Boolean,default:messageDefaults.grouping},repeatNum:{type:Number,default:messageDefaults.repeatNum}}),messageEmits={destroy:()=>!0},instances=shallowReactive([]),getInstance=e=>{const t=instances.findIndex(a=>a.id===e),n=instances[t];let o;return t>0&&(o=instances[t-1]),{current:n,prev:o}},getLastOffset=e=>{const{prev:t}=getInstance(e);return t?t.vm.exposed.bottom.value:0},getOffsetOrSpace=(e,t)=>instances.findIndex(o=>o.id===e)>0?20:t,_hoisted_1$l=["id"],_hoisted_2$f=["innerHTML"],__default__$1=defineComponent({name:"ElMessage"}),_sfc_main$q=defineComponent({...__default__$1,props:messageProps,emits:messageEmits,setup(e,{expose:t}){const n=e,{Close:o}=TypeComponents,{ns:a,zIndex:r}=useGlobalComponentSettings("message"),{currentZIndex:c,nextZIndex:i}=r,l=ref(),s=ref(!1),d=ref(0);let p;const u=computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),_=computed(()=>{const g=n.type;return{[a.bm("icon",g)]:g&&TypeComponentsMap[g]}}),k=computed(()=>n.icon||TypeComponentsMap[n.type]||""),f=computed(()=>getLastOffset(n.id)),m=computed(()=>getOffsetOrSpace(n.id,n.offset)+f.value),y=computed(()=>d.value+m.value),B=computed(()=>({top:`${m.value}px`,zIndex:c.value}));function C(){n.duration!==0&&({stop:p}=useTimeoutFn(()=>{b()},n.duration))}function E(){p==null||p()}function b(){s.value=!1}function N({code:g}){g===EVENT_CODE.esc&&b()}return onMounted(()=>{C(),i(),s.value=!0}),watch(()=>n.repeatNum,()=>{E(),C()}),useEventListener(document,"keydown",N),useResizeObserver(l,()=>{d.value=l.value.getBoundingClientRect().height}),t({visible:s,bottom:y,close:b}),(g,T)=>(openBlock(),createBlock(Transition,{name:unref(a).b("fade"),onBeforeLeave:g.onClose,onAfterLeave:T[0]||(T[0]=D=>g.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:g.id,ref_key:"messageRef",ref:l,class:normalizeClass([unref(a).b(),{[unref(a).m(g.type)]:g.type&&!g.icon},unref(a).is("center",g.center),unref(a).is("closable",g.showClose),g.customClass]),style:normalizeStyle(unref(B)),role:"alert",onMouseenter:E,onMouseleave:C},[g.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:g.repeatNum,type:unref(u),class:normalizeClass(unref(a).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),unref(k)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(a).e("icon"),unref(_)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(k))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot(g.$slots,"default",{},()=>[g.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{class:normalizeClass(unref(a).e("content")),innerHTML:g.message},null,10,_hoisted_2$f)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(a).e("content"))},toDisplayString(g.message),3))]),g.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(a).e("closeBtn")),onClick:withModifiers(b,["stop"])},{default:withCtx(()=>[createVNode(unref(o))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],46,_hoisted_1$l),[[vShow,s.value]])]),_:3},8,["name","onBeforeLeave"]))}});var MessageConstructor=_export_sfc(_sfc_main$q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let seed=1;const normalizeOptions=e=>{const t=!e||isString(e)||isVNode(e)||isFunction(e)?{message:e}:e,n={...messageDefaults,...t};if(!n.appendTo)n.appendTo=document.body;else if(isString(n.appendTo)){let o=document.querySelector(n.appendTo);isElement(o)||(o=document.body),n.appendTo=o}return n},closeMessage=e=>{const t=instances.indexOf(e);if(t===-1)return;instances.splice(t,1);const{handler:n}=e;n.close()},createMessage=({appendTo:e,...t},n)=>{const o=`message_${seed++}`,a=t.onClose,r=document.createElement("div"),c={...t,id:o,onClose:()=>{a==null||a(),closeMessage(d)},onDestroy:()=>{render(null,r)}},i=createVNode(MessageConstructor,c,isFunction(c.message)||isVNode(c.message)?{default:isFunction(c.message)?c.message:()=>c.message}:null);i.appContext=n||message._context,render(i,r),e.appendChild(r.firstElementChild);const l=i.component,d={id:o,vnode:i,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:i.component.props};return d},message=(e={},t)=>{if(!isClient)return{close:()=>{}};if(isNumber$1(messageConfig.max)&&instances.length>=messageConfig.max)return{close:()=>{}};const n=normalizeOptions(e);if(n.grouping&&instances.length){const a=instances.find(({vnode:r})=>{var c;return((c=r.props)==null?void 0:c.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}const o=createMessage(n,t);return instances.push(o),o.handler};messageTypes.forEach(e=>{message[e]=(t={},n)=>{const o=normalizeOptions(t);return message({...o,type:e},n)}});function closeAll(e){for(const t of instances)(!e||e===t.props.type)&&t.handler.close()}message.closeAll=closeAll;message._context=null;const ElMessage=withInstallFunction(message,"$message"),_sfc_main$p=defineComponent({name:"ElMessageBox",directives:{TrapFocus},components:{ElButton,ElFocusTrap,ElInput,ElOverlay,ElIcon,...TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:isValidComponentSize},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:o,ns:a,size:r}=useGlobalComponentSettings("message-box",computed(()=>e.buttonSize)),{t:c}=n,{nextZIndex:i}=o,l=ref(!1),s=reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),d=computed(()=>{const v=s.type;return{[a.bm("icon",v)]:v&&TypeComponentsMap[v]}}),p=useId(),u=useId(),_=computed(()=>s.icon||TypeComponentsMap[s.type]||""),k=computed(()=>!!s.message),f=ref(),m=ref(),y=ref(),B=ref(),C=ref(),E=computed(()=>s.confirmButtonClass);watch(()=>s.inputValue,async v=>{await nextTick(),e.boxType==="prompt"&&v!==null&&V()},{immediate:!0}),watch(()=>l.value,v=>{var $,S;v&&(e.boxType!=="prompt"&&(s.autofocus?y.value=(S=($=C.value)==null?void 0:$.$el)!=null?S:f.value:y.value=f.value),s.zIndex=i()),e.boxType==="prompt"&&(v?nextTick().then(()=>{var A;B.value&&B.value.$el&&(s.autofocus?y.value=(A=L())!=null?A:f.value:y.value=f.value)}):(s.editorErrorMessage="",s.validateError=!1))});const b=computed(()=>e.draggable);useDraggable(f,m,b),onMounted(async()=>{await nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",N)}),onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",N)});function N(){!l.value||(l.value=!1,nextTick(()=>{s.action&&t("action",s.action)}))}const g=()=>{e.closeOnClickModal&&w(s.distinguishCancelAndClose?"close":"cancel")},T=useSameTarget(g),D=v=>{if(s.inputType!=="textarea")return v.preventDefault(),w("confirm")},w=v=>{var $;e.boxType==="prompt"&&v==="confirm"&&!V()||(s.action=v,s.beforeClose?($=s.beforeClose)==null||$.call(s,v,s,N):N())},V=()=>{if(e.boxType==="prompt"){const v=s.inputPattern;if(v&&!v.test(s.inputValue||""))return s.editorErrorMessage=s.inputErrorMessage||c("el.messagebox.error"),s.validateError=!0,!1;const $=s.inputValidator;if(typeof $=="function"){const S=$(s.inputValue);if(S===!1)return s.editorErrorMessage=s.inputErrorMessage||c("el.messagebox.error"),s.validateError=!0,!1;if(typeof S=="string")return s.editorErrorMessage=S,s.validateError=!0,!1}}return s.editorErrorMessage="",s.validateError=!1,!0},L=()=>{const v=B.value.$refs;return v.input||v.textarea},x=()=>{w("close")},F=()=>{e.closeOnPressEscape&&x()};return e.lockScroll&&useLockscreen(l),useRestoreActive(l),{...toRefs(s),ns:a,overlayEvent:T,visible:l,hasMessage:k,typeClass:d,contentId:p,inputId:u,btnSize:r,iconComponent:_,confirmButtonClasses:E,rootRef:f,focusStartRef:y,headerRef:m,inputRef:B,confirmRef:C,doClose:N,handleClose:x,onCloseRequested:F,handleWrapperClick:g,handleInputEnter:D,handleAction:w,t:c}}}),_hoisted_1$k=["aria-label","aria-describedby"],_hoisted_2$e=["aria-label"],_hoisted_3$a=["id"];function _sfc_render$1(e,t,n,o,a,r){const c=resolveComponent("el-icon"),i=resolveComponent("close"),l=resolveComponent("el-input"),s=resolveComponent("el-button"),d=resolveComponent("el-focus-trap"),p=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=u=>e.$emit("vanish")),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(p,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...u)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...u)),onMousedown:t[9]||(t[9]=(...u)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...u)),onMouseup:t[10]||(t[10]=(...u)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...u))},[createVNode(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:normalizeStyle(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=withModifiers(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass(e.ns.e("header"))},[createBaseVNode("div",{class:normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(openBlock(),createBlock(c,{key:0,class:normalizeClass([e.ns.e("status"),e.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString(e.title),1)],2),e.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=u=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=withKeys(withModifiers(u=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode(c,{class:normalizeClass(e.ns.e("close"))},{default:withCtx(()=>[createVNode(i)]),_:1},8,["class"])],42,_hoisted_2$e)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{id:e.contentId,class:normalizeClass(e.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(openBlock(),createBlock(c,{key:0,class:normalizeClass([e.ns.e("status"),e.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),e.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(e.ns.e("message"))},[renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:withCtx(()=>[createTextVNode(toDisplayString(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(e.ns.e("input"))},[createVNode(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=u=>e.inputValue=u),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:normalizeClass({invalid:e.validateError}),onKeydown:withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass(e.ns.e("errormsg")),style:normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},toDisplayString(e.editorErrorMessage),7)],2),[[vShow,e.showInput]])],10,_hoisted_3$a),createBaseVNode("div",{class:normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(openBlock(),createBlock(s,{key:0,loading:e.cancelButtonLoading,class:normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=u=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=withKeys(withModifiers(u=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):createCommentVNode("v-if",!0),withDirectives(createVNode(s,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=u=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=withKeys(withModifiers(u=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[vShow,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$k)]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,e.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc(_sfc_main$p,[["render",_sfc_render$1],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const messageInstance=new Map,getAppendToElement=e=>{let t=document.body;return e.appendTo&&(isString(e.appendTo)&&(t=document.querySelector(e.appendTo)),isElement(e.appendTo)&&(t=e.appendTo),isElement(t)||(t=document.body)),t},initInstance=(e,t,n=null)=>{const o=createVNode(MessageBoxConstructor,e,isFunction(e.message)||isVNode(e.message)?{default:isFunction(e.message)?e.message:()=>e.message}:null);return o.appContext=n,render(o,t),getAppendToElement(e).appendChild(t.firstElementChild),o.component},genContainer=()=>document.createElement("div"),showMessage=(e,t)=>{const n=genContainer();e.onVanish=()=>{render(null,n),messageInstance.delete(a)},e.onAction=r=>{const c=messageInstance.get(a);let i;e.showInput?i={value:a.inputValue,action:r}:i=r,e.callback?e.callback(i,o.proxy):r==="cancel"||r==="close"?e.distinguishCancelAndClose&&r!=="cancel"?c.reject("close"):c.reject("cancel"):c.resolve(i)};const o=initInstance(e,n,t),a=o.proxy;for(const r in e)hasOwn(e,r)&&!hasOwn(a.$props,r)&&(a[r]=e[r]);return a.visible=!0,a};function MessageBox(e,t=null){if(!isClient)return Promise.reject();let n;return isString(e)||isVNode(e)?e={message:e}:n=e.callback,new Promise((o,a)=>{const r=showMessage(e,t!=null?t:MessageBox._context);messageInstance.set(r,{options:e,callback:n,resolve:o,reject:a})})}const MESSAGE_BOX_VARIANTS=["alert","confirm","prompt"],MESSAGE_BOX_DEFAULT_OPTS={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};MESSAGE_BOX_VARIANTS.forEach(e=>{MessageBox[e]=messageBoxFactory(e)});function messageBoxFactory(e){return(t,n,o,a)=>{let r="";return isObject(n)?(o=n,r=""):isUndefined(n)?r="":r=n,MessageBox(Object.assign({title:r,message:t,type:"",...MESSAGE_BOX_DEFAULT_OPTS[e]},o,{boxType:e}),a)}}MessageBox.close=()=>{messageInstance.forEach((e,t)=>{t.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=e=>{_MessageBox._context=e._context,e.config.globalProperties.$msgbox=_MessageBox,e.config.globalProperties.$messageBox=_MessageBox,e.config.globalProperties.$alert=_MessageBox.alert,e.config.globalProperties.$confirm=_MessageBox.confirm,e.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox,_sfc_main$o={},_hoisted_1$j={class:"theme-default-content"};function _sfc_render(e,t){const n=resolveComponent("Content");return openBlock(),createElementBlock("div",_hoisted_1$j,[createVNode(n)])}var HomeContent=_export_sfc$1(_sfc_main$o,[["render",_sfc_render],["__file","HomeContent.vue"]]);const _hoisted_1$i={key:0,class:"features"},_sfc_main$n=defineComponent({__name:"HomeFeatures",setup(e){const t=usePageFrontmatter(),n=computed(()=>isArray(t.value.features)?t.value.features:[]);return(o,a)=>n.value.length?(openBlock(),createElementBlock("div",_hoisted_1$i,[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.value,r=>(openBlock(),createElementBlock("div",{key:r.title,class:"feature"},[createBaseVNode("h2",null,toDisplayString(r.title),1),createBaseVNode("p",null,toDisplayString(r.details),1)]))),128))])):createCommentVNode("",!0)}});var HomeFeatures=_export_sfc$1(_sfc_main$n,[["__file","HomeFeatures.vue"]]);const _hoisted_1$h=["innerHTML"],_hoisted_2$d=["textContent"],_sfc_main$m=defineComponent({__name:"HomeFooter",setup(e){const t=usePageFrontmatter(),n=computed(()=>t.value.footer),o=computed(()=>t.value.footerHtml);return(a,r)=>n.value?(openBlock(),createElementBlock(Fragment,{key:0},[o.value?(openBlock(),createElementBlock("div",{key:0,class:"footer",innerHTML:n.value},null,8,_hoisted_1$h)):(openBlock(),createElementBlock("div",{key:1,class:"footer",textContent:toDisplayString(n.value)},null,8,_hoisted_2$d))],64)):createCommentVNode("",!0)}});var HomeFooter=_export_sfc$1(_sfc_main$m,[["__file","HomeFooter.vue"]]);const _hoisted_1$g=["href","rel","target","aria-label"],__default__=defineComponent({inheritAttrs:!1}),_sfc_main$l=defineComponent({...__default__,__name:"AutoLink",props:{item:{type:Object,required:!0}},setup(e){const t=e,n=useRoute(),o=useSiteData(),{item:a}=toRefs(t),r=computed(()=>isLinkHttp(a.value.link)),c=computed(()=>isLinkMailto(a.value.link)||isLinkTel(a.value.link)),i=computed(()=>{if(!c.value){if(a.value.target)return a.value.target;if(r.value)return"_blank"}}),l=computed(()=>i.value==="_blank"),s=computed(()=>!r.value&&!c.value&&!l.value),d=computed(()=>{if(!c.value){if(a.value.rel)return a.value.rel;if(l.value)return"noopener noreferrer"}}),p=computed(()=>a.value.ariaLabel||a.value.text),u=computed(()=>{const f=Object.keys(o.value.locales);return f.length?!f.some(m=>m===a.value.link):a.value.link!=="/"}),_=computed(()=>u.value?n.path.startsWith(a.value.link):!1),k=computed(()=>s.value?a.value.activeMatch?new RegExp(a.value.activeMatch).test(n.path):_.value:!1);return(f,m)=>{const y=resolveComponent("RouterLink"),B=resolveComponent("AutoLinkExternalIcon");return s.value?(openBlock(),createBlock(y,mergeProps({key:0,class:{"router-link-active":k.value},to:unref(a).link,"aria-label":p.value},f.$attrs),{default:withCtx(()=>[renderSlot(f.$slots,"before"),createTextVNode(" "+toDisplayString(unref(a).text)+" ",1),renderSlot(f.$slots,"after")]),_:3},16,["class","to","aria-label"])):(openBlock(),createElementBlock("a",mergeProps({key:1,class:"external-link",href:unref(a).link,rel:d.value,target:i.value,"aria-label":p.value},f.$attrs),[renderSlot(f.$slots,"before"),createTextVNode(" "+toDisplayString(unref(a).text)+" ",1),l.value?(openBlock(),createBlock(B,{key:0})):createCommentVNode("",!0),renderSlot(f.$slots,"after")],16,_hoisted_1$g))}}});var AutoLink=_export_sfc$1(_sfc_main$l,[["__file","AutoLink.vue"]]);const _hoisted_1$f={class:"hero"},_hoisted_2$c={key:0,id:"main-title"},_hoisted_3$9={key:1,class:"description"},_hoisted_4$7={key:2,class:"actions"},_sfc_main$k=defineComponent({__name:"HomeHero",setup(e){const t=usePageFrontmatter(),n=useSiteLocaleData(),o=useDarkMode(),a=computed(()=>o.value&&t.value.heroImageDark!==void 0?t.value.heroImageDark:t.value.heroImage),r=computed(()=>t.value.heroText===null?null:t.value.heroText||n.value.title||"Hello"),c=computed(()=>t.value.heroAlt||r.value||"hero"),i=computed(()=>t.value.tagline===null?null:t.value.tagline||n.value.description||"Welcome to your VuePress site"),l=computed(()=>isArray(t.value.actions)?t.value.actions.map(({text:d,link:p,type:u="primary"})=>({text:d,link:p,type:u})):[]),s=()=>{if(!a.value)return null;const d=h("img",{src:withBase(a.value),alt:c.value});return t.value.heroImageDark===void 0?d:h(ClientOnly,()=>d)};return(d,p)=>(openBlock(),createElementBlock("header",_hoisted_1$f,[createVNode(s),r.value?(openBlock(),createElementBlock("h1",_hoisted_2$c,toDisplayString(r.value),1)):createCommentVNode("",!0),i.value?(openBlock(),createElementBlock("p",_hoisted_3$9,toDisplayString(i.value),1)):createCommentVNode("",!0),l.value.length?(openBlock(),createElementBlock("p",_hoisted_4$7,[(openBlock(!0),createElementBlock(Fragment,null,renderList(l.value,u=>(openBlock(),createBlock(AutoLink,{key:u.text,class:normalizeClass(["action-button",[u.type]]),item:u},null,8,["class","item"]))),128))])):createCommentVNode("",!0)]))}});var HomeHero=_export_sfc$1(_sfc_main$k,[["__file","HomeHero.vue"]]);const _hoisted_1$e={class:"home"},_sfc_main$j=defineComponent({__name:"Home",setup(e){return(t,n)=>(openBlock(),createElementBlock("main",_hoisted_1$e,[createVNode(HomeHero),createVNode(HomeFeatures),createVNode(HomeContent),createVNode(HomeFooter)]))}});var Home=_export_sfc$1(_sfc_main$j,[["__file","Home.vue"]]);const _sfc_main$i=defineComponent({__name:"NavbarBrand",setup(e){const t=useRouteLocale(),n=useSiteLocaleData(),o=useThemeLocaleData(),a=useDarkMode(),r=computed(()=>o.value.home||t.value),c=computed(()=>n.value.title),i=computed(()=>a.value&&o.value.logoDark!==void 0?o.value.logoDark:o.value.logo),l=()=>{if(!i.value)return null;const s=h("img",{class:"logo",src:withBase(i.value),alt:c.value});return o.value.logoDark===void 0?s:h(ClientOnly,()=>s)};return(s,d)=>{const p=resolveComponent("RouterLink");return openBlock(),createBlock(p,{to:r.value},{default:withCtx(()=>[createVNode(l),c.value?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(["site-name",{"can-hide":i.value}])},toDisplayString(c.value),3)):createCommentVNode("",!0)]),_:1},8,["to"])}}});var NavbarBrand=_export_sfc$1(_sfc_main$i,[["__file","NavbarBrand.vue"]]);const _sfc_main$h=defineComponent({__name:"DropdownTransition",setup(e){const t=o=>{o.style.height=o.scrollHeight+"px"},n=o=>{o.style.height=""};return(o,a)=>(openBlock(),createBlock(Transition,{name:"dropdown",onEnter:t,onAfterEnter:n,onBeforeLeave:t},{default:withCtx(()=>[renderSlot(o.$slots,"default")]),_:3}))}});var DropdownTransition=_export_sfc$1(_sfc_main$h,[["__file","DropdownTransition.vue"]]);const _hoisted_1$d=["aria-label"],_hoisted_2$b={class:"title"},_hoisted_3$8=createBaseVNode("span",{class:"arrow down"},null,-1),_hoisted_4$6=["aria-label"],_hoisted_5$5={class:"title"},_hoisted_6$4={class:"navbar-dropdown"},_hoisted_7$3={class:"navbar-dropdown-subtitle"},_hoisted_8$3={key:1},_hoisted_9$3={class:"navbar-dropdown-subitem-wrapper"},_sfc_main$g=defineComponent({__name:"NavbarDropdown",props:{item:{type:Object,required:!0}},setup(e){const t=e,{item:n}=toRefs(t),o=computed(()=>n.value.ariaLabel||n.value.text),a=ref(!1),r=useRoute();watch(()=>r.path,()=>{a.value=!1});const c=l=>{l.detail===0?a.value=!a.value:a.value=!1},i=(l,s)=>s[s.length-1]===l;return(l,s)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["navbar-dropdown-wrapper",{open:a.value}])},[createBaseVNode("button",{class:"navbar-dropdown-title",type:"button","aria-label":o.value,onClick:c},[createBaseVNode("span",_hoisted_2$b,toDisplayString(unref(n).text),1),_hoisted_3$8],8,_hoisted_1$d),createBaseVNode("button",{class:"navbar-dropdown-title-mobile",type:"button","aria-label":o.value,onClick:s[0]||(s[0]=d=>a.value=!a.value)},[createBaseVNode("span",_hoisted_5$5,toDisplayString(unref(n).text),1),createBaseVNode("span",{class:normalizeClass(["arrow",a.value?"down":"right"])},null,2)],8,_hoisted_4$6),createVNode(DropdownTransition,null,{default:withCtx(()=>[withDirectives(createBaseVNode("ul",_hoisted_6$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(n).children,d=>(openBlock(),createElementBlock("li",{key:d.text,class:"navbar-dropdown-item"},[d.children?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("h4",_hoisted_7$3,[d.link?(openBlock(),createBlock(AutoLink,{key:0,item:d,onFocusout:p=>i(d,unref(n).children)&&d.children.length===0&&(a.value=!1)},null,8,["item","onFocusout"])):(openBlock(),createElementBlock("span",_hoisted_8$3,toDisplayString(d.text),1))]),createBaseVNode("ul",_hoisted_9$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(d.children,p=>(openBlock(),createElementBlock("li",{key:p.link,class:"navbar-dropdown-subitem"},[createVNode(AutoLink,{item:p,onFocusout:u=>i(p,d.children)&&i(d,unref(n).children)&&(a.value=!1)},null,8,["item","onFocusout"])]))),128))])],64)):(openBlock(),createBlock(AutoLink,{key:1,item:d,onFocusout:p=>i(d,unref(n).children)&&(a.value=!1)},null,8,["item","onFocusout"]))]))),128))],512),[[vShow,a.value]])]),_:1})],2))}});var NavbarDropdown=_export_sfc$1(_sfc_main$g,[["__file","NavbarDropdown.vue"]]);const normalizePath=e=>decodeURI(e).replace(/#.*$/,"").replace(/(index)?\.(md|html)$/,""),isActiveLink=(e,t)=>{if(t.hash===e)return!0;const n=normalizePath(t.path),o=normalizePath(e);return n===o},isActiveSidebarItem=(e,t)=>e.link&&isActiveLink(e.link,t)?!0:e.children?e.children.some(n=>isActiveSidebarItem(n,t)):!1,resolveRepoType=e=>!isLinkHttp(e)||/github\.com/.test(e)?"GitHub":/bitbucket\.org/.test(e)?"Bitbucket":/gitlab\.com/.test(e)?"GitLab":/gitee\.com/.test(e)?"Gitee":null,editLinkPatterns={GitHub:":repo/edit/:branch/:path",GitLab:":repo/-/edit/:branch/:path",Gitee:":repo/edit/:branch/:path",Bitbucket:":repo/src/:branch/:path?mode=edit&spa=0&at=:branch&fileviewer=file-view-default"},resolveEditLinkPatterns=({docsRepo:e,editLinkPattern:t})=>{if(t)return t;const n=resolveRepoType(e);return n!==null?editLinkPatterns[n]:null},resolveEditLink=({docsRepo:e,docsBranch:t,docsDir:n,filePathRelative:o,editLinkPattern:a})=>{if(!o)return null;const r=resolveEditLinkPatterns({docsRepo:e,editLinkPattern:a});return r?r.replace(/:repo/,isLinkHttp(e)?e:`https://github.com/${e}`).replace(/:branch/,t).replace(/:path/,removeLeadingSlash(`${removeEndingSlash(n)}/${o}`)):null},_hoisted_1$c={key:0,class:"navbar-items"},_sfc_main$f=defineComponent({__name:"NavbarItems",setup(e){const t=()=>{const s=useRouter(),d=useRouteLocale(),p=useSiteLocaleData(),u=useThemeLocaleData();return computed(()=>{var B,C,E;const _=Object.keys(p.value.locales);if(_.length<2)return[];const k=s.currentRoute.value.path,f=s.currentRoute.value.fullPath,m=s.currentRoute.value.hash;return[{text:(B=u.value.selectLanguageText)!=null?B:"unknown language",ariaLabel:(E=(C=u.value.selectLanguageAriaLabel)!=null?C:u.value.selectLanguageText)!=null?E:"unknown language",children:_.map(b=>{var V,L,x,F,v,$;const N=(L=(V=p.value.locales)==null?void 0:V[b])!=null?L:{},g=(F=(x=u.value.locales)==null?void 0:x[b])!=null?F:{},T=`${N.lang}`,D=(v=g.selectLanguageName)!=null?v:T;let w;if(T===p.value.lang)w=f;else{const S=k.replace(d.value,b);s.getRoutes().some(A=>A.path===S)?w=`${S}${m}`:w=($=g.home)!=null?$:b}return{text:D,link:w}})}]})},n=()=>{const s=useThemeLocaleData(),d=computed(()=>s.value.repo),p=computed(()=>d.value?resolveRepoType(d.value):null),u=computed(()=>d.value&&!isLinkHttp(d.value)?`https://github.com/${d.value}`:d.value),_=computed(()=>u.value?s.value.repoLabel?s.value.repoLabel:p.value===null?"Source":p.value:null);return computed(()=>!u.value||!_.value?[]:[{text:_.value,link:u.value}])},o=s=>isString(s)?useNavLink(s):s.children?{...s,children:s.children.map(o)}:s,r=(()=>{const s=useThemeLocaleData();return computed(()=>(s.value.navbar||[]).map(o))})(),c=t(),i=n(),l=computed(()=>[...r.value,...c.value,...i.value]);return(s,d)=>l.value.length?(openBlock(),createElementBlock("nav",_hoisted_1$c,[(openBlock(!0),createElementBlock(Fragment,null,renderList(l.value,p=>(openBlock(),createElementBlock("div",{key:p.text,class:"navbar-item"},[p.children?(openBlock(),createBlock(NavbarDropdown,{key:0,item:p},null,8,["item"])):(openBlock(),createBlock(AutoLink,{key:1,item:p},null,8,["item"]))]))),128))])):createCommentVNode("",!0)}});var NavbarItems=_export_sfc$1(_sfc_main$f,[["__file","NavbarItems.vue"]]);const _hoisted_1$b=["title"],_hoisted_2$a={class:"icon",focusable:"false",viewBox:"0 0 32 32"},_hoisted_3$7=createStaticVNode('<path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path>',9),_hoisted_12$1=[_hoisted_3$7],_hoisted_13$1={class:"icon",focusable:"false",viewBox:"0 0 32 32"},_hoisted_14$1=createBaseVNode("path",{d:"M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z",fill:"currentColor"},null,-1),_hoisted_15$1=[_hoisted_14$1],_sfc_main$e=defineComponent({__name:"ToggleColorModeButton",setup(e){const t=useThemeLocaleData(),n=useDarkMode(),o=()=>{n.value=!n.value};return(a,r)=>(openBlock(),createElementBlock("button",{class:"toggle-color-mode-button",title:unref(t).toggleColorMode,onClick:o},[withDirectives((openBlock(),createElementBlock("svg",_hoisted_2$a,_hoisted_12$1,512)),[[vShow,!unref(n)]]),withDirectives((openBlock(),createElementBlock("svg",_hoisted_13$1,_hoisted_15$1,512)),[[vShow,unref(n)]])],8,_hoisted_1$b))}});var ToggleColorModeButton=_export_sfc$1(_sfc_main$e,[["__file","ToggleColorModeButton.vue"]]);const _hoisted_1$a=["title"],_hoisted_2$9=createBaseVNode("div",{class:"icon","aria-hidden":"true"},[createBaseVNode("span"),createBaseVNode("span"),createBaseVNode("span")],-1),_hoisted_3$6=[_hoisted_2$9],_sfc_main$d=defineComponent({__name:"ToggleSidebarButton",emits:["toggle"],setup(e){const t=useThemeLocaleData();return(n,o)=>(openBlock(),createElementBlock("div",{class:"toggle-sidebar-button",title:unref(t).toggleSidebar,"aria-expanded":"false",role:"button",tabindex:"0",onClick:o[0]||(o[0]=a=>n.$emit("toggle"))},_hoisted_3$6,8,_hoisted_1$a))}});var ToggleSidebarButton=_export_sfc$1(_sfc_main$d,[["__file","ToggleSidebarButton.vue"]]);const _sfc_main$c=defineComponent({__name:"Navbar",emits:["toggle-sidebar"],setup(e){const t=useThemeLocaleData(),n=ref(null),o=ref(null),a=ref(0),r=computed(()=>a.value?{maxWidth:a.value+"px"}:{});onMounted(()=>{const l=c(n.value,"paddingLeft")+c(n.value,"paddingRight"),s=()=>{var d;window.innerWidth<=719?a.value=0:a.value=n.value.offsetWidth-l-(((d=o.value)==null?void 0:d.offsetWidth)||0)};s(),window.addEventListener("resize",s,!1),window.addEventListener("orientationchange",s,!1)});function c(i,l){var p,u,_;const s=(_=(u=(p=i==null?void 0:i.ownerDocument)==null?void 0:p.defaultView)==null?void 0:u.getComputedStyle(i,null))==null?void 0:_[l],d=Number.parseInt(s,10);return Number.isNaN(d)?0:d}return(i,l)=>{const s=resolveComponent("NavbarSearch");return openBlock(),createElementBlock("header",{ref_key:"navbar",ref:n,class:"navbar"},[createVNode(ToggleSidebarButton,{onToggle:l[0]||(l[0]=d=>i.$emit("toggle-sidebar"))}),createBaseVNode("span",{ref_key:"navbarBrand",ref:o},[createVNode(NavbarBrand)],512),createBaseVNode("div",{class:"navbar-items-wrapper",style:normalizeStyle(r.value)},[renderSlot(i.$slots,"before"),createVNode(NavbarItems,{class:"can-hide"}),renderSlot(i.$slots,"after"),unref(t).colorModeSwitch?(openBlock(),createBlock(ToggleColorModeButton,{key:0})):createCommentVNode("",!0),createVNode(s)],4)],512)}}});var Navbar=_export_sfc$1(_sfc_main$c,[["__file","Navbar.vue"]]);const _hoisted_1$9={class:"page-meta"},_hoisted_2$8={key:0,class:"meta-item edit-link"},_hoisted_3$5={key:1,class:"meta-item last-updated"},_hoisted_4$5={class:"meta-item-label"},_hoisted_5$4={class:"meta-item-info"},_hoisted_6$3={key:2,class:"meta-item contributors"},_hoisted_7$2={class:"meta-item-label"},_hoisted_8$2={class:"meta-item-info"},_hoisted_9$2=["title"],_sfc_main$b=defineComponent({__name:"PageMeta",setup(e){const t=()=>{const l=useThemeLocaleData(),s=usePageData(),d=usePageFrontmatter();return computed(()=>{var B,C,E;if(!((C=(B=d.value.editLink)!=null?B:l.value.editLink)!=null?C:!0))return null;const{repo:u,docsRepo:_=u,docsBranch:k="main",docsDir:f="",editLinkText:m}=l.value;if(!_)return null;const y=resolveEditLink({docsRepo:_,docsBranch:k,docsDir:f,filePathRelative:s.value.filePathRelative,editLinkPattern:(E=d.value.editLinkPattern)!=null?E:l.value.editLinkPattern});return y?{text:m!=null?m:"Edit this page",link:y}:null})},n=()=>{const l=useThemeLocaleData(),s=usePageData(),d=usePageFrontmatter();return computed(()=>{var _,k,f,m;return!((k=(_=d.value.lastUpdated)!=null?_:l.value.lastUpdated)!=null?k:!0)||!((f=s.value.git)!=null&&f.updatedTime)?null:new Date((m=s.value.git)==null?void 0:m.updatedTime).toLocaleString()})},o=()=>{const l=useThemeLocaleData(),s=usePageData(),d=usePageFrontmatter();return computed(()=>{var u,_,k,f;return((_=(u=d.value.contributors)!=null?u:l.value.contributors)!=null?_:!0)&&(f=(k=s.value.git)==null?void 0:k.contributors)!=null?f:null})},a=useThemeLocaleData(),r=t(),c=n(),i=o();return(l,s)=>{const d=resolveComponent("ClientOnly");return openBlock(),createElementBlock("footer",_hoisted_1$9,[unref(r)?(openBlock(),createElementBlock("div",_hoisted_2$8,[createVNode(AutoLink,{class:"meta-item-label",item:unref(r)},null,8,["item"])])):createCommentVNode("",!0),unref(c)?(openBlock(),createElementBlock("div",_hoisted_3$5,[createBaseVNode("span",_hoisted_4$5,toDisplayString(unref(a).lastUpdatedText)+": ",1),createVNode(d,null,{default:withCtx(()=>[createBaseVNode("span",_hoisted_5$4,toDisplayString(unref(c)),1)]),_:1})])):createCommentVNode("",!0),unref(i)&&unref(i).length?(openBlock(),createElementBlock("div",_hoisted_6$3,[createBaseVNode("span",_hoisted_7$2,toDisplayString(unref(a).contributorsText)+": ",1),createBaseVNode("span",_hoisted_8$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(i),(p,u)=>(openBlock(),createElementBlock(Fragment,{key:u},[createBaseVNode("span",{class:"contributor",title:`email: ${p.email}`},toDisplayString(p.name),9,_hoisted_9$2),u!==unref(i).length-1?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(", ")],64)):createCommentVNode("",!0)],64))),128))])])):createCommentVNode("",!0)])}}});var PageMeta=_export_sfc$1(_sfc_main$b,[["__file","PageMeta.vue"]]);const _hoisted_1$8={key:0,class:"page-nav"},_hoisted_2$7={class:"inner"},_hoisted_3$4={key:0,class:"prev"},_hoisted_4$4={key:1,class:"next"},_sfc_main$a=defineComponent({__name:"PageNav",setup(e){const t=l=>l===!1?null:isString(l)?useNavLink(l):isPlainObject(l)?l:!1,n=(l,s,d)=>{const p=l.findIndex(u=>u.link===s);if(p!==-1){const u=l[p+d];return u!=null&&u.link?u:null}for(const u of l)if(u.children){const _=n(u.children,s,d);if(_)return _}return null},o=usePageFrontmatter(),a=useSidebarItems(),r=useRoute(),c=computed(()=>{const l=t(o.value.prev);return l!==!1?l:n(a.value,r.path,-1)}),i=computed(()=>{const l=t(o.value.next);return l!==!1?l:n(a.value,r.path,1)});return(l,s)=>c.value||i.value?(openBlock(),createElementBlock("nav",_hoisted_1$8,[createBaseVNode("p",_hoisted_2$7,[c.value?(openBlock(),createElementBlock("span",_hoisted_3$4,[createVNode(AutoLink,{item:c.value},null,8,["item"])])):createCommentVNode("",!0),i.value?(openBlock(),createElementBlock("span",_hoisted_4$4,[createVNode(AutoLink,{item:i.value},null,8,["item"])])):createCommentVNode("",!0)])])):createCommentVNode("",!0)}});var PageNav=_export_sfc$1(_sfc_main$a,[["__file","PageNav.vue"]]);const _hoisted_1$7={class:"page"},_hoisted_2$6={class:"theme-default-content"},_sfc_main$9=defineComponent({__name:"Page",setup(e){return(t,n)=>{const o=resolveComponent("Content");return openBlock(),createElementBlock("main",_hoisted_1$7,[renderSlot(t.$slots,"top"),createBaseVNode("div",_hoisted_2$6,[renderSlot(t.$slots,"content-top"),createVNode(o),renderSlot(t.$slots,"content-bottom")]),createVNode(PageMeta),createVNode(PageNav),renderSlot(t.$slots,"bottom")])}}});var Page=_export_sfc$1(_sfc_main$9,[["__file","Page.vue"]]);const _hoisted_1$6=["onKeydown"],_hoisted_2$5={class:"sidebar-item-children"},_sfc_main$8=defineComponent({__name:"SidebarItem",props:{item:{type:Object,required:!0},depth:{type:Number,required:!1,default:0}},setup(e){const t=e,{item:n,depth:o}=toRefs(t),a=useRoute(),r=useRouter(),c=computed(()=>isActiveSidebarItem(n.value,a)),i=computed(()=>({"sidebar-item":!0,"sidebar-heading":o.value===0,active:c.value,collapsible:n.value.collapsible})),[l,s]=useToggle(c.value),d=u=>{n.value.collapsible&&(u.preventDefault(),s())},p=r.afterEach(u=>{nextTick(()=>{l.value=n.value.collapsible?c.value:!0})});return onBeforeUnmount(()=>{p()}),(u,_)=>{var f;const k=resolveComponent("SidebarItem",!0);return openBlock(),createElementBlock("li",null,[unref(n).link?(openBlock(),createBlock(AutoLink,{key:0,class:normalizeClass(i.value),item:unref(n)},null,8,["class","item"])):(openBlock(),createElementBlock("p",{key:1,tabindex:"0",class:normalizeClass(i.value),onClick:d,onKeydown:withKeys(d,["enter"])},[createTextVNode(toDisplayString(unref(n).text)+" ",1),unref(n).collapsible?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(["arrow",unref(l)?"down":"right"])},null,2)):createCommentVNode("",!0)],42,_hoisted_1$6)),(f=unref(n).children)!=null&&f.length?(openBlock(),createBlock(DropdownTransition,{key:2},{default:withCtx(()=>[withDirectives(createBaseVNode("ul",_hoisted_2$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(n).children,m=>(openBlock(),createBlock(k,{key:`${unref(o)}${m.text}${m.link}`,item:m,depth:unref(o)+1},null,8,["item","depth"]))),128))],512),[[vShow,unref(l)]])]),_:1})):createCommentVNode("",!0)])}}});var SidebarItem=_export_sfc$1(_sfc_main$8,[["__file","SidebarItem.vue"]]);const _hoisted_1$5={key:0,class:"sidebar-items"},_sfc_main$7=defineComponent({__name:"SidebarItems",setup(e){const t=useRoute(),n=useSidebarItems();return onMounted(()=>{watch(()=>t.hash,o=>{const a=document.querySelector(".sidebar");if(!a)return;const r=document.querySelector(`.sidebar a.sidebar-item[href="${t.path}${o}"]`);if(!r)return;const{top:c,height:i}=a.getBoundingClientRect(),{top:l,height:s}=r.getBoundingClientRect();l<c?r.scrollIntoView(!0):l+s>c+i&&r.scrollIntoView(!1)})}),(o,a)=>unref(n).length?(openBlock(),createElementBlock("ul",_hoisted_1$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(n),r=>(openBlock(),createBlock(SidebarItem,{key:`${r.text}${r.link}`,item:r},null,8,["item"]))),128))])):createCommentVNode("",!0)}});var SidebarItems=_export_sfc$1(_sfc_main$7,[["__file","SidebarItems.vue"]]),sidebar_vue_vue_type_style_index_0_scoped_true_lang="";const _withScopeId=e=>(pushScopeId("data-v-6550c740"),e=e(),popScopeId(),e),_hoisted_1$4={class:"sidebar"},_hoisted_2$4={class:"sidebar-container"},_hoisted_3$3={class:"sidebar-bottom"},_hoisted_4$3=_withScopeId(()=>createBaseVNode("li",{class:"sidebar-item sidebar-heading appearance"},[createTextVNode(" Github "),createBaseVNode("a",{class:"icon",href:"https://github.com/hanamizuki-ai",target:"_blank","aria-label":"GitHub"},[createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24"},[createBaseVNode("path",{d:"M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476c0-.237-.013-1.024-.013-1.862c-2.512.463-3.162-.612-3.362-1.175c-.113-.288-.6-1.175-1.025-1.413c-.35-.187-.85-.65-.013-.662c.788-.013 1.35.725 1.538 1.025c.9 1.512 2.338 1.087 2.912.825c.088-.65.35-1.087.638-1.337c-2.225-.25-4.55-1.113-4.55-4.938c0-1.088.387-1.987 1.025-2.688c-.1-.25-.45-1.275.1-2.65c0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337c1.912-1.3 2.75-1.024 2.75-1.024c.55 1.375.2 2.4.1 2.65c.637.7 1.025 1.587 1.025 2.687c0 3.838-2.337 4.688-4.562 4.938c.362.312.675.912.675 1.85c0 1.337-.013 2.412-.013 2.75c0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z",fill:"currentColor"})])])],-1)),_hoisted_5$3={class:"sidebar-item sidebar-heading appearance"},_sfc_main$6=defineComponent({__name:"sidebar",setup(e){return(t,n)=>{const o=resolveComponent("el-scrollbar");return openBlock(),createElementBlock("aside",_hoisted_1$4,[createVNode(o,null,{default:withCtx(()=>[createBaseVNode("div",_hoisted_2$4,[createVNode(NavbarItems),createVNode(SidebarItems),createBaseVNode("ul",_hoisted_3$3,[_hoisted_4$3,createBaseVNode("li",_hoisted_5$3,[createTextVNode(" \u706F\u6CE1 "),createVNode(ToggleColorModeButton)])])])]),_:1})])}}});var Sidebar=_export_sfc$1(_sfc_main$6,[["__scopeId","data-v-6550c740"],["__file","sidebar.vue"]]);const _sfc_main$5=defineComponent({__name:"Layout",setup(e){const t=usePageData(),n=usePageFrontmatter(),o=useThemeLocaleData(),a=computed(()=>n.value.navbar!==!1&&o.value.navbar!==!1),r=useSidebarItems(),c=ref(!1),i=m=>{c.value=typeof m=="boolean"?m:!c.value},l={x:0,y:0},s=m=>{l.x=m.changedTouches[0].clientX,l.y=m.changedTouches[0].clientY},d=m=>{const y=m.changedTouches[0].clientX-l.x,B=m.changedTouches[0].clientY-l.y;Math.abs(y)>Math.abs(B)&&Math.abs(y)>40&&(y>0&&l.x<=80?i(!0):i(!1))},p=computed(()=>[{"no-navbar":!a.value,"no-sidebar":!r.value.length,"sidebar-open":c.value},n.value.pageClass]);let u;onMounted(()=>{u=useRouter().afterEach(()=>{i(!1)})}),onUnmounted(()=>{u()});const _=useScrollPromise(),k=_.resolve,f=_.pending;return(m,y)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["theme-container",p.value]),onTouchstart:s,onTouchend:d},[renderSlot(m.$slots,"navbar",{},()=>[a.value?(openBlock(),createBlock(Navbar,{key:0,onToggleSidebar:i},{before:withCtx(()=>[renderSlot(m.$slots,"navbar-before")]),after:withCtx(()=>[renderSlot(m.$slots,"navbar-after")]),_:3})):createCommentVNode("",!0)]),createBaseVNode("div",{class:"sidebar-mask",onClick:y[0]||(y[0]=B=>i(!1))}),renderSlot(m.$slots,"sidebar",{},()=>[createVNode(Sidebar,null,{top:withCtx(()=>[renderSlot(m.$slots,"sidebar-top")]),bottom:withCtx(()=>[renderSlot(m.$slots,"sidebar-bottom")]),_:3})]),renderSlot(m.$slots,"page",{},()=>[unref(n).home?(openBlock(),createBlock(Home,{key:0})):(openBlock(),createBlock(Transition,{key:1,name:"fade-slide-y",mode:"out-in",onBeforeEnter:unref(k),onBeforeLeave:unref(f)},{default:withCtx(()=>[(openBlock(),createBlock(Page,{key:unref(t).path},{top:withCtx(()=>[renderSlot(m.$slots,"page-top")]),"content-top":withCtx(()=>[renderSlot(m.$slots,"page-content-top")]),"content-bottom":withCtx(()=>[renderSlot(m.$slots,"page-content-bottom")]),bottom:withCtx(()=>[renderSlot(m.$slots,"page-bottom")]),_:3}))]),_:3},8,["onBeforeEnter","onBeforeLeave"]))])],34))}});var ParentLayout=_export_sfc$1(_sfc_main$5,[["__file","Layout.vue"]]);const _hoisted_1$3={key:0,style:{color:"var(--shiki-token-constant)"}},_hoisted_2$3={key:1,style:{color:"var(--shiki-token-string)"}},_hoisted_3$2={key:2,style:{color:"var(--shiki-token-constant)"}},_hoisted_4$2={key:3,style:{color:"var(--shiki-token-constant)"}},_hoisted_5$2=createBaseVNode("span",{style:{color:"var(--shiki-token-function)"}},"Date",-1),_hoisted_6$2=createBaseVNode("span",{style:{color:"var(--shiki-token-punctuation)"}},"(",-1),_hoisted_7$1={style:{color:"var(--shiki-token-string)"}},_hoisted_8$1=createBaseVNode("span",{style:{color:"var(--shiki-token-punctuation)"}},")",-1),_hoisted_9$1=createBaseVNode("span",{style:{color:"var(--shiki-token-punctuation)"}},"[ ",-1),_hoisted_10$1={key:0,style:{color:"var(--shiki-token-punctuation)"}},_hoisted_11=createBaseVNode("span",{style:{color:"var(--shiki-token-punctuation)"}}," ]",-1),_hoisted_12=createBaseVNode("span",{style:{color:"var(--shiki-token-punctuation)"}},"{ ",-1),_hoisted_13={key:0,style:{color:"var(--shiki-token-punctuation)"}},_hoisted_14={style:{color:"var(--shiki-token-parameter)"}},_hoisted_15=createBaseVNode("span",{style:{color:"var(--shiki-token-punctuation)"}}," }",-1),_sfc_main$4=defineComponent({__name:"json",props:{data:{}},setup(e){function t(n){return n.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}return(n,o)=>{const a=resolveComponent("json",!0);return unref(isNullable)(e.data)?(openBlock(),createElementBlock("span",_hoisted_1$3,"null")):typeof e.data=="string"?(openBlock(),createElementBlock("span",_hoisted_2$3,'"'+toDisplayString(t(e.data))+'"',1)):typeof e.data=="number"?(openBlock(),createElementBlock("span",_hoisted_3$2,toDisplayString(e.data),1)):typeof e.data=="boolean"?(openBlock(),createElementBlock("span",_hoisted_4$2,toDisplayString(e.data),1)):e.data instanceof Date?(openBlock(),createElementBlock(Fragment,{key:4},[_hoisted_5$2,_hoisted_6$2,createBaseVNode("span",_hoisted_7$1,toDisplayString(e.data.toISOString()),1),_hoisted_8$1],64)):e.data instanceof Array?(openBlock(),createElementBlock(Fragment,{key:5},[_hoisted_9$1,(openBlock(!0),createElementBlock(Fragment,null,renderList(e.data,(r,c)=>(openBlock(),createElementBlock(Fragment,{key:c},[c?(openBlock(),createElementBlock("span",_hoisted_10$1,", ")):createCommentVNode("",!0),createVNode(a,{data:r},null,8,["data"])],64))),128)),_hoisted_11],64)):(openBlock(),createElementBlock(Fragment,{key:6},[_hoisted_12,(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.entries(e.data),([r,c],i)=>(openBlock(),createElementBlock(Fragment,{key:i},[i?(openBlock(),createElementBlock("span",_hoisted_13,", ")):createCommentVNode("",!0),createBaseVNode("span",_hoisted_14,'"'+toDisplayString(r)+'"',1),createTextVNode(": "),createVNode(a,{data:c},null,8,["data"])],64))),128)),_hoisted_15],64))}}});var Json=_export_sfc$1(_sfc_main$4,[["__file","json.vue"]]);const BasicLoraParams={pretrained_model_name_or_path:"./sd-models/model.ckpt",v2:!1,train_data_dir:"./train/aki",resolution:"512,512",enable_bucket:!0,min_bucket_reso:256,max_bucket_reso:1024,output_name:"aki",output_dir:"./output",save_model_as:"safetensors",save_every_n_epochs:2,max_train_epochs:10,train_batch_size:1,network_train_unet_only:!1,network_train_text_encoder_only:!1,learning_rate:1e-4,unet_lr:1e-4,text_encoder_lr:1e-5,lr_scheduler:"cosine_with_restarts",optimizer_type:"AdamW8bit",lr_scheduler_num_cycles:1,network_module:"networks.lora",network_dim:32,network_alpha:32,log_with:"tensorboard",logging_dir:"./logs",caption_extension:".txt",shuffle_caption:!0,weighted_captions:!1,keep_tokens:0,max_token_length:255,seed:1337,prior_loss_weight:1,clip_skip:2,gradient_checkpointing:!1,mixed_precision:"fp16",save_precision:"fp16",xformers:!0,lowram:!1,cache_latents:!0,cache_latents_to_disk:!1,persistent_data_loader_workers:!0};function stringify(e){if(e===null)throw typeError("null");if(e===void 0)throw typeError("undefined");if(typeof e!="object")throw typeError(typeof e);if(typeof e.toJSON=="function"&&(e=e.toJSON()),e==null)return null;const t=tomlType(e);if(t!=="table")throw typeError(t);return stringifyObject("","",e)}function typeError(e){return new Error("Can only stringify objects, not "+e)}function arrayOneTypeError(){return new Error("Array values can't have mixed types")}function getInlineKeys(e){return Object.keys(e).filter(t=>isInline(e[t]))}function getComplexKeys(e){return Object.keys(e).filter(t=>!isInline(e[t]))}function toJSON(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:void 0}:{};for(let n of Object.keys(e))e[n]&&typeof e[n].toJSON=="function"&&!("toISOString"in e[n])?t[n]=e[n].toJSON():t[n]=e[n];return t}function stringifyObject(e,t,n){n=toJSON(n);var o,a;o=getInlineKeys(n),a=getComplexKeys(n);var r=[],c=t||"";o.forEach(l=>{var s=tomlType(n[l]);s!=="undefined"&&s!=="null"&&r.push(c+stringifyKey(l)+" = "+stringifyAnyInline(n[l],!0))}),r.length>0&&r.push("");var i=e&&o.length>0?t+" ":"";return a.forEach(l=>{r.push(stringifyComplex(e,i,l,n[l]))}),r.join(`
|
2 |
+
`)}function isInline(e){switch(tomlType(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return e.length===0||tomlType(e[0])!=="table";case"table":return Object.keys(e).length===0;default:return!1}}function tomlType(e){return e===void 0?"undefined":e===null?"null":typeof e=="bigint"||Number.isInteger(e)&&!Object.is(e,-0)?"integer":typeof e=="number"?"float":typeof e=="boolean"?"boolean":typeof e=="string"?"string":"toISOString"in e?isNaN(e)?"undefined":"datetime":Array.isArray(e)?"array":"table"}function stringifyKey(e){var t=String(e);return/^[-A-Za-z0-9_]+$/.test(t)?t:stringifyBasicString(t)}function stringifyBasicString(e){return'"'+escapeString(e).replace(/"/g,'\\"')+'"'}function stringifyLiteralString(e){return"'"+e+"'"}function numpad(e,t){for(;t.length<e;)t="0"+t;return t}function escapeString(e){return e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,t=>"\\u"+numpad(4,t.codePointAt(0).toString(16)))}function stringifyMultilineString(e){let t=e.split(/\n/).map(n=>escapeString(n).replace(/"(?="")/g,'\\"')).join(`
|
3 |
+
`);return t.slice(-1)==='"'&&(t+=`\\
|
4 |
+
`),`"""
|
5 |
+
`+t+'"""'}function stringifyAnyInline(e,t){let n=tomlType(e);return n==="string"&&(t&&/\n/.test(e)?n="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(n="string-literal")),stringifyInline(e,n)}function stringifyInline(e,t){switch(t||(t=tomlType(e)),t){case"string-multiline":return stringifyMultilineString(e);case"string":return stringifyBasicString(e);case"string-literal":return stringifyLiteralString(e);case"integer":return stringifyInteger(e);case"float":return stringifyFloat(e);case"boolean":return stringifyBoolean(e);case"datetime":return stringifyDatetime(e);case"array":return stringifyInlineArray(e.filter(n=>tomlType(n)!=="null"&&tomlType(n)!=="undefined"&&tomlType(n)!=="nan"));case"table":return stringifyInlineTable(e);default:throw typeError(t)}}function stringifyInteger(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function stringifyFloat(e){if(e===1/0)return"inf";if(e===-1/0)return"-inf";if(Object.is(e,NaN))return"nan";if(Object.is(e,-0))return"-0.0";var t=String(e).split("."),n=t[0],o=t[1]||0;return stringifyInteger(n)+"."+o}function stringifyBoolean(e){return String(e)}function stringifyDatetime(e){return e.toISOString()}function isNumber(e){return e==="float"||e==="integer"}function arrayType(e){var t=tomlType(e[0]);return e.every(n=>tomlType(n)===t)?t:e.every(n=>isNumber(tomlType(n)))?"float":"mixed"}function validateArray(e){const t=arrayType(e);if(t==="mixed")throw arrayOneTypeError();return t}function stringifyInlineArray(e){e=toJSON(e);const t=validateArray(e);var n="[",o=e.map(a=>stringifyInline(a,t));return o.join(", ").length>60||/\n/.test(o)?n+=`
|
6 |
+
`+o.join(`,
|
7 |
+
`)+`
|
8 |
+
`:n+=" "+o.join(", ")+(o.length>0?" ":""),n+"]"}function stringifyInlineTable(e){e=toJSON(e);var t=[];return Object.keys(e).forEach(n=>{t.push(stringifyKey(n)+" = "+stringifyAnyInline(e[n],!1))}),"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}function stringifyComplex(e,t,n,o){var a=tomlType(o);if(a==="array")return stringifyArrayOfTables(e,t,n,o);if(a==="table")return stringifyComplexTable(e,t,n,o);throw typeError(a)}function stringifyArrayOfTables(e,t,n,o){o=toJSON(o),validateArray(o);var a=tomlType(o[0]);if(a!=="table")throw typeError(a);var r=e+stringifyKey(n),c="";return o.forEach(i=>{c.length>0&&(c+=`
|
9 |
+
`),c+=t+"[["+r+`]]
|
10 |
+
`,c+=stringifyObject(r+".",t,i)}),c}function stringifyComplexTable(e,t,n,o){var a=e+stringifyKey(n),r="";return getInlineKeys(o).length>0&&(r+=t+"["+a+`]
|
11 |
+
`),r+stringifyObject(a+".",t,o)}var example_vue_vue_type_style_index_0_lang="";const _hoisted_1$2={class:"example-container"},_hoisted_2$2={class:"my-header"},_hoisted_3$1=["id"],_hoisted_4$1={class:"schema-container"},_hoisted_5$1={class:"right-container"},_hoisted_6$1={class:"theme-default-content"},_hoisted_7=createBaseVNode("header",null,"\u53C2\u6570\u9884\u89C8",-1),_hoisted_8={class:"params-section"},_hoisted_9={id:"test-output"},_hoisted_10=createBaseVNode("header",null,"Output",-1),_sfc_main$3=defineComponent({__name:"example",setup(__props){const frontmatter=usePageFrontmatter(),schema=computed(()=>eval(frontmatter.value.code)),initial=ref(null),config=ref(null),savedConfigs=ref(null),dialogTableVisible=ref(!1);onMounted(()=>{loadConfigs()});const output=computed(()=>{try{return schema.value(config.value)}catch(e){console.log(e)}}),tomlOutput=computed(()=>{try{return toml()}catch(e){console.log(e)}}),loadConfigs=()=>{const e=localStorage.getItem(`configs-${frontmatter.value.trainType}`);e?savedConfigs.value=JSON.parse(e):savedConfigs.value=[]},saveConfigs=()=>{localStorage.setItem(`configs-${frontmatter.value.trainType}`,JSON.stringify(savedConfigs.value))},saveToBrowser=()=>{savedConfigs.value.push({time:new Date().toLocaleString(),value:clone(config.value)}),saveConfigs(),ElMessage.success("\u5DF2\u5C06\u4FEE\u6539\u4FDD\u5B58\u81F3\u6D4F\u89C8\u5668")},readFromBrowser=()=>{dialogTableVisible.value=!0},toml=()=>{let e=config.value;return stringify(parseParams(schema.value(e)))},runTrain=()=>{const e=parseParams(schema.value(config.value));e.optimizer_type=="DAdaptation"&&ElMessage.warning({message:"DAdaptation \u8BAD\u7EC3\u65F6\uFF0C\u6240\u6709\u5B66\u4E60\u7387\u5C06\u88AB\u8BBE\u7F6E\u4E3A 1\u3002\u5E76\u4E14\u5B66\u4E60\u7387\u8C03\u5EA6\u5668\u5C06\u88AB\u8BBE\u7F6E\u4E3A constant\u3002",duration:5e3}),fetch("/api/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>{if(!t.ok)throw new Error("Network response was not ok");return t.json()}).then(t=>{console.log(t),t.status=="success"?ElMessage.success("\u8BAD\u7EC3\u4EFB\u52A1\u5DF2\u63D0\u4EA4"):ElMessage.error("\u8BAD\u7EC3\u4EFB\u52A1\u63D0\u4EA4\u5931\u8D25")}).catch(t=>{ElMessage.error("\u65E0\u6CD5\u8FDE\u63A5\u5230\u8BAD\u7EC3\u7AEF\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u5F00\u542F\u8BAD\u7EC3\u7AEF\u3002\u82E5\u60A8\u76F4\u63A5\u4F7F\u7528\u5728\u7EBF\u7248\u53C2\u6570\u751F\u6210\u5668\uFF0C\u5E76\u4E0D\u652F\u6301\u76F4\u63A5\u5F00\u59CB\u8BAD\u7EC3\u3002"),console.error("There was a problem with the fetch operation:",t)})},parseParams=e=>{const t=["learning_rate","unet_lr","text_encoder_lr"],n=["lycoris_algo","conv_dim","conv_alpha","dropout","dylora_unit","down_lr_weight","mid_lr_weight","up_lr_weight","block_lr_zero_threshold","enable_block_weights","enable_preview"],o=()=>{e.network_args||(e.network_args=[])};if(frontmatter.value.trainType=="lora-basic"){let a=e;e=clone(BasicLoraParams),e=Object.assign(e,a)}e.network_module=="lycoris.kohya"?(o(),e.network_args=[...e.network_args,"conv_dim="+e.conv_dim,"conv_alpha="+e.conv_alpha,"dropout="+e.dropout,"algo="+e.lycoris_algo]):e.network_module=="networks.dylora"&&(o(),e.network_args=[...e.network_args,"unit="+e.dylora_unit]),e.optimizer_type=="DAdaptation"&&(e.lr_scheduler="constant",e.optimizer_args=["decouple=True"],e.learning_rate=1,e.unet_lr=1,e.text_encoder_lr=1),e.enable_block_weights&&(o(),e.network_args=[...e.network_args,"down_lr_weight="+e.down_lr_weight,"mid_lr_weight="+e.mid_lr_weight,"up_lr_weight="+e.up_lr_weight,"block_lr_zero_threshold="+e.block_lr_zero_threshold],delete e.block_lr_zero_threshold);for(const a of n)e.hasOwnProperty(a)&&delete e[a];for(const a of t){const r=parseFloat(e[a]);Number.isNaN(r)?e[a]=0:e[a]=r}return["pretrained_model_name_or_path","train_data_dir","reg_data_dir","output_dir","network_weights"].forEach(a=>{e.hasOwnProperty(a)&&(e[a]=e[a].replaceAll("\\","/"))}),e},reset=()=>{config.value=null},downloadTomlFile=()=>{const e=toml(),n=`${new Date().getTime()}.toml`,o=new Blob([e],{type:"text/plain;charset=utf-8"}),a=URL.createObjectURL(o),r=document.createElement("a");r.href=a,r.download=n,r.click(),URL.revokeObjectURL(a)},handleApply=(e,t)=>{config.value=clone(t.value),dialogTableVisible.value=!1,ElMessage.success("\u5DF2\u5C06\u5386\u53F2\u53C2\u6570\u5E94\u7528\u81F3\u5F53\u524D\u53C2\u6570")},handlePreview=(e,t)=>{const n=stringify(parseParams(schema.value(clone(t.value))));ElMessageBox.alert(n,"\u9884\u89C8",{confirmButtonText:"\u786E\u5B9A",customStyle:{whiteSpace:"pre-line"}})},handleDelete=(e,t)=>{ElMessageBox.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u53C2\u6570\u914D\u7F6E, \u662F\u5426\u7EE7\u7EED?","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{savedConfigs.value.splice(e,1),saveConfigs(),ElMessage.success("\u5220\u9664\u6210\u529F")}).catch(()=>{ElMessage.info("\u5DF2\u53D6\u6D88\u5220\u9664")})},handleSetName=(e,t)=>{ElMessageBox.prompt("\u8BF7\u8F93\u5165\u540D\u79F0","\u91CD\u547D\u540D",{confirmButtonText:"\u786E\u8BA4",cancelButtonText:"\u53D6\u6D88"}).then(({value:n})=>{t.name=n,saveConfigs(),ElMessage.success("\u91CD\u547D\u540D\u6210\u529F")}).catch(()=>{ElMessage.info("\u53D6\u6D88\u91CD\u547D\u540D")})};return(e,t)=>{const n=resolveComponent("el-table-column"),o=resolveComponent("el-button"),a=resolveComponent("el-table"),r=resolveComponent("el-dialog"),c=resolveComponent("k-schema"),i=resolveComponent("el-scrollbar"),l=resolveComponent("content"),s=resolveComponent("el-col"),d=resolveComponent("el-row");return openBlock(),createElementBlock("div",_hoisted_1$2,[createVNode(unref(ClientOnly),null,{default:withCtx(()=>[createVNode(r,{modelValue:dialogTableVisible.value,"onUpdate:modelValue":t[0]||(t[0]=p=>dialogTableVisible.value=p),"append-to-body":!0},{header:withCtx(({close:p,titleId:u,titleClass:_})=>[createBaseVNode("div",_hoisted_2$2,[createBaseVNode("h5",{id:u,class:normalizeClass(_),style:{margin:"0"}},"\u5386\u53F2\u53C2\u6570",10,_hoisted_3$1)])]),default:withCtx(()=>[createVNode(a,{data:savedConfigs.value,style:{width:"100%"}},{default:withCtx(()=>[createVNode(n,{label:"\u65E5\u671F",property:"time",width:"180"}),createVNode(n,{label:"\u540D\u79F0",property:"name",width:"180"}),createVNode(n,{align:"right"},{default:withCtx(p=>[createVNode(o,{size:"small",onClick:u=>handleApply(p.$index,p.row)},{default:withCtx(()=>[createTextVNode("\u4F7F\u7528")]),_:2},1032,["onClick"]),createVNode(o,{size:"small",onClick:u=>handlePreview(p.$index,p.row)},{default:withCtx(()=>[createTextVNode("\u9884\u89C8")]),_:2},1032,["onClick"]),createVNode(o,{size:"small",onClick:u=>handleSetName(p.$index,p.row)},{default:withCtx(()=>[createTextVNode("\u8BBE\u7F6E\u540D\u79F0")]),_:2},1032,["onClick"]),createVNode(o,{size:"small",type:"danger",onClick:u=>handleDelete(p.$index,p.row)},{default:withCtx(()=>[createTextVNode("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue"])]),_:1}),createBaseVNode("section",_hoisted_4$1,[createVNode(i,null,{default:withCtx(()=>[createBaseVNode("form",null,[createVNode(c,{modelValue:config.value,"onUpdate:modelValue":t[1]||(t[1]=p=>config.value=p),initial:initial.value,schema:schema.value},null,8,["modelValue","initial","schema"])])]),_:1})]),createBaseVNode("div",_hoisted_5$1,[createBaseVNode("section",_hoisted_6$1,[createVNode(i,null,{default:withCtx(()=>[createBaseVNode("main",null,[createVNode(l)])]),_:1})]),createBaseVNode("section",null,[_hoisted_7,createBaseVNode("main",_hoisted_8,[createBaseVNode("code",null,[createVNode(i,{"max-height":"600px"},{default:withCtx(()=>[createTextVNode(toDisplayString(tomlOutput.value),1)]),_:1})])])]),createVNode(o,{style:{margin:"0 20px"},onClick:downloadTomlFile},{default:withCtx(()=>[createTextVNode("\u4E0B\u8F7D\u914D\u7F6E\u6587\u4EF6")]),_:1}),createVNode(o,{style:{margin:"10px 20px 0 20px"},onClick:runTrain},{default:withCtx(()=>[createTextVNode("\u76F4\u63A5\u5F00\u59CB\u8BAD\u7EC3")]),_:1}),createVNode(d,{gutter:10,style:{margin:"10px 20px 10px 20px"}},{default:withCtx(()=>[createVNode(s,{span:8,style:{"padding-left":"0"}},{default:withCtx(()=>[createVNode(o,{class:"max-btn",onClick:reset},{default:withCtx(()=>[createTextVNode("\u5168\u90E8\u91CD\u7F6E")]),_:1})]),_:1}),createVNode(s,{span:8},{default:withCtx(()=>[createVNode(o,{class:"max-btn",onClick:saveToBrowser},{default:withCtx(()=>[createTextVNode("\u4FDD\u5B58")]),_:1})]),_:1}),createVNode(s,{span:8,style:{"padding-right":"0"}},{default:withCtx(()=>[createVNode(o,{class:"max-btn",onClick:readFromBrowser},{default:withCtx(()=>[createTextVNode("\u8BFB\u53D6\u53C2\u6570")]),_:1})]),_:1})]),_:1}),createBaseVNode("section",_hoisted_9,[_hoisted_10,createBaseVNode("main",null,[createBaseVNode("code",null,[createVNode(Json,{data:output.value},null,8,["data"])])])])])])}}});var ExamplePage=_export_sfc$1(_sfc_main$3,[["__file","example.vue"]]),iframe_vue_vue_type_style_index_0_lang="";const _hoisted_1$1={class:"iframe-container"},_hoisted_2$1=["src"],_sfc_main$2=defineComponent({__name:"iframe",props:{iframeUrl:{type:String,default:"http://127.0.0.1:6006"}},setup(e){return(t,n)=>(openBlock(),createElementBlock("div",_hoisted_1$1,[createBaseVNode("iframe",{class:"iframe-main",src:e.iframeUrl,width:"100%"},null,8,_hoisted_2$1)]))}});var IframePage=_export_sfc$1(_sfc_main$2,[["__file","iframe.vue"]]),tagger_vue_vue_type_style_index_0_lang="";const _hoisted_1={class:"example-container"},_hoisted_2={class:"schema-container"},_hoisted_3={class:"right-container"},_hoisted_4={class:"theme-default-content"},_hoisted_5={id:"test-output"},_hoisted_6=createBaseVNode("header",null,"Output",-1),_sfc_main$1=defineComponent({__name:"tagger",setup(__props){const frontmatter=usePageFrontmatter(),schema=computed(()=>eval(frontmatter.value.code)),initial=ref(null),config=ref(null),output=computed(()=>{try{return schema.value(config.value)}catch(e){console.log(e)}}),runTrain=()=>{const e=schema.value(config.value);e.path=e.path.replaceAll("\\","/"),fetch("/api/interrogate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(t=>{if(!t.ok)throw new Error("Network response was not ok");return t.json()}).then(t=>{console.log(t),t.status=="success"?ElMessage.success("Tagger \u4EFB\u52A1\u5DF2\u63D0\u4EA4"):ElMessage.error("Tagger \u4EFB\u52A1\u63D0\u4EA4\u5931\u8D25")}).catch(t=>{ElMessage.error("\u65E0\u6CD5\u8FDE\u63A5\u5230\u540E\u7AEF"),console.error("There was a problem with the fetch operation:",t)})},reset=()=>{config.value=null};return(e,t)=>{const n=resolveComponent("k-schema"),o=resolveComponent("el-scrollbar"),a=resolveComponent("content"),r=resolveComponent("el-button"),c=resolveComponent("json");return openBlock(),createElementBlock("div",_hoisted_1,[createBaseVNode("section",_hoisted_2,[createVNode(o,null,{default:withCtx(()=>[createBaseVNode("form",null,[createVNode(n,{modelValue:config.value,"onUpdate:modelValue":t[0]||(t[0]=i=>config.value=i),initial:initial.value,schema:schema.value},null,8,["modelValue","initial","schema"])])]),_:1})]),createBaseVNode("div",_hoisted_3,[createBaseVNode("section",_hoisted_4,[createVNode(o,null,{default:withCtx(()=>[createBaseVNode("main",null,[createVNode(a)])]),_:1})]),createVNode(r,{style:{margin:"10px 20px 0 20px"},onClick:runTrain},{default:withCtx(()=>[createTextVNode("\u542F\u52A8")]),_:1}),createVNode(r,{style:{margin:"10px 20px 10px 20px"},onClick:reset},{default:withCtx(()=>[createTextVNode("\u5168\u90E8\u91CD\u7F6E")]),_:1}),createBaseVNode("section",_hoisted_5,[_hoisted_6,createBaseVNode("main",null,[createBaseVNode("code",null,[createVNode(c,{data:output.value},null,8,["data"])])])])])])}}});var TaggerPage=_export_sfc$1(_sfc_main$1,[["__file","tagger.vue"]]);const _sfc_main=defineComponent({__name:"layout",setup(e){const t=usePageData();return(n,o)=>(openBlock(),createBlock(ParentLayout,null,createSlots({_:2},[unref(t).frontmatter.example?{name:"page",fn:withCtx(()=>[(openBlock(),createBlock(ExamplePage,{key:unref(t).key}))]),key:"0"}:unref(t).frontmatter.type=="iframe"?{name:"page",fn:withCtx(()=>[(openBlock(),createBlock(IframePage,{key:unref(t).key,"iframe-url":unref(t).frontmatter.iframe},null,8,["iframe-url"]))]),key:"1"}:unref(t).frontmatter.type=="tagger"?{name:"page",fn:withCtx(()=>[(openBlock(),createBlock(TaggerPage,{key:unref(t).key}))]),key:"2"}:void 0]),1024))}});var layout=_export_sfc$1(_sfc_main,[["__file","layout.vue"]]);export{layout as default};
|
frontend/dist/assets/master.html.76757967.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
const e=JSON.parse(`{"key":"v-1bf725da","path":"/lora/master.html","title":"LoRA \u8BAD\u7EC3 \u4E13\u5BB6\u6A21\u5F0F","lang":"en-US","frontmatter":{"example":true,"trainType":"lora-master","code":"Schema.intersect([\\n Schema.intersect([\\n Schema.object({\\n pretrained_model_name_or_path: Schema.string().role('folder').default(\\"./sd-models/model.ckpt\\").description(\\"\u5E95\u6A21\u8DEF\u5F84\\"),\\n v2: Schema.boolean().default(false).description(\\"\u5E95\u6A21\u4E3A sd2.0 \u4EE5\u540E\u7684\u7248\u672C\u9700\u8981\u542F\u7528\\"),\\n }).description(\\"\u8BAD\u7EC3\u7528\u6A21\u578B\\"),\\n\\n Schema.union([\\n Schema.object({\\n v2: Schema.const(true).required(),\\n v_parameterization: Schema.boolean().default(false).description(\\"v-parameterization \u5B66\u4E60\\"),\\n }),\\n Schema.object({}),\\n ]),\\n ]),\\n\\n Schema.object({\\n train_data_dir: Schema.string().role('folder').default(\\"./train/aki\\").description(\\"\u8BAD\u7EC3\u6570\u636E\u96C6\u8DEF\u5F84\\"),\\n reg_data_dir: Schema.string().role('folder').description(\\"\u6B63\u5219\u5316\u6570\u636E\u96C6\u8DEF\u5F84\uFF0C\u9ED8\u8BA4\u4E0D\u4F7F\u7528\u6B63\u5219\u5316\u56FE\u50CF\\"),\\n resolution: Schema.string().default(\\"512,512\\").description(\\"\u8BAD\u7EC3\u56FE\u7247\u5206\u8FA8\u7387\uFF0C\u5BBDx\u9AD8\u3002\u652F\u6301\u975E\u6B63\u65B9\u5F62\uFF0C\u4F46\u5FC5\u987B\u662F 64 \u500D\u6570\u3002\\"),\\n enable_bucket: Schema.boolean().default(true).description(\\"\u542F\u7528 arb \u6876\u4EE5\u5141\u8BB8\u975E\u56FA\u5B9A\u5BBD\u9AD8\u6BD4\u7684\u56FE\u7247\\"),\\n min_bucket_reso: Schema.number().default(256).description(\\"arb \u6876\u6700\u5C0F\u5206\u8FA8\u7387\\"),\\n max_bucket_reso: Schema.number().default(1024).description(\\"arb \u6876\u6700\u5927\u5206\u8FA8\u7387\\"),\\n }).description(\\"\u6570\u636E\u96C6\u8BBE\u7F6E\\"),\\n\\n Schema.object({\\n output_name: Schema.string().default(\\"aki\\").description(\\"\u6A21\u578B\u4FDD\u5B58\u540D\u79F0\\"),\\n output_dir: Schema.string().default(\\"./output\\").description(\\"\u6A21\u578B\u4FDD\u5B58\u6587\u4EF6\u5939\\"),\\n save_model_as: Schema.union([\\"safetensors\\", \\"pt\\", \\"ckpt\\"]).default(\\"safetensors\\").description(\\"\u6A21\u578B\u4FDD\u5B58\u683C\u5F0F\\"),\\n save_every_n_epochs: Schema.number().default(2).description(\\"\u6BCF N epoch\uFF08\u8F6E\uFF09\u81EA\u52A8\u4FDD\u5B58\u4E00\u6B21\u6A21\u578B\\"),\\n }).description(\\"\u4FDD\u5B58\u8BBE\u7F6E\\"),\\n\\n Schema.object({\\n max_train_epochs: Schema.number().min(1).default(10).description(\\"\u6700\u5927\u8BAD\u7EC3 epoch\uFF08\u8F6E\u6570\uFF09\\"),\\n train_batch_size: Schema.number().min(1).default(1).description(\\"\u6279\u91CF\u5927\u5C0F\\"),\\n network_train_unet_only: Schema.boolean().default(false).description(\\"\u4EC5\u8BAD\u7EC3 U-Net\\"),\\n network_train_text_encoder_only: Schema.boolean().default(false).description(\\"\u4EC5\u8BAD\u7EC3\u6587\u672C\u7F16\u7801\u5668\\"),\\n }).description(\\"\u8BAD\u7EC3\u76F8\u5173\u53C2\u6570\\"),\\n\\n Schema.intersect([\\n Schema.object({\\n learning_rate: Schema.string()\\n .default(\\"1e-4\\")\\n .description(\\n \\"\u603B\u5B66\u4E60\u7387\uFF0C\u5728\u5206\u5F00\u8BBE\u7F6E U-Net \u4E0E\u6587\u672C\u7F16\u7801\u5668\u5B66\u4E60\u7387\u540E\u8FD9\u4E2A\u503C\u5931\u6548\u3002\\"\\n ),\\n unet_lr: Schema.string().default(\\"1e-4\\").description(\\"U-Net \u5B66\u4E60\u7387\\"),\\n text_encoder_lr: Schema.string().default(\\"1e-5\\").description(\\"\u6587\u672C\u7F16\u7801\u5668\u5B66\u4E60\u7387\\"),\\n lr_scheduler: Schema.union([\\n \\"linear\\",\\n \\"cosine\\",\\n \\"cosine_with_restarts\\",\\n \\"polynomial\\",\\n \\"constant\\",\\n \\"constant_with_warmup\\",\\n ]).default(\\"cosine_with_restarts\\").description(\\"\u5B66\u4E60\u7387\u8C03\u5EA6\u5668\u8BBE\u7F6E\\"),\\n optimizer_type: Schema.union([\\n \\"AdamW\\",\\n \\"AdamW8bit\\",\\n \\"Lion\\",\\n \\"SGDNesterov\\",\\n \\"SGDNesterov8bit\\",\\n \\"DAdaptation\\",\\n \\"AdaFactor\\",\\n ]).default(\\"AdamW8bit\\").description(\\"\u4F18\u5316\u5668\u8BBE\u7F6E\\"),\\n }).description(\\"\u5B66\u4E60\u7387\u4E0E\u4F18\u5316\u5668\u8BBE\u7F6E\\"),\\n\\n Schema.union([\\n Schema.object({\\n lr_scheduler: Schema.const('cosine_with_restarts'),\\n lr_scheduler_num_cycles: Schema.number().default(1).description('\u91CD\u542F\u6B21\u6570'),\\n }),\\n Schema.object({\\n lr_scheduler: Schema.const('constant_with_warmup'),\\n lr_warmup_steps: Schema.number().default(100).description('\u70ED\u8EAB\u6B65\u6570'),\\n }),\\n Schema.object({}),\\n ]),\\n ]),\\n\\n Schema.intersect([\\n Schema.object({\\n network_module: Schema.union([\\"networks.lora\\", \\"networks.dylora\\",\\"lycoris.kohya\\"]).default(\\"networks.lora\\").description(\\"\u8BAD\u7EC3\u7F51\u7EDC\u6A21\u5757\\"),\\n network_weights: Schema.string().role('folder').description(\\"\u4ECE\u5DF2\u6709\u7684 LoRA \u6A21\u578B\u4E0A\u7EE7\u7EED\u8BAD\u7EC3\uFF0C\u586B\u5199\u8DEF\u5F84\\"),\\n network_dim: Schema.number().min(8).max(256).step(8).default(32).description(\\"\u7F51\u7EDC\u7EF4\u5EA6\uFF0C\u5E38\u7528 4~128\uFF0C\u4E0D\u662F\u8D8A\u5927\u8D8A\u597D\\"),\\n network_alpha: Schema.number().min(1).default(32).description(\\n \\"\u5E38\u7528\u4E0E network_dim \u76F8\u540C\u7684\u503C\u6216\u8005\u91C7\u7528\u8F83\u5C0F\u7684\u503C\uFF0C\u5982 network_dim \u7684\u4E00\u534A \u9632\u6B62\u4E0B\u6EA2\u3002\u4F7F\u7528\u8F83\u5C0F\u7684 alpha \u9700\u8981\u63D0\u5347\u5B66\u4E60\u7387\u3002\\"\\n ),\\n enable_block_weights: Schema.boolean().default(false).description('\u542F\u7528\u5206\u5C42\u5B66\u4E60\u7387\u8BAD\u7EC3\uFF08\u53EA\u80FD\u5728 networks.lora \u4E2D\u4F7F\u7528\uFF0C\u4E0E\u5176\u4ED6\u7F51\u7EDC\u6A21\u5757\u4E0D\u517C\u5BB9\uFF09'),\\n }).description(\\"\u7F51\u7EDC\u8BBE\u7F6E\\"),\\n\\n Schema.union([\\n Schema.object({\\n network_module: Schema.const('lycoris.kohya').required(),\\n lycoris_algo: Schema.union([\\"lora\\", \\"loha\\", \\"lokr\\", \\"ia3\\"]).default(\\"lora\\").description('LyCORIS \u7F51\u7EDC\u7B97\u6CD5 \u53EF\u9009 lora\u3001loha\u3001lokr\u3001ia3\u3002lora\u5373\u4E3Alocon'),\\n conv_dim: Schema.number().default(4),\\n conv_alpha: Schema.number().default(4),\\n dropout: Schema.number().step(0.1).default(0).description('dropout \u6982\u7387, 0 \u4E3A\u4E0D\u4F7F\u7528 dropout, \u8D8A\u5927\u5219 dropout \u8D8A\u591A\uFF0C\u63A8\u8350 0~0.5\uFF0C LoHa/LoKr/(IA)^3\u6682\u65F6\u4E0D\u652F\u6301')\\n }),\\n Schema.object({\\n network_module: Schema.const('networks.dylora').required(),\\n dylora_unit: Schema.number().min(1).default(4).description('\u5206\u5272\u5757\u6570\u5355\u4F4D\uFF0C\u6700\u5C0F 1 \u4E5F\u6700\u6162\u3002\u4E00\u822C4\u30018\u300112\u300116\u8FD9\u51E0\u4E2A\u9009'),\\n }),\\n Schema.object({}),\\n ]),\\n\\n Schema.union([\\n Schema.object({\\n enable_block_weights: Schema.const(true).required(),\\n down_lr_weight: Schema.string().role('folder').default(\\"1,1,1,1,1,1,1,1,1,1,1,1\\").description(\\"U-Net \u7684 Encoder \u5C42\u5206\u5C42\u6743\u91CD\uFF0C\u5171 12 \u5C42\\"),\\n mid_lr_weight: Schema.string().role('folder').default(\\"1\\").description(\\"U-Net \u7684 Mid \u5C42\u5206\u5C42\u6743\u91CD\uFF0C\u5171 1 \u5C42\\"),\\n up_lr_weight: Schema.string().role('folder').default(\\"1,1,1,1,1,1,1,1,1,1,1,1\\").description(\\"U-Net \u7684 Decoder \u5C42\u5206\u5C42\u6743\u91CD\uFF0C\u5171 12 \u5C42\\"),\\n block_lr_zero_threshold: Schema.number().step(0.1).default(0).description(\\"\u5206\u5C42\u5B66\u4E60\u7387\u7F6E 0 \u9608\u503C\\"),\\n }),\\n Schema.object({}),\\n ]),\\n ]),\\n\\n Schema.intersect([\\n Schema.object({\\n enable_preview: Schema.boolean().default(false).description('\u542F\u7528\u8BAD\u7EC3\u9884\u89C8\u56FE\uFF0C\u4F1A\u6D88\u8017\u66F4\u591A\u663E\u5B58\u62D6\u6162\u901F\u5EA6'),\\n }).description('\u8BAD\u7EC3\u9884\u89C8\u56FE\u8BBE\u7F6E'),\\n\\n Schema.union([\\n Schema.object({\\n enable_preview: Schema.const(true).required(),\\n sample_prompts: Schema.string().default(\\"./toml/sample_prompts.txt\\").description(\\"\u9884\u89C8\u56FE\u751F\u6210\u53C2\u6570\uFF0C\u586B\u5199 txt \u6587\u4EF6\u76EE\u5F55\u3002\u9ED8\u8BA4\u4E3A sample_prompts.txt\uFF0C\u53EF\u4EE5\u81EA\u5DF1\u53C2\u8003\u8BE5\u6587\u4EF6\u4FEE\u6539\u3002\\"),\\n sample_sampler: Schema.union([\\"ddim\\", \\"pndm\\", \\"lms\\", \\"euler\\", \\"euler_a\\", \\"heun\\", \\"dpm_2\\", \\"dpm_2_a\\", \\"dpmsolver\\", \\"dpmsolver++\\", \\"dpmsingle\\", \\"k_lms\\", \\"k_euler\\", \\"k_euler_a\\", \\"k_dpm_2\\", \\"k_dpm_2_a\\"]).default(\\"euler_a\\").description(\\"\u751F\u6210\u9884\u89C8\u56FE\u6240\u7528\u91C7\u6837\u5668\\"),\\n sample_every_n_epochs: Schema.number().default(2).description(\\"\u6BCF n \u4E2A epoch \u751F\u6210\u4E00\u6B21\u9884\u89C8\u56FE\\"),\\n }),\\n Schema.object({}),\\n ]),\\n ]),\\n\\n Schema.intersect([\\n Schema.object({\\n log_with: Schema.union([\\"tensorboard\\", \\"wandb\\"]).default(\\"tensorboard\\").description(\\"\u65E5\u5FD7\u6A21\u5757\\"),\\n log_prefix: Schema.string().description(\\"\u65E5\u5FD7\u524D\u7F00\\"),\\n log_tracker_name: Schema.string().description(\\"\u65E5\u5FD7\u8FFD\u8E2A\u5668\u540D\u79F0\\"),\\n logging_dir: Schema.string().default(\\"./logs\\").description(\\"\u65E5\u5FD7\u4FDD\u5B58\u6587\u4EF6\u5939\\"),\\n }).description('\u65E5\u5FD7\u8BBE\u7F6E'),\\n\\n Schema.union([\\n Schema.object({\\n log_with: Schema.const(\\"wandb\\").required(),\\n wandb_api_key: Schema.string().required().description(\\"wandb \u7684 api \u5BC6\u94A5\\"),\\n }),\\n Schema.object({}),\\n ]),\\n ]),\\n\\n Schema.object({\\n caption_extension: Schema.string().default(\\".txt\\").description(\\"Tag \u6587\u4EF6\u6269\u5C55\u540D\\"),\\n shuffle_caption: Schema.boolean().default(true).description(\\"\u8BAD\u7EC3\u65F6\u968F\u673A\u6253\u4E71 tokens\\"),\\n weighted_captions: Schema.boolean().default(false).description(\\"\u4F7F\u7528\u5E26\u6743\u91CD\u7684 token\uFF0C\u4E0D\u63A8\u8350\u4E0E shuffle_caption \u4E00\u540C\u5F00\u542F\u3002\\"),\\n keep_tokens: Schema.number().min(0).max(255).step(1).default(0).description(\\"\u5728\u968F\u673A\u6253\u4E71 tokens \u65F6\uFF0C\u4FDD\u7559\u524D N \u4E2A\u4E0D\u53D8\\"),\\n max_token_length: Schema.number().default(255).description(\\"\u6700\u5927 token \u957F\u5EA6\\"),\\n caption_dropout_rate: Schema.number().min(0).max(1).step(0.1).description(\\"\u4E22\u5F03\u5168\u90E8\u6807\u7B7E\u7684\u6982\u7387\uFF0C\u5BF9\u4E00\u4E2A\u56FE\u7247\u6982\u7387\u4E0D\u4F7F\u7528 caption \u6216 class token\\"),\\n caption_dropout_every_n_epochs: Schema.number().min(0).max(100).step(1).description(\\"\u6BCF N \u4E2A epoch \u4E22\u5F03\u5168\u90E8\u6807\u7B7E\\"),\\n caption_tag_dropout_rate: Schema.number().min(0).max(1).step(0.1).description(\\"\u6309\u9017\u53F7\u5206\u9694\u7684\u6807\u7B7E\u6765\u968F\u673A\u4E22\u5F03 tag \u7684\u6982\u7387\\"),\\n }).description(\\"caption\uFF08Tag\uFF09\u9009\u9879\\"),\\n\\n Schema.object({\\n seed: Schema.number().default(1337).description(\\"\u968F\u673A\u79CD\u5B50\\"),\\n prior_loss_weight: Schema.number().step(0.1).default(1.0).description(\\"\u5148\u9A8C\u635F\u5931\u6743\u91CD\\"),\\n min_snr_gamma: Schema.number().step(0.1).description(\\"\u6700\u5C0F\u4FE1\u566A\u6BD4\u4F3D\u9A6C\u503C\uFF0C\u5982\u679C\u542F\u7528\u63A8\u8350\u4E3A 5\\"),\\n noise_offset: Schema.number().step(0.01).description(\\"\u5728\u8BAD\u7EC3\u4E2D\u6DFB\u52A0\u566A\u58F0\u504F\u79FB\u6765\u6539\u826F\u751F\u6210\u975E\u5E38\u6697\u6216\u8005\u975E\u5E38\u4EAE\u7684\u56FE\u50CF\uFF0C\u5982\u679C\u542F\u7528\u63A8\u8350\u4E3A 0.1\\"),\\n multires_noise_iterations: Schema.number().step(1).description(\\"\u591A\u5206\u8FA8\u7387\uFF08\u91D1\u5B57\u5854\uFF09\u566A\u58F0\u8FED\u4EE3\u6B21\u6570 \u63A8\u8350 6-10\u3002\u65E0\u6CD5\u4E0E noise_offset \u4E00\u540C\u542F\u7528\u3002\\"),\\n multires_noise_discount: Schema.number().step(0.1).description(\\"\u591A\u5206\u8FA8\u7387\uFF08\u91D1\u5B57\u5854\uFF09\u8870\u51CF\u7387 \u63A8\u8350 0.3\uFF0C\u987B\u540C\u65F6\u4E0E\u4E0A\u65B9\u53C2\u6570 multires_noise_iterations \u4E00\u540C\u542F\u7528\u3002\\"),\\n clip_skip: Schema.number().role(\\"slider\\").min(0).max(12).step(1).default(2).description(\\"\u7384\u5B66\\"),\\n gradient_checkpointing: Schema.boolean().default(false).description(\\"\u68AF\u5EA6\u68C0\u67E5\u70B9\\"),\\n gradient_accumulation_steps: Schema.number().min(1).description(\\"\u68AF\u5EA6\u7D2F\u52A0\u6B65\u6570\\"),\\n mixed_precision: Schema.union([\\"no\\", \\"fp16\\", \\"bf16\\"]).default(\\"fp16\\").description(\\"\u8BAD\u7EC3\u6DF7\u5408\u7CBE\u5EA6\\"),\\n save_precision: Schema.union([\\"fp16\\", \\"float\\",\\"bf16\\"]).default(\\"fp16\\").description(\\"\u6A21\u578B\u4FDD\u5B58\u7CBE\u5EA6\\"),\\n }).description(\\"\u9AD8\u7EA7\u8BBE\u7F6E\\"),\\n\\n Schema.object({\\n xformers: Schema.boolean().default(true).description(\\"\u542F\u7528 xformers\\"),\\n lowram: Schema.boolean().default(false).description(\\"\u4F4E\u5185\u5B58\u6A21\u5F0F \u8BE5\u6A21\u5F0F\u4E0B\u4F1A\u5C06 U-net\u3001\u6587\u672C\u7F16\u7801\u5668\u3001VAE \u76F4\u63A5\u52A0\u8F7D\u5230\u663E\u5B58\u4E2D\\"),\\n cache_latents: Schema.boolean().default(true).description(\\"\u7F13\u5B58\u56FE\u50CF latent\\"),\\n cache_latents_to_disk: Schema.boolean().default(false).description(\\"\u7F13\u5B58\u56FE\u50CF latent \u5230\u78C1\u76D8\\"),\\n persistent_data_loader_workers: Schema.boolean().default(true).description(\\"\u4FDD\u7559\u52A0\u8F7D\u8BAD\u7EC3\u96C6\u7684worker\uFF0C\u51CF\u5C11\u6BCF\u4E2A epoch \u4E4B\u95F4\u7684\u505C\u987F\u3002\u5BF9\u5185\u5B58\u8981\u6C42\u66F4\u5927\\"),\\n }).description(\\"\u901F\u5EA6\u4F18\u5316\u9009\u9879\\"),\\n]);\\n"},"excerpt":"","headers":[],"filePathRelative":"lora/master.md"}`);export{e as data};
|
frontend/dist/assets/master.html.89b46f6c.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as a,o as t,c as r,a as e,b as o}from"./app.406c12df.js";const s={},c=e("h1",{id:"lora-\u8BAD\u7EC3-\u4E13\u5BB6\u6A21\u5F0F",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#lora-\u8BAD\u7EC3-\u4E13\u5BB6\u6A21\u5F0F","aria-hidden":"true"},"#"),o(" LoRA \u8BAD\u7EC3 \u4E13\u5BB6\u6A21\u5F0F")],-1),_=e("p",null,"\u4F60\u6240\u70ED\u7231\u7684 \u5C31\u662F\u4F60\u7684\u53C2\u6570",-1),n=[c,_];function d(l,i){return t(),r("div",null,n)}var f=a(s,[["render",d],["__file","master.html.vue"]]);export{f as default};
|
frontend/dist/assets/params.html.3151a571.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as o,r as n,o as i,c as s,a,b as e,d as r,e as h}from"./app.406c12df.js";const p={},d=h('<h1 id="\u8BAD\u7EC3\u53C2\u6570\u8C03\u8282" tabindex="-1"><a class="header-anchor" href="#\u8BAD\u7EC3\u53C2\u6570\u8C03\u8282" aria-hidden="true">#</a> \u8BAD\u7EC3\u53C2\u6570\u8C03\u8282</h1><h2 id="\u8BBE\u7F6E\u8BAD\u7EC3\u7528\u6A21\u578B\u3001\u6570\u636E\u96C6" tabindex="-1"><a class="header-anchor" href="#\u8BBE\u7F6E\u8BAD\u7EC3\u7528\u6A21\u578B\u3001\u6570\u636E\u96C6" aria-hidden="true">#</a> \u8BBE\u7F6E\u8BAD\u7EC3\u7528\u6A21\u578B\u3001\u6570\u636E\u96C6</h2><h3 id="\u5E95\u6A21\u9009\u62E9" tabindex="-1"><a class="header-anchor" href="#\u5E95\u6A21\u9009\u62E9" aria-hidden="true">#</a> \u5E95\u6A21\u9009\u62E9</h3><p>\u5E95\u6A21\uFF0C\u5C3D\u91CF\u9009\u7956\u5B97\u7EA7\u522B\u7684\u6A21\u578B\u7EC3\u51FA\u6765\u7684LoRA\u4F1A\u66F4\u901A\u7528\u3002\u5982\u679C\u5728\u878D\u5408\u6A21\u578B\u4E0A\u8BAD\u7EC3\u53EF\u80FD\u4F1A<strong>\u4EC5\u4EC5\u5728\u4F60\u8BAD\u7EC3\u7684\u5E95\u6A21\u4E0A\u751F\u6210\u56FE\u7247\u62E5\u6709\u4E0D\u9519\u7684\u6548\u679C</strong> \u4F46\u662F\u5931\u53BB\u4E86\u901A\u7528\u6027\u3002\u53EF\u4EE5\u81EA\u5DF1\u6289\u62E9</p><p>\u4EC0\u4E48\u662F\u7956\u5B97\u7EA7\u522B\u7684\u6A21\u578B\uFF1F</p><p>sd1.5 2.0\u3001novelai \u539F\u7248\u6CC4\u9732\u6A21\u578B\u3002\u4E5F\u5C31\u662F\u975E\u878D\u5408\u6A21\u578B\u3002\u878D\u5408\u6A21\u578B\u6BD4\u5982 anything \u7CFB\u5217\u878D\u5408\u4E86\u4E00\u5927\u5806\uFF0Corangemix\u7CFB\u5217\u878D\u5408\u4E86 anything \u548C basil \u66F4\u7075\u8F66\u4E86\u7B49\u7B49\u3002\u5728\u4ED6\u4EEC\u4E0A\u9762\u8BAD\u7EC3\u7684\u4F1A\u8FC1\u79FB\u6027\u66F4\u5DEE\u4E00\u4E9B\u3002</p><h3 id="\u8BAD\u7EC3\u5206\u8FA8\u7387" tabindex="-1"><a class="header-anchor" href="#\u8BAD\u7EC3\u5206\u8FA8\u7387" aria-hidden="true">#</a> \u8BAD\u7EC3\u5206\u8FA8\u7387</h3><p>\u8BAD\u7EC3\u65F6\u7684\u5206\u8FA8\u7387 <code>\u5BBD,\u9AD8</code>\uFF0C\u53EF\u4EE5\u662F\u975E\u6B63\u65B9\u5F62\uFF0C\u4F46\u5FC5\u987B\u4E3A64\u7684\u6574\u6570\u500D\u3002\u5EFA\u8BAE\u4F7F\u7528\u5927\u4E8E 512x512 \u4E14\u5C0F\u4E8E 1024x1024 \u7684\u503C\uFF0C\u957F\u5BBD\u6BD4\u6839\u636E\u8BAD\u7EC3\u96C6\u7684\u5360\u6BD4\u51B3\u5B9A\uFF0C\u4E00\u822C\u6765\u8BF4\u65B9\u5F62\u7684\u53EF\u4EE5\u7167\u987E\u5230\u5404\u79CD\u4E0D\u540C\u7684\u5206\u8FA8\u7387\u3002\u5982\u679C\u591A\u6570\u4E3A\u957F\u56FE\u53EF\u4EE5\u4F7F\u7528512x768\u8FD9\u79CD\u5206\u8FA8\u7387\uFF0C\u5982\u679C\u5BBD\u56FE\u5C45\u591A\u5219\u53EF\u4EE5\u4F7F\u7528768x512\u7B49\u3002</p><h3 id="arb-\u6876" tabindex="-1"><a class="header-anchor" href="#arb-\u6876" aria-hidden="true">#</a> ARB \u6876</h3><p>\u9ED8\u8BA4\u5F00\u542F ARB \u6876\uFF0C\u4EE5\u5141\u8BB8\u4F7F\u7528\u975E\u56FA\u5B9A\u5BBD\u9AD8\u6BD4\u7684\u56FE\u50CF\u6765\u8BAD\u7EC3\uFF08\u7B80\u5355\u6765\u8BF4\u5C31\u662F\u4E0D\u9700\u8981\u624B\u52A8\u526A\u88C1\u4E86\uFF09\u3002ARB \u6876\u5728\u4E00\u5B9A\u7A0B\u5EA6\u4E0A\u4F1A\u589E\u52A0\u8BAD\u7EC3\u65F6\u95F4\u3002 <strong>ARB\u6876\u5206\u8FA8\u7387\u5FC5\u987B\u5927\u4E8E\u8BAD\u7EC3\u5206\u8FA8\u7387</strong></p><h2 id="\u5B66\u4E60\u7387\u4E0E\u4F18\u5316\u5668\u8BBE\u7F6E" tabindex="-1"><a class="header-anchor" href="#\u5B66\u4E60\u7387\u4E0E\u4F18\u5316\u5668\u8BBE\u7F6E" aria-hidden="true">#</a> \u5B66\u4E60\u7387\u4E0E\u4F18\u5316\u5668\u8BBE\u7F6E</h2><h3 id="\u5B66\u4E60\u7387\u8BBE\u7F6E" tabindex="-1"><a class="header-anchor" href="#\u5B66\u4E60\u7387\u8BBE\u7F6E" aria-hidden="true">#</a> \u5B66\u4E60\u7387\u8BBE\u7F6E</h3><p>UNet\u548CTE\u7684\u5B66\u4E60\u7387\u901A\u5E38\u662F\u4E0D\u540C\u7684\uFF0C\u56E0\u4E3A\u5B66\u4E60\u96BE\u5EA6\u4E0D\u540C\uFF0C\u901A\u5E38UNet\u7684\u5B66\u4E60\u7387\u4F1A\u6BD4TE\u9AD8 \u3002</p><p><img src="https://s1.ax1x.com/2023/05/28/p9OZm6S.png" alt="p9OZm6S.png"> \u5982\u56FE\u6240\u793A\uFF0C\u6211\u4EEC\u5E0C\u671BUNet\u548CTE\u90FD\u5904\u4E8E\u4E00\u4E2A\u6070\u597D\u7684\u4F4D\u7F6E\uFF08\u7EFF\u8272\u90E8\u5206\uFF09\uFF0C\u4F46\u662F\u8FD9\u4E2A\u503C\u6211\u4EEC\u4E0D\u77E5\u9053\u3002</p><p>\u5982\u679CUNet\u8BAD\u7EC3\u4E0D\u8DB3\uFF0C\u90A3\u4E48\u751F\u6210\u7684\u56FE\u4F1A\u4E0D\u50CF\uFF0CUNet\u8BAD\u7EC3\u8FC7\u5EA6\u4F1A\u5BFC\u81F4\u9762\u90E8\u626D\u66F2\u6216\u8005\u4EA7\u751F\u5927\u91CF\u8272\u5757\u3002TE\u8BAD\u7EC3\u4E0D\u8DB3\u4F1A\u8BA9\u51FA\u56FE\u5BF9Prompt\u7684\u670D\u4ECE\u5EA6\u4F4E\uFF0CTE\u8BAD\u7EC3\u8FC7\u5EA6\u5219\u4F1A\u751F\u6210\u591A\u4F59\u7684\u7269\u54C1\u3002</p><p><strong>\u603B\u5B66\u4E60\u6B65\u6570 = \uFF08\u56FE\u7247\u6570\u91CF * \u91CD\u590D\u6B21\u6570 * epoch\uFF09/ \u6279\u6B21\u5927\u5C0F</strong></p><p>\u4EE5UNet\u5B66\u4E60\u7387\u4E3A1e-4\u4E3A\u4F8B\uFF0C\u4E00\u822C\u6765\u8BF4\u56FE\u7247\u8F83\u5C11\u7684\u65F6\u5019\u8BAD\u7EC3\u4EBA\u7269\u9700\u8981\u81F3\u5C111000\u6B65\uFF0C\u8BAD\u7EC3\u753B\u98CE\u5219\u9700\u8981\u81F3\u5C112500\u6B65\uFF0C\u8BAD\u7EC3\u6982\u5FF5\u5219\u9700\u8981\u81F3\u5C113000\u6B65\u3002\u8FD9\u91CC\u53EA\u662F\u6700\u4F4E\u7684\u6B65\u6570\uFF0C\u56FE\u7247\u591A\u5219\u9700\u8981\u66F4\u591A\u6B65\u6570\u3002\u5B66\u4E60\u7387\u66F4\u5927\u53EF\u4EE5\u9002\u5F53\u51CF\u5C11\u6B65\u6570\uFF0C\u4F46\u5E76\u975E\u7EBF\u6027\u5173\u7CFB\uFF0C\u4F7F\u7528\u4E24\u500D\u7684\u5B66\u4E60\u7387\u9700\u8981\u4F7F\u7528\u6BD4\u4E4B\u524D\u6B65\u6570\u7684\u4E00\u534A\u66F4\u591A\u7684\u6B65\u6570\u3002</p><p><strong>\u51B3\u5B9A\u5B66\u4E60\u7387\u548C\u6B65\u6570\u7684\u6700\u597D\u65B9\u6CD5\u662F\u5148\u8BAD\u7EC3\uFF0C\u518D\u6D4B\u8BD5\u3002\u4E00\u822C\u6BD4\u8F83\u597D\u7684\u521D\u59CB\u503C\u4E3AUNet\u4F7F\u75281e-4\uFF0CTE\u4F7F\u75285e-5</strong></p><h3 id="\u5B66\u4E60\u7387\u8C03\u6574\u7B56\u7565-lr-scheduler" tabindex="-1"><a class="header-anchor" href="#\u5B66\u4E60\u7387\u8C03\u6574\u7B56\u7565-lr-scheduler" aria-hidden="true">#</a> \u5B66\u4E60\u7387\u8C03\u6574\u7B56\u7565\uFF08lr_scheduler\uFF09</h3><p>\u63A8\u8350\u4F7F\u7528\u4F59\u5F26\u9000\u706Bcosine\u3002\u5982\u679C\u5F00\u542F\u9884\u70ED\uFF0C\u9884\u70ED\u6B65\u6570\u5E94\u8BE5\u5360\u603B\u6B65\u6570\u76845%-10%\u3002</p><p>\u5982\u679C\u4F7F\u7528\u5E26\u91CD\u542F\u7684\u4F59\u5F26\u9000\u706Bcosine_with_restarts\uFF0C\u91CD\u542F\u6B21\u6570\u4E0D\u5E94\u8BE5\u8D85\u8FC74\u6B21\u3002</p><h3 id="\u6279\u6B21\u5927\u5C0F-batch-size" tabindex="-1"><a class="header-anchor" href="#\u6279\u6B21\u5927\u5C0F-batch-size" aria-hidden="true">#</a> \u6279\u6B21\u5927\u5C0F \uFF08batch_size\uFF09</h3><p>Batch size \u8D8A\u5927\u68AF\u5EA6\u8D8A\u7A33\u5B9A\uFF0C\u4E5F\u53EF\u4EE5\u4F7F\u7528\u66F4\u5927\u7684\u5B66\u4E60\u7387\u6765\u52A0\u901F\u6536\u655B\uFF0C\u4F46\u662F\u5360\u7528\u663E\u5B58\u4E5F\u66F4\u5927\u3002</p><p>\u4E00\u822C\u800C\u8A00 2 \u500D\u7684 batch_size \u53EF\u4EE5\u4F7F\u7528\u4E24\u500D\u7684 UNet \u5B66\u4E60\u7387\uFF0C\u4F46\u662FTE\u5B66\u4E60\u7387\u4E0D\u80FD\u63D0\u9AD8\u592A\u591A\u3002</p><h3 id="\u4F18\u5316\u5668" tabindex="-1"><a class="header-anchor" href="#\u4F18\u5316\u5668" aria-hidden="true">#</a> \u4F18\u5316\u5668</h3><p>\u8FD9\u91CC\u53EA\u4ECB\u7ECD\u6700\u5E38\u7528\u7684\u4E09\u79CD:</p><ul><li><strong>AdamW8bit</strong>\uFF1A\u542F\u7528\u7684int8\u4F18\u5316\u7684AdamW\u4F18\u5316\u5668\uFF0C\u9ED8\u8BA4\u9009\u9879\u3002</li><li><strong>Lion</strong>\uFF1AGoogle Brain\u53D1\u8868\u7684\u65B0\u4F18\u5316\u5668\uFF0C\u5404\u65B9\u9762\u8868\u73B0\u4F18\u4E8EAdamW\uFF0C\u540C\u65F6\u5360\u7528\u663E\u5B58\u66F4\u5C0F\uFF0C\u53EF\u80FD\u9700\u8981\u66F4\u5927\u7684batch size\u4EE5\u4FDD\u6301\u68AF\u5EA6\u66F4\u65B0\u7A33\u5B9A\u3002</li><li><strong>D-Adaptation</strong>\uFF1AFB\u53D1\u8868\u7684\u81EA\u9002\u5E94\u5B66\u4E60\u7387\u7684\u4F18\u5316\u5668\uFF0C\u8C03\u53C2\u7B80\u5355\uFF0C\u65E0\u9700\u624B\u52A8\u63A7\u5236\u5B66\u4E60\u7387\uFF0C\u4F46\u662F\u5360\u7528\u663E\u5B58\u5DE8\u5927(\u901A\u5E38\u9700\u8981\u5927\u4E8E8G)\u3002\u4F7F\u7528\u65F6<strong>\u8BBE\u7F6E\u5B66\u4E60\u7387\u4E3A1</strong>\u5373\u53EF\uFF0C\u540C\u65F6<strong>\u5B66\u4E60\u7387\u8C03\u6574\u7B56\u7565\u4F7F\u7528constant</strong>\u3002\u9700\u8981\u6DFB\u52A0"--optimizer_args decouple=True"\u6765\u5206\u79BBUNet\u548CTE\u7684\u5B66\u4E60\u7387\u3002(\u8FD9\u4E9B\u8BBE\u7F6E\u8BAD\u7EC3UI\u90FD\u4F1A\u5E2E\u4F60\u81EA\u52A8\u5904\u7406)</li></ul><h2 id="\u7F51\u7EDC\u8BBE\u7F6E" tabindex="-1"><a class="header-anchor" href="#\u7F51\u7EDC\u8BBE\u7F6E" aria-hidden="true">#</a> \u7F51\u7EDC\u8BBE\u7F6E</h2><h3 id="\u7F51\u7EDC\u7ED3\u6784-lora-locon-loha-dylora" tabindex="-1"><a class="header-anchor" href="#\u7F51\u7EDC\u7ED3\u6784-lora-locon-loha-dylora" aria-hidden="true">#</a> \u7F51\u7EDC\u7ED3\u6784\uFF08LoRA/LoCon/LoHa/DyLoRA\uFF09</h3><p>\u4E0D\u540C\u7F51\u7EDC\u7ED3\u6784\u5BF9\u5E94\u4E0D\u540C\u7684\u77E9\u9635\u4F4E\u79E9\u5206\u89E3\u65B9\u6CD5\u3002LoRA \u662F\u8001\u7956\u5B97\uFF0C\u53EA\u63A7\u5236\u6A21\u578B\u4E2D\u7684\u7EBF\u6027\u5C42\u548C1x1\u5377\u79EF\u5C42\uFF0C\u540E\u7EED\u7684\u4E0D\u540C\u7F51\u7EDC\u7ED3\u6784\u90FD\u662F\u5728 LoRA \u7684\u57FA\u7840\u4E0A\u8FDB\u884C\u6539\u8FDB\u3002</p><p>LyCORIS \u5BF9\u5176\u8FDB\u884C\u6539\u8FDB\uFF0C\u6DFB\u52A0\u4E86\u5176\u4ED6\u51E0\u79CD\u7B97\u6CD5\uFF1A</p><ul><li>LoCon \u52A0\u5165\u4E86\u5BF9\u5377\u79EF\u5C42 (Conv) \u7684\u63A7\u5236</li><li>LoHa\uFF08\u54C8\u8FBE\u739B\u79EF\uFF09\u548C LoKr\uFF08\u514B\u7F57\u5185\u514B\u79EF\uFF09</li><li>IA3</li></ul><p>\u7406\u8BBA\u4E0A\u6765\u8BF4 LyCORIS \u4F1A\u6BD4 LoRA \u62E5\u6709\u66F4\u52A0\u5F3A\u7684\u5FAE\u8C03\u6548\u679C\uFF0C\u4F46\u662F\u4E5F\u66F4\u52A0\u5BB9\u6613\u8FC7\u62DF\u5408\u3002</p><p>\u9700\u8981\u6CE8\u610F\u7684\u662F\uFF0C\u4E0D\u540C\u7684\u7F51\u7EDC\u7ED3\u6784\u4E00\u822C\u9700\u8981\u5BF9\u5E94\u4E0D\u540C\u7684 dim \u4EE5\u53CA\u5B66\u4E60\u7387\u3002</p><h3 id="\u7F51\u7EDC\u5927\u5C0F" tabindex="-1"><a class="header-anchor" href="#\u7F51\u7EDC\u5927\u5C0F" aria-hidden="true">#</a> \u7F51\u7EDC\u5927\u5C0F</h3><p>\u7F51\u7EDC\u5927\u5C0F\u5E94\u8BE5\u6839\u636E\u5B9E\u9645\u7684\u8BAD\u7EC3\u96C6\u56FE\u7247\u6570\u91CF\u548C\u4F7F\u7528\u7684\u7F51\u7EDC\u7ED3\u6784\u51B3\u5B9A</p><p><img src="https://s1.ax1x.com/2023/05/28/p9OZam4.jpg" alt="p9OZam4.jpg"></p><p>\u4E0A\u8868\u4E2D\u503C\u4E3A\u6211\u81EA\u5DF1\u7684\u89D2\u8272\u8BAD\u7EC3\u63A8\u8350\u503C\uFF0C\u8BAD\u7EC3\u753B\u98CE\u548C\u6982\u5FF5\u9700\u8981\u9002\u5F53\u589E\u52A0 Linear \u90E8\u5206\u5927\u5C0F\u3002\u63A8\u8350\u503C\u5E76\u975E\u5BF9\u5404\u4E2A\u4E0D\u540C\u7684\u6570\u636E\u96C6\u90FD\u662F\u6700\u4F18\u7684\uFF0C\u9700\u8981\u81EA\u5DF1\u5B9E\u9A8C\u5F97\u51FA\u6700\u4F18\u3002Conv \u7684\u5927\u5C0F\u6700\u597D\u4E0D\u8981\u8D85\u8FC78\u3002</p><h3 id="\u7F51\u7EDCalpha-network-alpha" tabindex="-1"><a class="header-anchor" href="#\u7F51\u7EDCalpha-network-alpha" aria-hidden="true">#</a> \u7F51\u7EDCAlpha\uFF08network_alpha\uFF09</h3><p>alpha\u5728\u8BAD\u7EC3\u671F\u95F4\u7F29\u653E\u7F51\u7EDC\u7684\u6743\u91CD\uFF0Calpha\u8D8A\u5C0F\u5B66\u4E60\u8D8A\u6162\uFF0C\u5173\u7CFB\u53EF\u4EE5\u8BA4\u4E3A\u662F\u8D1F\u7EBF\u6027\u76F8\u5173\u7684\u3002</p><p>\u4E00\u822C\u8BBE\u7F6E\u4E3Adim/2\u6216\u8005dim/4\u3002\u5982\u679C\u9009\u62E91\uFF0C\u5219\u9700\u8981\u63D0\u9AD8\u5B66\u4E60\u7387\u6216\u8005\u4F7F\u7528D-Adapation\u4F18\u5316\u5668\u3002</p><h2 id="\u9AD8\u7EA7\u8BBE\u7F6E" tabindex="-1"><a class="header-anchor" href="#\u9AD8\u7EA7\u8BBE\u7F6E" aria-hidden="true">#</a> \u9AD8\u7EA7\u8BBE\u7F6E</h2><h3 id="caption-\u76F8\u5173" tabindex="-1"><a class="header-anchor" href="#caption-\u76F8\u5173" aria-hidden="true">#</a> Caption \u76F8\u5173</h3><h4 id="caption-dropout" tabindex="-1"><a class="header-anchor" href="#caption-dropout" aria-hidden="true">#</a> caption dropout</h4><p>\u7F51\u4E0A\u5173\u4E8E\u8FD9\u51E0\u4E2Acaption dropout\u7684\u8BF4\u660E\u5C11\u4E4B\u53C8\u5C11\uFF0C\u751A\u81F3\u4F5C\u8005\u5728\u6587\u6863\u91CC\u9762\u4E5F\u6CA1\u6709\u5305\u542B\u8FD9\u4E9B\u53C2\u6570\uFF0C\u53EA\u80FD\u5728\u4EE3\u7801\u6CE8\u91CA\u91CC\u9762\u627E\u5230\u8BF4\u660E\u3002\u4F46\u662Fcaption dropout\u5728\u67D0\u4E9B\u60C5\u51B5\u4E0B\u5BF9\u6A21\u578B\u6027\u80FD\u6709\u63D0\u5347\uFF0C\u6240\u4EE5\u62FF\u51FA\u6765\u8BB2\u4E00\u4E0B\u3002</p><p>caption_dropout_rate\uFF1A\u4E22\u5F03\u5168\u90E8\u6807\u7B7E\u7684\u6982\u7387\uFF0C\u5BF9\u4E00\u4E2A\u56FE\u7247\u6982\u7387\u4E0D\u4F7F\u7528caption\u6216class token</p><p>caption_dropout_every_n_epochs\uFF1A\u6BCFN\u4E2Aepoch\u4E22\u5F03\u5168\u90E8\u6807\u7B7E\u3002</p><p>caption_tag_dropout_rate\uFF1A\u6309\u9017\u53F7\u5206\u9694\u7684\u6807\u7B7E\u6765\u968F\u673A\u4E22\u5F03tag\u7684\u6982\u7387\u3002<strong>\u5982\u679C\u4F7F\u7528DB+\u6807\u7B7E\u7684\u8BAD\u7EC3\u65B9\u6CD5\u8BAD\u7EC3\u753B\u98CE</strong>\uFF0C\u63A8\u8350\u4F7F\u7528\u8FD9\u4E2A\u53C2\u6570\uFF0C\u80FD\u591F\u6709\u6548\u9632\u6B62tag\u8FC7\u62DF\u5408\uFF0C<strong>\u4E00\u822C\u9009\u62E90.2-0.5\u4E4B\u95F4\u7684\u503C</strong>\u3002<strong>\u8BAD\u7EC3\u4EBA\u7269\u5219\u65E0\u9700\u5F00\u542F</strong>\u3002</p><h4 id="token-\u70ED\u8EAB" tabindex="-1"><a class="header-anchor" href="#token-\u70ED\u8EAB" aria-hidden="true">#</a> token \u70ED\u8EAB</h4><p>\u4E24\u4E2Atoken\u70ED\u8EAB\u76F8\u5173\u7684\u53C2\u6570\u3002</p><p>token_warmup_min\uFF1A\u6700\u5C0F\u5B66\u4E60\u7684token\u6570\u91CF\uFF0Ctoken_warmup_step\uFF1A \u5728\u591A\u5C11\u6B65\u540E\u8FBE\u5230\u6700\u5927token\u6570\u91CF\u3002</p><p>token_warmup\u53EF\u4EE5\u7406\u89E3\u4E3A\u53E6\u4E00\u79CD\u5F62\u5F0F\u7684caption dropout\uFF0C\u4F46\u662F\u5982\u679C\u4E0D\u968F\u673A\u6253\u4E71token\uFF0C\u5219\u53EA\u4F1A\u5B66\u4E60\u524D\u9762N\u4E2Atoken\u3002\u672C\u4EBA\u5E76\u672A\u5B9E\u6D4B\u8FC7\u542F\u7528\u8FD9\u4E24\u4E2A\u53C2\u6570\u7684\u6548\u679C\uFF0C\u6709\u5174\u8DA3\u53EF\u4EE5\u81EA\u884C\u5B9E\u9A8C\u3002</p><h3 id="\u566A\u58F0\u76F8\u5173" tabindex="-1"><a class="header-anchor" href="#\u566A\u58F0\u76F8\u5173" aria-hidden="true">#</a> \u566A\u58F0\u76F8\u5173</h3><h4 id="\u566A\u58F0\u504F\u79FB-noise-offset" tabindex="-1"><a class="header-anchor" href="#\u566A\u58F0\u504F\u79FB-noise-offset" aria-hidden="true">#</a> \u566A\u58F0\u504F\u79FB\uFF08noise_offset\uFF09</h4><p>\u5728\u8BAD\u7EC3\u8FC7\u7A0B\u4E2D\u52A0\u5165\u5168\u5C40\u7684\u566A\u58F0\uFF0C\u6539\u5584\u56FE\u7247\u7684\u4EAE\u5EA6\u53D8\u5316\u8303\u56F4\uFF08\u80FD\u751F\u6210\u66F4\u9ED1\u6216\u8005\u66F4\u767D\u7684\u56FE\u7247\uFF09\u3002</p><p>\u5982\u679C\u9700\u8981\u5F00\u542F\uFF0C<strong>\u63A8\u8350\u8BBE\u7F6E\u503C\u4E3A0.1</strong>\uFF0C<strong>\u540C\u65F6\u9700\u8981\u589E\u52A0\u5B66\u4E60\u6B65\u6570\u4F5C\u4E3A\u7F51\u7EDC\u6536\u655B\u66F4\u6162\u7684\u8865\u507F</strong>\u3002</p><h4 id="\u591A\u5206\u8FA8\u7387-\u91D1\u5B57\u5854\u566A\u58F0-multires-noise-iterations\u3001multires-noise-discount" tabindex="-1"><a class="header-anchor" href="#\u591A\u5206\u8FA8\u7387-\u91D1\u5B57\u5854\u566A\u58F0-multires-noise-iterations\u3001multires-noise-discount" aria-hidden="true">#</a> \u591A\u5206\u8FA8\u7387/\u91D1\u5B57\u5854\u566A\u58F0 multires_noise_iterations\u3001multires_noise_discount</h4><p>\u591A\u5206\u8FA8\u7387/\u91D1\u5B57\u5854\u566A\u58F0\u76F8\u5173\u53C2\u6570\u3002iteration\u8BBE\u7F6E\u57286-8\uFF0C\u518D\u9AD8\u63D0\u5347\u4E0D\u5927\u3002discount\u8BBE\u7F6E\u57280.3-0.8\u4E4B\u95F4\uFF0C\u66F4\u5C0F\u7684\u503C\u9700\u8981\u66F4\u591A\u6B65\u6570\u3002</p><h3 id="\u5176\u4ED6\u4E00\u5806\u53C2\u6570" tabindex="-1"><a class="header-anchor" href="#\u5176\u4ED6\u4E00\u5806\u53C2\u6570" aria-hidden="true">#</a> \u5176\u4ED6\u4E00\u5806\u53C2\u6570</h3><ul><li><p><strong>CLIP_SKIP</strong> CLIP\u6A21\u578B\u4F7F\u7528\u5012\u6570\u7B2CN\u5C42\u7684\u8F93\u51FA\uFF0C\u9700\u8981\u4E0E\u5E95\u6A21\u4F7F\u7528\u7684\u503C\u4FDD\u6301\u4E00\u81F4\uFF0C\u5982\u679C\u662F\u57FA\u4E8ENAI\u7684\u4E8C\u6B21\u5143\u6A21\u578B\uFF0C\u5E94\u5F53\u4F7F\u75282\u3002\u5982\u679C\u662FSD1.5\u7B49\u771F\u5B9E\u6A21\u578B\u5E94\u5F53\u4F7F\u75281\u3002\u751F\u6210\u65F6\u4E5F\u5E94\u8BE5\u4F7F\u7528\u540C\u6837\u7684\u503C\u3002</p></li><li><p><strong>Min-SNR-\u03B3</strong> \u53D1\u8868\u4E8E\u4ECA\u5E74CVPR23\u4E0A\u7684\u4E00\u79CD\u52A0\u901F\u6269\u6563\u6A21\u578B\u6536\u655B\u7684\u65B9\u6CD5\u3002\u4E0D\u540C\u6837\u672C\u6279\u6B21\u7684\u5B66\u4E60\u96BE\u5EA6\u4E0D\u540C\u5BFC\u81F4\u68AF\u5EA6\u65B9\u5411\u4E0D\u4E00\u81F4\u6240\u4EE5\u6536\u655B\u6162\uFF0C\u4E8E\u662F\u5F15\u5165\u6839\u636E\u4FE1\u566A\u6BD4\u8C03\u6574\u5B66\u4E60\u7387\u6BD4\u91CD\u3002 <strong>\u8BBE\u7F6E\u57285\u5DE6\u53F3\u7684\u503C</strong>\u662F\u5B9E\u9A8C\u6548\u679C\u6BD4\u8F83\u597D\u7684\uFF0C\u4F46\u662F\u6CE8\u610F\u4F18\u5316\u5668<strong>\u4F7F\u7528D-Adaptation\u7684\u65F6\u5019\u4E0D\u9002\u7528</strong>\uFF0C\u56E0\u4E3A\u5B66\u4E60\u7387\u662F\u4F18\u5316\u5668\u63A7\u5236\u7684\u3002</p></li><li><p><strong>\u6570\u636E\u589E\u5F3A\u76F8\u5173</strong> \u6570\u636E\u589E\u5F3A\u662F\u5728\u8BAD\u7EC3\u65F6\u5B9E\u65F6\u5BF9\u56FE\u7247\u505A\u53D8\u6362\u7684\u65B9\u6CD5\uFF0C\u53EF\u7528\u4E8E\u9632\u6B62\u8FC7\u62DF\u5408\uFF0C\u80FD\u7528\u7684\u4E00\u5171\u6709\u56DB\u79CD: color_aug, flip_aug, face_crop_aug_range, random_crop\u3002 \u5176\u4E2D\u53EA\u6709\u7FFB\u8F6C\uFF08flip_aug\uFF09\u80FD\u548Ccache latent\u517C\u5BB9\uFF0C\u56E0\u4E3Alatent\u53EF\u4EE5\u76F4\u63A5\u7FFB\u8F6C\u3002 <strong>\u56DB\u79CD\u90FD\u4E0D\u63A8\u8350\u4F7F\u7528</strong>\uFF0C\u56E0\u4E3A\u88C1\u526A\u56FE\u7247\u7684\u4E24\u79CDcropping\u65B9\u6CD5\u90FD\u4F1A\u5BFC\u81F4tag\u5BF9\u5E94\u4E0D\u4E0A\u3002color_aug\u65E0\u6CD5\u542F\u7528cache latent\u5BFC\u81F4\u8BAD\u7EC3\u6162\uFF0C\u5F97\u4E0D\u507F\u5931\u3002\u7FFB\u8F6C\u7684flip_aug\u5728\u56FE\u50CF\u4E0D\u5BF9\u79F0\u7684\u60C5\u51B5\u4E0B\u8868\u73B0\u5DEE\uFF0C\u4F1A\u5BFC\u81F4\u65E0\u6CD5\u6B63\u786E\u751F\u6210\u4EBA\u7269\u4E0D\u5BF9\u79F0\u7684\u7279\u5F81\uFF08\u5218\u6D77\u3001\u53D1\u9970\u7B49\uFF09\u3002</p></li><li><p><strong>max_grad_norm</strong> \u9650\u5236\u6A21\u578B\u66F4\u65B0\u68AF\u5EA6\u7684\u5927\u5C0F\uFF0C\u6539\u5584\u6570\u503C\u7A33\u5B9A\u6027\u3002\u68AF\u5EA6\u7684\u8303\u6570\u8D85\u8FC7\u8FD9\u4E2A\u503C\u5C06\u4F1A\u88AB\u7F29\u653E\u5230\u8FD9\u4E2A\u5927\u5C0F\uFF0C<strong>\u4E00\u822C\u6765\u8BF4\u65E0\u9700\u8BBE\u7F6E</strong>\u3002</p></li><li><p><strong>gradient_accumulation_steps</strong> \u68AF\u5EA6\u7D2F\u79EF\u6B65\u6570\uFF0C\u7528\u4E8E\u5728\u5C0F\u663E\u5B58\u4E0A\u6A21\u62DF\u5927batch size\u7684\u6548\u679C\u3002<strong>\u5982\u679C\u663E\u5B58\u8DB3\u591F\u4F7F\u75284\u4EE5\u4E0A\u7684batch size\u5C31\u6CA1\u5FC5\u8981\u542F\u7528</strong>\u3002</p></li><li><p><strong>log_with\u3001wandb_api_key</strong> \u9009\u62E9logger\u7C7B\u578B\uFF0C\u53EF\u9009tensorboard\u6216\u8005wandb\u3002\u4F7F\u7528wandb\u9700\u8981\u6307\u5B9Aapi key\u3002</p></li><li><p><strong>prior_loss_weight</strong> DB\u8BAD\u7EC3\u5F53\u4E2D\u5148\u9A8C\u90E8\u5206\u7684\u6743\u91CD\uFF0C\u63A7\u5236\u6B63\u5219\u5316\u56FE\u50CF\u7684\u5F3A\u5EA6\uFF0C\u8BBA\u6587\u4E2D\u4F7F\u7528\u7684\u662F1\u7684\u503C\uFF0C<strong>\u5982\u65E0\u7279\u6B8A\u60C5\u51B5\u65E0\u9700\u66F4\u6539</strong>\u3002</p></li><li><p><strong>debug_dataset</strong> \u4E0D\u8BAD\u7EC3\u6A21\u578B\uFF0C\u4EC5\u8F93\u51FA\u8BAD\u7EC3\u96C6\u5143\u6570\u636E\u548C\u8BAD\u7EC3\u53C2\u6570\u4FE1\u606F\uFF0C\u53EF\u4EE5\u7528\u6765\u68C0\u67E5\u5404\u9879\u8BBE\u7F6E\u662F\u5426\u6B63\u786E\u3002</p></li><li><p><strong>vae_batch_size</strong> cache lantent\u7684\u65F6\u5019VAE\u7F16\u7801\u5668\u7684batch size\uFF0C\u548C\u8BAD\u7EC3\u6548\u679C\u65E0\u5173\u3002<strong>\u4E00\u822C\u6765\u8BF4\u4F7F\u75282-4\u53EF\u4EE5\u52A0\u901F\u4E00\u70B9cache latent\u7684\u8FC7\u7A0B</strong>\u3002\u56E0\u4E3AVAE\u7F16\u7801\u5668\u672C\u8EAB\u53C2\u6570\u91CF\u6BD4\u8F83\u5C0F\uFF0C\u5B9E\u6D4B\u5728Linux\u673A\u5668\u4E0A8G\u7684\u663E\u5361\u4E5F\u80FD\u5F00\u542F4\u3002Windows\u4E0B\u7CFB\u7EDF\u5360\u7528\u663E\u5B58\u8F83\u591A\uFF0C\u663E\u5B58\u5C0F\u4E8E10G\u4E0D\u5EFA\u8BAE\u5F00\u542F\u3002</p></li></ul>',60),c={class:"custom-container tip"},l=a("p",{class:"custom-container-title"},"TIP",-1),g=a("p",null,"\u6587\u6863\u5C1A\u672A\u5B8C\u7ED3~!",-1),_={href:"https://space.bilibili.com/12566101",target:"_blank",rel:"noopener noreferrer"},u={href:"https://space.bilibili.com/1713054",target:"_blank",rel:"noopener noreferrer"},b=a("p",null,"\u611F\u8C22 Impossib1e\u55E8 \u8D21\u732E\u7684\u5927\u91CF\u6587\u6863",-1);function m(f,x){const t=n("ExternalLinkIcon");return i(),s("div",null,[d,a("div",c,[l,g,a("p",null,[e("by "),a("a",_,[e("\u79CB\u8449"),r(t)]),e(" & "),a("a",u,[e("Impossib1e\u55E8"),r(t)])]),b])])}var A=o(p,[["render",m],["__file","params.html.vue"]]);export{A as default};
|
frontend/dist/assets/params.html.c8cc13ef.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
const a=JSON.parse('{"key":"v-0f9e746f","path":"/lora/params.html","title":"\u8BAD\u7EC3\u53C2\u6570\u8C03\u8282","lang":"en-US","frontmatter":{},"excerpt":"","headers":[],"filePathRelative":"lora/params.md"}');export{a as data};
|
frontend/dist/assets/style.a8135c07.css
ADDED
The diff for this file is too large to render.
See raw diff
|
|
frontend/dist/assets/tagger.html.49fb651e.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as a,o as r,c as n,a as e,b as t}from"./app.406c12df.js";const o={},s=e("h1",{id:"tagger-\u6807\u6CE8\u5DE5\u5177",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#tagger-\u6807\u6CE8\u5DE5\u5177","aria-hidden":"true"},"#"),t(" Tagger \u6807\u6CE8\u5DE5\u5177")],-1),c=e("p",null,"\u540E\u7AEF\u57FA\u4E8E wd14-tagger \u5F00\u53D1\u3002",-1),d=e("p",null,[t("\u6A21\u578B\u4F7F\u7528 "),e("code",null,"SmilingWolf/wd-v1-4-convnextv2-tagger-v2")],-1),_=e("h3",{id:"\u63A8\u8350\u53C2\u6570",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#\u63A8\u8350\u53C2\u6570","aria-hidden":"true"},"#"),t(" \u63A8\u8350\u53C2\u6570")],-1),i=e("p",null,"\u9608\u503C\u5927\u4E8E 0.35",-1),l=[s,c,d,_,i];function h(g,u){return r(),n("div",null,l)}var m=a(o,[["render",h],["__file","tagger.html.vue"]]);export{m as default};
|
frontend/dist/assets/tagger.html.d98b6655.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
const e=JSON.parse(`{"key":"v-51615306","path":"/tagger.html","title":"Tagger \u6807\u6CE8\u5DE5\u5177","lang":"en-US","frontmatter":{"type":"tagger","code":"Schema.intersect([\\n Schema.object({\\n path: Schema.string().role('folder').required().description(\\"\u56FE\u7247\u6587\u4EF6\u5939\u8DEF\u5F84\\"),\\n threshold: Schema.number().role(\\"slider\\").min(0).max(1).step(0.01).default(0.5).description(\\"\u9608\u503C\\"),\\n additional_tags: Schema.string().role('folder').description(\\"\u9644\u52A0\u63D0\u793A\u8BCD (\u9017\u53F7\u5206\u9694)\\"),\\n replace_underscore: Schema.boolean().default(true).description(\\"\u4F7F\u7528\u7A7A\u683C\u4EE3\u66FF\u4E0B\u5212\u7EBF\\"),\\n escape_tag: Schema.boolean().default(true).description(\\"\u5C06\u7ED3\u679C\u4E2D\u7684\u62EC\u53F7\u8FDB\u884C\u8F6C\u4E49\u5904\u7406\\"),\\n batch_output_action_on_conflict: Schema.union([\\"ignore\\", \\"copy\\", \\"prepend\\"]).default(\\"copy\\").description(\\"\u82E5\u5DF2\u7ECF\u5B58\u5728\u8BC6\u522B\u7684 Tag \u6587\u4EF6\uFF0C\u5219\\"),\\n }).description(\\"Tagger \u53C2\u6570\u8BBE\u7F6E\\"),\\n]);\\n"},"excerpt":"","headers":[],"filePathRelative":"tagger.md"}`);export{e as data};
|
frontend/dist/assets/tensorboard.html.37ea225e.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
const e=JSON.parse('{"key":"v-13efe3c5","path":"/tensorboard.html","title":"","lang":"en-US","frontmatter":{"type":"iframe","iframe":"http://127.0.0.1:6006"},"excerpt":"","headers":[],"filePathRelative":"tensorboard.md"}');export{e as data};
|
frontend/dist/assets/tensorboard.html.92d7d710.js
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import{_ as e,o as r,c as o}from"./app.406c12df.js";const t={};function c(_,a){return r(),o("div")}var s=e(t,[["render",c],["__file","tensorboard.html.vue"]]);export{s as default};
|
frontend/dist/dreambooth/index.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-US">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6 |
+
<meta name="generator" content="VuePress 2.0.0-beta.49">
|
7 |
+
<style>
|
8 |
+
:root {
|
9 |
+
--c-bg: #fff;
|
10 |
+
}
|
11 |
+
html.dark {
|
12 |
+
--c-bg: #22272e;
|
13 |
+
}
|
14 |
+
html, body {
|
15 |
+
background-color: var(--c-bg);
|
16 |
+
}
|
17 |
+
</style>
|
18 |
+
<script>
|
19 |
+
const userMode = localStorage.getItem('vuepress-color-scheme');
|
20 |
+
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
21 |
+
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
22 |
+
document.documentElement.classList.toggle('dark', true);
|
23 |
+
}
|
24 |
+
</script>
|
25 |
+
<title>Dreambooth 训练 | SD 训练 UI</title><meta name="description" content="">
|
26 |
+
<link rel="modulepreload" href="/assets/app.406c12df.js"><link rel="modulepreload" href="/assets/index.html.647b0b74.js"><link rel="modulepreload" href="/assets/index.html.fbbfced2.js"><link rel="prefetch" href="/assets/index.html.9d7cc666.js"><link rel="prefetch" href="/assets/tagger.html.d98b6655.js"><link rel="prefetch" href="/assets/tensorboard.html.37ea225e.js"><link rel="prefetch" href="/assets/basic.html.a7870e5f.js"><link rel="prefetch" href="/assets/index.html.b97ec799.js"><link rel="prefetch" href="/assets/master.html.76757967.js"><link rel="prefetch" href="/assets/params.html.c8cc13ef.js"><link rel="prefetch" href="/assets/about.html.5b0c0de9.js"><link rel="prefetch" href="/assets/404.html.686caba0.js"><link rel="prefetch" href="/assets/index.html.c4113495.js"><link rel="prefetch" href="/assets/tagger.html.49fb651e.js"><link rel="prefetch" href="/assets/tensorboard.html.92d7d710.js"><link rel="prefetch" href="/assets/basic.html.002769d7.js"><link rel="prefetch" href="/assets/index.html.12bc7781.js"><link rel="prefetch" href="/assets/master.html.89b46f6c.js"><link rel="prefetch" href="/assets/params.html.3151a571.js"><link rel="prefetch" href="/assets/about.html.5113db77.js"><link rel="prefetch" href="/assets/404.html.1c89c614.js"><link rel="prefetch" href="/assets/404.0ca36773.js"><link rel="prefetch" href="/assets/layout.2e2cec1b.js">
|
27 |
+
<link rel="stylesheet" href="/assets/style.a8135c07.css">
|
28 |
+
</head>
|
29 |
+
<body>
|
30 |
+
<div id="app"><!--[--><div class="theme-container no-navbar"><!--[--><!----><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar" data-v-6550c740><div class="el-scrollbar" data-v-6550c740><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><div class="sidebar-container" data-v-6550c740><!----><ul class="sidebar-items" data-v-6550c740><!--[--><li><a href="/" class="sidebar-item sidebar-heading" aria-label="SD-Trainer"><!--[--><!--]--> SD-Trainer <!--[--><!--]--></a><!----></li><li><a href="/lora/index.md" class="sidebar-item sidebar-heading" aria-label="LoRA训练"><!--[--><!--]--> LoRA训练 <!--[--><!--]--></a><ul style="display:none;" class="sidebar-item-children"><!--[--><li><a href="/lora/basic.md" class="sidebar-item" aria-label="新手"><!--[--><!--]--> 新手 <!--[--><!--]--></a><!----></li><li><a href="/lora/master.md" class="sidebar-item" aria-label="专家"><!--[--><!--]--> 专家 <!--[--><!--]--></a><!----></li><li><a href="/lora/params.md" class="sidebar-item" aria-label="参数详解"><!--[--><!--]--> 参数详解 <!--[--><!--]--></a><!----></li><!--]--></ul></li><li><a href="/tensorboard.md" class="sidebar-item sidebar-heading" aria-label="Tensorboard"><!--[--><!--]--> Tensorboard <!--[--><!--]--></a><!----></li><li><a href="/tagger.md" class="sidebar-item sidebar-heading" aria-label="WD 1.4 标签器"><!--[--><!--]--> WD 1.4 标签器 <!--[--><!--]--></a><!----></li><li><a href="/other/about.md" class="sidebar-item sidebar-heading" aria-label="关于"><!--[--><!--]--> 关于 <!--[--><!--]--></a><!----></li><!--]--></ul><ul class="sidebar-bottom" data-v-6550c740><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> Github <a class="icon" href="https://github.com/hanamizuki-ai" target="_blank" aria-label="GitHub" data-v-6550c740><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" data-v-6550c740><path d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476c0-.237-.013-1.024-.013-1.862c-2.512.463-3.162-.612-3.362-1.175c-.113-.288-.6-1.175-1.025-1.413c-.35-.187-.85-.65-.013-.662c.788-.013 1.35.725 1.538 1.025c.9 1.512 2.338 1.087 2.912.825c.088-.65.35-1.087.638-1.337c-2.225-.25-4.55-1.113-4.55-4.938c0-1.088.387-1.987 1.025-2.688c-.1-.25-.45-1.275.1-2.65c0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337c1.912-1.3 2.75-1.024 2.75-1.024c.55 1.375.2 2.4.1 2.65c.637.7 1.025 1.587 1.025 2.687c0 3.838-2.337 4.688-4.562 4.938c.362.312.675.912.675 1.85c0 1.337-.013 2.412-.013 2.75c0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z" fill="currentColor" data-v-6550c740></path></svg></a></li><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> 灯泡 <button class="toggle-color-mode-button" title="toggle color mode" data-v-6550c740><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button></li></ul></div><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><!--]--><div><h1 id="dreambooth-训练" tabindex="-1"><a class="header-anchor" href="#dreambooth-训练" aria-hidden="true">#</a> Dreambooth 训练</h1><p>还在开发中,敬请期待。</p></div><!--[--><!--]--></div><footer class="page-meta"><!----><!----><!----></footer><!----><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
|
31 |
+
<script type="module" src="/assets/app.406c12df.js" defer></script>
|
32 |
+
</body>
|
33 |
+
</html>
|
frontend/dist/index.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-US">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6 |
+
<meta name="generator" content="VuePress 2.0.0-beta.49">
|
7 |
+
<style>
|
8 |
+
:root {
|
9 |
+
--c-bg: #fff;
|
10 |
+
}
|
11 |
+
html.dark {
|
12 |
+
--c-bg: #22272e;
|
13 |
+
}
|
14 |
+
html, body {
|
15 |
+
background-color: var(--c-bg);
|
16 |
+
}
|
17 |
+
</style>
|
18 |
+
<script>
|
19 |
+
const userMode = localStorage.getItem('vuepress-color-scheme');
|
20 |
+
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
21 |
+
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
22 |
+
document.documentElement.classList.toggle('dark', true);
|
23 |
+
}
|
24 |
+
</script>
|
25 |
+
<title>SD-Trainer | SD 训练 UI</title><meta name="description" content="">
|
26 |
+
<link rel="modulepreload" href="/assets/app.406c12df.js"><link rel="modulepreload" href="/assets/index.html.c4113495.js"><link rel="modulepreload" href="/assets/index.html.9d7cc666.js"><link rel="prefetch" href="/assets/tagger.html.d98b6655.js"><link rel="prefetch" href="/assets/tensorboard.html.37ea225e.js"><link rel="prefetch" href="/assets/index.html.fbbfced2.js"><link rel="prefetch" href="/assets/basic.html.a7870e5f.js"><link rel="prefetch" href="/assets/index.html.b97ec799.js"><link rel="prefetch" href="/assets/master.html.76757967.js"><link rel="prefetch" href="/assets/params.html.c8cc13ef.js"><link rel="prefetch" href="/assets/about.html.5b0c0de9.js"><link rel="prefetch" href="/assets/404.html.686caba0.js"><link rel="prefetch" href="/assets/tagger.html.49fb651e.js"><link rel="prefetch" href="/assets/tensorboard.html.92d7d710.js"><link rel="prefetch" href="/assets/index.html.647b0b74.js"><link rel="prefetch" href="/assets/basic.html.002769d7.js"><link rel="prefetch" href="/assets/index.html.12bc7781.js"><link rel="prefetch" href="/assets/master.html.89b46f6c.js"><link rel="prefetch" href="/assets/params.html.3151a571.js"><link rel="prefetch" href="/assets/about.html.5113db77.js"><link rel="prefetch" href="/assets/404.html.1c89c614.js"><link rel="prefetch" href="/assets/404.0ca36773.js"><link rel="prefetch" href="/assets/layout.2e2cec1b.js">
|
27 |
+
<link rel="stylesheet" href="/assets/style.a8135c07.css">
|
28 |
+
</head>
|
29 |
+
<body>
|
30 |
+
<div id="app"><!--[--><div class="theme-container no-navbar"><!--[--><!----><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar" data-v-6550c740><div class="el-scrollbar" data-v-6550c740><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><div class="sidebar-container" data-v-6550c740><!----><ul class="sidebar-items" data-v-6550c740><!--[--><li><a aria-current="page" href="/" class="router-link-active router-link-exact-active sidebar-item sidebar-heading active" aria-label="SD-Trainer"><!--[--><!--]--> SD-Trainer <!--[--><!--]--></a><!----></li><li><a href="/lora/index.md" class="sidebar-item sidebar-heading" aria-label="LoRA训练"><!--[--><!--]--> LoRA训练 <!--[--><!--]--></a><ul style="display:none;" class="sidebar-item-children"><!--[--><li><a href="/lora/basic.md" class="sidebar-item" aria-label="新手"><!--[--><!--]--> 新手 <!--[--><!--]--></a><!----></li><li><a href="/lora/master.md" class="sidebar-item" aria-label="专家"><!--[--><!--]--> 专家 <!--[--><!--]--></a><!----></li><li><a href="/lora/params.md" class="sidebar-item" aria-label="参数详解"><!--[--><!--]--> 参数详解 <!--[--><!--]--></a><!----></li><!--]--></ul></li><li><a href="/tensorboard.md" class="sidebar-item sidebar-heading" aria-label="Tensorboard"><!--[--><!--]--> Tensorboard <!--[--><!--]--></a><!----></li><li><a href="/tagger.md" class="sidebar-item sidebar-heading" aria-label="WD 1.4 标签器"><!--[--><!--]--> WD 1.4 标签器 <!--[--><!--]--></a><!----></li><li><a href="/other/about.md" class="sidebar-item sidebar-heading" aria-label="关于"><!--[--><!--]--> 关于 <!--[--><!--]--></a><!----></li><!--]--></ul><ul class="sidebar-bottom" data-v-6550c740><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> Github <a class="icon" href="https://github.com/hanamizuki-ai" target="_blank" aria-label="GitHub" data-v-6550c740><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" data-v-6550c740><path d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476c0-.237-.013-1.024-.013-1.862c-2.512.463-3.162-.612-3.362-1.175c-.113-.288-.6-1.175-1.025-1.413c-.35-.187-.85-.65-.013-.662c.788-.013 1.35.725 1.538 1.025c.9 1.512 2.338 1.087 2.912.825c.088-.65.35-1.087.638-1.337c-2.225-.25-4.55-1.113-4.55-4.938c0-1.088.387-1.987 1.025-2.688c-.1-.25-.45-1.275.1-2.65c0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337c1.912-1.3 2.75-1.024 2.75-1.024c.55 1.375.2 2.4.1 2.65c.637.7 1.025 1.587 1.025 2.687c0 3.838-2.337 4.688-4.562 4.938c.362.312.675.912.675 1.85c0 1.337-.013 2.412-.013 2.75c0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z" fill="currentColor" data-v-6550c740></path></svg></a></li><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> 灯泡 <button class="toggle-color-mode-button" title="toggle color mode" data-v-6550c740><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button></li></ul></div><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><!--]--><div><h1 id="sd-trainer" tabindex="-1"><a class="header-anchor" href="#sd-trainer" aria-hidden="true">#</a> SD-Trainer</h1><p>Stable Diffusion 训练 UI v1.0.0 by <a href="https://space.bilibili.com/12566101" target="_blank" rel="noopener noreferrer">秋葉aaaki<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></p></div><!--[--><!--]--></div><footer class="page-meta"><!----><!----><!----></footer><nav class="page-nav"><p class="inner"><!----><span class="next"><a href="/lora/index.md" class="" aria-label="LoRA训练"><!--[--><!--]--> LoRA训练 <!--[--><!--]--></a></span></p></nav><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
|
31 |
+
<script type="module" src="/assets/app.406c12df.js" defer></script>
|
32 |
+
</body>
|
33 |
+
</html>
|
frontend/dist/lora/basic.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-US">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6 |
+
<meta name="generator" content="VuePress 2.0.0-beta.49">
|
7 |
+
<style>
|
8 |
+
:root {
|
9 |
+
--c-bg: #fff;
|
10 |
+
}
|
11 |
+
html.dark {
|
12 |
+
--c-bg: #22272e;
|
13 |
+
}
|
14 |
+
html, body {
|
15 |
+
background-color: var(--c-bg);
|
16 |
+
}
|
17 |
+
</style>
|
18 |
+
<script>
|
19 |
+
const userMode = localStorage.getItem('vuepress-color-scheme');
|
20 |
+
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
21 |
+
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
22 |
+
document.documentElement.classList.toggle('dark', true);
|
23 |
+
}
|
24 |
+
</script>
|
25 |
+
<title>LoRA 训练 新手模式 | SD 训练 UI</title><meta name="description" content="">
|
26 |
+
<link rel="modulepreload" href="/assets/app.406c12df.js"><link rel="modulepreload" href="/assets/basic.html.002769d7.js"><link rel="modulepreload" href="/assets/basic.html.a7870e5f.js"><link rel="prefetch" href="/assets/index.html.9d7cc666.js"><link rel="prefetch" href="/assets/tagger.html.d98b6655.js"><link rel="prefetch" href="/assets/tensorboard.html.37ea225e.js"><link rel="prefetch" href="/assets/index.html.fbbfced2.js"><link rel="prefetch" href="/assets/index.html.b97ec799.js"><link rel="prefetch" href="/assets/master.html.76757967.js"><link rel="prefetch" href="/assets/params.html.c8cc13ef.js"><link rel="prefetch" href="/assets/about.html.5b0c0de9.js"><link rel="prefetch" href="/assets/404.html.686caba0.js"><link rel="prefetch" href="/assets/index.html.c4113495.js"><link rel="prefetch" href="/assets/tagger.html.49fb651e.js"><link rel="prefetch" href="/assets/tensorboard.html.92d7d710.js"><link rel="prefetch" href="/assets/index.html.647b0b74.js"><link rel="prefetch" href="/assets/index.html.12bc7781.js"><link rel="prefetch" href="/assets/master.html.89b46f6c.js"><link rel="prefetch" href="/assets/params.html.3151a571.js"><link rel="prefetch" href="/assets/about.html.5113db77.js"><link rel="prefetch" href="/assets/404.html.1c89c614.js"><link rel="prefetch" href="/assets/404.0ca36773.js"><link rel="prefetch" href="/assets/layout.2e2cec1b.js">
|
27 |
+
<link rel="stylesheet" href="/assets/style.a8135c07.css">
|
28 |
+
</head>
|
29 |
+
<body>
|
30 |
+
<div id="app"><!--[--><div class="theme-container no-navbar"><!--[--><!----><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar" data-v-6550c740><div class="el-scrollbar" data-v-6550c740><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><div class="sidebar-container" data-v-6550c740><!----><ul class="sidebar-items" data-v-6550c740><!--[--><li><a href="/" class="sidebar-item sidebar-heading" aria-label="SD-Trainer"><!--[--><!--]--> SD-Trainer <!--[--><!--]--></a><!----></li><li><a href="/lora/index.md" class="sidebar-item sidebar-heading active" aria-label="LoRA训练"><!--[--><!--]--> LoRA训练 <!--[--><!--]--></a><ul style="" class="sidebar-item-children"><!--[--><li><a href="/lora/basic.md" class="sidebar-item active" aria-label="新手"><!--[--><!--]--> 新手 <!--[--><!--]--></a><!----></li><li><a href="/lora/master.md" class="sidebar-item" aria-label="专家"><!--[--><!--]--> 专家 <!--[--><!--]--></a><!----></li><li><a href="/lora/params.md" class="sidebar-item" aria-label="参数详解"><!--[--><!--]--> 参数详解 <!--[--><!--]--></a><!----></li><!--]--></ul></li><li><a href="/tensorboard.md" class="sidebar-item sidebar-heading" aria-label="Tensorboard"><!--[--><!--]--> Tensorboard <!--[--><!--]--></a><!----></li><li><a href="/tagger.md" class="sidebar-item sidebar-heading" aria-label="WD 1.4 标签器"><!--[--><!--]--> WD 1.4 标签器 <!--[--><!--]--></a><!----></li><li><a href="/other/about.md" class="sidebar-item sidebar-heading" aria-label="关于"><!--[--><!--]--> 关于 <!--[--><!--]--></a><!----></li><!--]--></ul><ul class="sidebar-bottom" data-v-6550c740><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> Github <a class="icon" href="https://github.com/hanamizuki-ai" target="_blank" aria-label="GitHub" data-v-6550c740><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" data-v-6550c740><path d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476c0-.237-.013-1.024-.013-1.862c-2.512.463-3.162-.612-3.362-1.175c-.113-.288-.6-1.175-1.025-1.413c-.35-.187-.85-.65-.013-.662c.788-.013 1.35.725 1.538 1.025c.9 1.512 2.338 1.087 2.912.825c.088-.65.35-1.087.638-1.337c-2.225-.25-4.55-1.113-4.55-4.938c0-1.088.387-1.987 1.025-2.688c-.1-.25-.45-1.275.1-2.65c0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337c1.912-1.3 2.75-1.024 2.75-1.024c.55 1.375.2 2.4.1 2.65c.637.7 1.025 1.587 1.025 2.687c0 3.838-2.337 4.688-4.562 4.938c.362.312.675.912.675 1.85c0 1.337-.013 2.412-.013 2.75c0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z" fill="currentColor" data-v-6550c740></path></svg></a></li><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> 灯泡 <button class="toggle-color-mode-button" title="toggle color mode" data-v-6550c740><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button></li></ul></div><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></aside><!--]--><!--[--><div class="example-container"><!----><section class="schema-container"><!----></section><div class="right-container"><section class="theme-default-content"><div class="el-scrollbar"><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><main><div><h1 id="lora-训练-新手模式" tabindex="-1"><a class="header-anchor" href="#lora-训练-新手模式" aria-hidden="true">#</a> LoRA 训练 新手模式</h1><p>默认设置为你准备好了所有需要的参数,只需要你修改底模路径、训练集路径、训练轮数即可一键训练模型。</p></div></main><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></section><section><header>参数预览</header><main class="params-section"><code><div class="el-scrollbar"><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style="max-height:600px;"><div class="el-scrollbar__view" style=""><!--[--><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></code></main></section><button ariadisabled="false" type="button" class="el-button" style="margin:0 20px;"><!--v-if--><span class=""><!--[-->下载配置文件<!--]--></span></button><button ariadisabled="false" type="button" class="el-button" style="margin:10px 20px 0 20px;"><!--v-if--><span class=""><!--[-->直接开始训练<!--]--></span></button><div class="el-row" style="margin-left:-5px;margin-right:-5px;margin:10px 20px 10px 20px;"><!--[--><div class="el-col el-col-8 is-guttered" style="padding-right:5px;padding-left:5px;padding-left:0;"><!--[--><button ariadisabled="false" type="button" class="el-button max-btn" style=""><!--v-if--><span class=""><!--[-->全部重置<!--]--></span></button><!--]--></div><div class="el-col el-col-8 is-guttered" style="padding-right:5px;padding-left:5px;"><!--[--><button ariadisabled="false" type="button" class="el-button max-btn" style=""><!--v-if--><span class=""><!--[-->保存<!--]--></span></button><!--]--></div><div class="el-col el-col-8 is-guttered" style="padding-right:5px;padding-left:5px;padding-right:0;"><!--[--><button ariadisabled="false" type="button" class="el-button max-btn" style=""><!--v-if--><span class=""><!--[-->读取参数<!--]--></span></button><!--]--></div><!--]--></div><section id="test-output"><header>Output</header><main><code><span style="color:var(--shiki-token-constant);">null</span></code></main></section></div></div><!--]--></div><!----><!--]--></div>
|
31 |
+
<script type="module" src="/assets/app.406c12df.js" defer></script>
|
32 |
+
</body>
|
33 |
+
</html>
|
frontend/dist/lora/index.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-US">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6 |
+
<meta name="generator" content="VuePress 2.0.0-beta.49">
|
7 |
+
<style>
|
8 |
+
:root {
|
9 |
+
--c-bg: #fff;
|
10 |
+
}
|
11 |
+
html.dark {
|
12 |
+
--c-bg: #22272e;
|
13 |
+
}
|
14 |
+
html, body {
|
15 |
+
background-color: var(--c-bg);
|
16 |
+
}
|
17 |
+
</style>
|
18 |
+
<script>
|
19 |
+
const userMode = localStorage.getItem('vuepress-color-scheme');
|
20 |
+
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
21 |
+
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
22 |
+
document.documentElement.classList.toggle('dark', true);
|
23 |
+
}
|
24 |
+
</script>
|
25 |
+
<title>LoRA 训练 | SD 训练 UI</title><meta name="description" content="">
|
26 |
+
<link rel="modulepreload" href="/assets/app.406c12df.js"><link rel="modulepreload" href="/assets/index.html.12bc7781.js"><link rel="modulepreload" href="/assets/index.html.b97ec799.js"><link rel="prefetch" href="/assets/index.html.9d7cc666.js"><link rel="prefetch" href="/assets/tagger.html.d98b6655.js"><link rel="prefetch" href="/assets/tensorboard.html.37ea225e.js"><link rel="prefetch" href="/assets/index.html.fbbfced2.js"><link rel="prefetch" href="/assets/basic.html.a7870e5f.js"><link rel="prefetch" href="/assets/master.html.76757967.js"><link rel="prefetch" href="/assets/params.html.c8cc13ef.js"><link rel="prefetch" href="/assets/about.html.5b0c0de9.js"><link rel="prefetch" href="/assets/404.html.686caba0.js"><link rel="prefetch" href="/assets/index.html.c4113495.js"><link rel="prefetch" href="/assets/tagger.html.49fb651e.js"><link rel="prefetch" href="/assets/tensorboard.html.92d7d710.js"><link rel="prefetch" href="/assets/index.html.647b0b74.js"><link rel="prefetch" href="/assets/basic.html.002769d7.js"><link rel="prefetch" href="/assets/master.html.89b46f6c.js"><link rel="prefetch" href="/assets/params.html.3151a571.js"><link rel="prefetch" href="/assets/about.html.5113db77.js"><link rel="prefetch" href="/assets/404.html.1c89c614.js"><link rel="prefetch" href="/assets/404.0ca36773.js"><link rel="prefetch" href="/assets/layout.2e2cec1b.js">
|
27 |
+
<link rel="stylesheet" href="/assets/style.a8135c07.css">
|
28 |
+
</head>
|
29 |
+
<body>
|
30 |
+
<div id="app"><!--[--><div class="theme-container no-navbar"><!--[--><!----><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar" data-v-6550c740><div class="el-scrollbar" data-v-6550c740><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><div class="sidebar-container" data-v-6550c740><!----><ul class="sidebar-items" data-v-6550c740><!--[--><li><a href="/" class="sidebar-item sidebar-heading" aria-label="SD-Trainer"><!--[--><!--]--> SD-Trainer <!--[--><!--]--></a><!----></li><li><a href="/lora/index.md" class="sidebar-item sidebar-heading active" aria-label="LoRA训练"><!--[--><!--]--> LoRA训练 <!--[--><!--]--></a><ul style="" class="sidebar-item-children"><!--[--><li><a href="/lora/basic.md" class="sidebar-item" aria-label="新手"><!--[--><!--]--> 新手 <!--[--><!--]--></a><!----></li><li><a href="/lora/master.md" class="sidebar-item" aria-label="专家"><!--[--><!--]--> 专家 <!--[--><!--]--></a><!----></li><li><a href="/lora/params.md" class="sidebar-item" aria-label="参数详解"><!--[--><!--]--> 参数详解 <!--[--><!--]--></a><!----></li><!--]--></ul></li><li><a href="/tensorboard.md" class="sidebar-item sidebar-heading" aria-label="Tensorboard"><!--[--><!--]--> Tensorboard <!--[--><!--]--></a><!----></li><li><a href="/tagger.md" class="sidebar-item sidebar-heading" aria-label="WD 1.4 标签器"><!--[--><!--]--> WD 1.4 标签器 <!--[--><!--]--></a><!----></li><li><a href="/other/about.md" class="sidebar-item sidebar-heading" aria-label="关于"><!--[--><!--]--> 关于 <!--[--><!--]--></a><!----></li><!--]--></ul><ul class="sidebar-bottom" data-v-6550c740><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> Github <a class="icon" href="https://github.com/hanamizuki-ai" target="_blank" aria-label="GitHub" data-v-6550c740><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" data-v-6550c740><path d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476c0-.237-.013-1.024-.013-1.862c-2.512.463-3.162-.612-3.362-1.175c-.113-.288-.6-1.175-1.025-1.413c-.35-.187-.85-.65-.013-.662c.788-.013 1.35.725 1.538 1.025c.9 1.512 2.338 1.087 2.912.825c.088-.65.35-1.087.638-1.337c-2.225-.25-4.55-1.113-4.55-4.938c0-1.088.387-1.987 1.025-2.688c-.1-.25-.45-1.275.1-2.65c0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337c1.912-1.3 2.75-1.024 2.75-1.024c.55 1.375.2 2.4.1 2.65c.637.7 1.025 1.587 1.025 2.687c0 3.838-2.337 4.688-4.562 4.938c.362.312.675.912.675 1.85c0 1.337-.013 2.412-.013 2.75c0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z" fill="currentColor" data-v-6550c740></path></svg></a></li><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> 灯泡 <button class="toggle-color-mode-button" title="toggle color mode" data-v-6550c740><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button></li></ul></div><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><!--]--><div><h1 id="lora-训练" tabindex="-1"><a class="header-anchor" href="#lora-训练" aria-hidden="true">#</a> LoRA 训练</h1><p>本 LoRA 训练界面分为两种模式。</p><ul><li>针对新手的简易训练只有部分可调节参数</li><li>针对有一定经验的用户的专家模式,开放全部的高级参数</li></ul><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>如果你是新手,建议使用新手模式,不要逞强使用专家模式,否则可能会出现意想不到的问题。</p></div></div><!--[--><!--]--></div><footer class="page-meta"><!----><!----><!----></footer><!----><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
|
31 |
+
<script type="module" src="/assets/app.406c12df.js" defer></script>
|
32 |
+
</body>
|
33 |
+
</html>
|
frontend/dist/lora/master.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-US">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6 |
+
<meta name="generator" content="VuePress 2.0.0-beta.49">
|
7 |
+
<style>
|
8 |
+
:root {
|
9 |
+
--c-bg: #fff;
|
10 |
+
}
|
11 |
+
html.dark {
|
12 |
+
--c-bg: #22272e;
|
13 |
+
}
|
14 |
+
html, body {
|
15 |
+
background-color: var(--c-bg);
|
16 |
+
}
|
17 |
+
</style>
|
18 |
+
<script>
|
19 |
+
const userMode = localStorage.getItem('vuepress-color-scheme');
|
20 |
+
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
21 |
+
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
22 |
+
document.documentElement.classList.toggle('dark', true);
|
23 |
+
}
|
24 |
+
</script>
|
25 |
+
<title>LoRA 训练 专家模式 | SD 训练 UI</title><meta name="description" content="">
|
26 |
+
<link rel="modulepreload" href="/assets/app.406c12df.js"><link rel="modulepreload" href="/assets/master.html.89b46f6c.js"><link rel="modulepreload" href="/assets/master.html.76757967.js"><link rel="prefetch" href="/assets/index.html.9d7cc666.js"><link rel="prefetch" href="/assets/tagger.html.d98b6655.js"><link rel="prefetch" href="/assets/tensorboard.html.37ea225e.js"><link rel="prefetch" href="/assets/index.html.fbbfced2.js"><link rel="prefetch" href="/assets/basic.html.a7870e5f.js"><link rel="prefetch" href="/assets/index.html.b97ec799.js"><link rel="prefetch" href="/assets/params.html.c8cc13ef.js"><link rel="prefetch" href="/assets/about.html.5b0c0de9.js"><link rel="prefetch" href="/assets/404.html.686caba0.js"><link rel="prefetch" href="/assets/index.html.c4113495.js"><link rel="prefetch" href="/assets/tagger.html.49fb651e.js"><link rel="prefetch" href="/assets/tensorboard.html.92d7d710.js"><link rel="prefetch" href="/assets/index.html.647b0b74.js"><link rel="prefetch" href="/assets/basic.html.002769d7.js"><link rel="prefetch" href="/assets/index.html.12bc7781.js"><link rel="prefetch" href="/assets/params.html.3151a571.js"><link rel="prefetch" href="/assets/about.html.5113db77.js"><link rel="prefetch" href="/assets/404.html.1c89c614.js"><link rel="prefetch" href="/assets/404.0ca36773.js"><link rel="prefetch" href="/assets/layout.2e2cec1b.js">
|
27 |
+
<link rel="stylesheet" href="/assets/style.a8135c07.css">
|
28 |
+
</head>
|
29 |
+
<body>
|
30 |
+
<div id="app"><!--[--><div class="theme-container no-navbar"><!--[--><!----><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar" data-v-6550c740><div class="el-scrollbar" data-v-6550c740><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><div class="sidebar-container" data-v-6550c740><!----><ul class="sidebar-items" data-v-6550c740><!--[--><li><a href="/" class="sidebar-item sidebar-heading" aria-label="SD-Trainer"><!--[--><!--]--> SD-Trainer <!--[--><!--]--></a><!----></li><li><a href="/lora/index.md" class="sidebar-item sidebar-heading active" aria-label="LoRA训练"><!--[--><!--]--> LoRA训练 <!--[--><!--]--></a><ul style="" class="sidebar-item-children"><!--[--><li><a href="/lora/basic.md" class="sidebar-item" aria-label="新手"><!--[--><!--]--> 新手 <!--[--><!--]--></a><!----></li><li><a href="/lora/master.md" class="sidebar-item active" aria-label="专家"><!--[--><!--]--> 专家 <!--[--><!--]--></a><!----></li><li><a href="/lora/params.md" class="sidebar-item" aria-label="参数详解"><!--[--><!--]--> 参数详解 <!--[--><!--]--></a><!----></li><!--]--></ul></li><li><a href="/tensorboard.md" class="sidebar-item sidebar-heading" aria-label="Tensorboard"><!--[--><!--]--> Tensorboard <!--[--><!--]--></a><!----></li><li><a href="/tagger.md" class="sidebar-item sidebar-heading" aria-label="WD 1.4 标签器"><!--[--><!--]--> WD 1.4 标签器 <!--[--><!--]--></a><!----></li><li><a href="/other/about.md" class="sidebar-item sidebar-heading" aria-label="关于"><!--[--><!--]--> 关于 <!--[--><!--]--></a><!----></li><!--]--></ul><ul class="sidebar-bottom" data-v-6550c740><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> Github <a class="icon" href="https://github.com/hanamizuki-ai" target="_blank" aria-label="GitHub" data-v-6550c740><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" data-v-6550c740><path d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476c0-.237-.013-1.024-.013-1.862c-2.512.463-3.162-.612-3.362-1.175c-.113-.288-.6-1.175-1.025-1.413c-.35-.187-.85-.65-.013-.662c.788-.013 1.35.725 1.538 1.025c.9 1.512 2.338 1.087 2.912.825c.088-.65.35-1.087.638-1.337c-2.225-.25-4.55-1.113-4.55-4.938c0-1.088.387-1.987 1.025-2.688c-.1-.25-.45-1.275.1-2.65c0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337c1.912-1.3 2.75-1.024 2.75-1.024c.55 1.375.2 2.4.1 2.65c.637.7 1.025 1.587 1.025 2.687c0 3.838-2.337 4.688-4.562 4.938c.362.312.675.912.675 1.85c0 1.337-.013 2.412-.013 2.75c0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z" fill="currentColor" data-v-6550c740></path></svg></a></li><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> 灯泡 <button class="toggle-color-mode-button" title="toggle color mode" data-v-6550c740><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button></li></ul></div><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></aside><!--]--><!--[--><div class="example-container"><!----><section class="schema-container"><!----></section><div class="right-container"><section class="theme-default-content"><div class="el-scrollbar"><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><main><div><h1 id="lora-训练-专家模式" tabindex="-1"><a class="header-anchor" href="#lora-训练-专家模式" aria-hidden="true">#</a> LoRA 训练 专家模式</h1><p>你所热爱的 就是你的参数</p></div></main><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></section><section><header>参数预览</header><main class="params-section"><code><div class="el-scrollbar"><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style="max-height:600px;"><div class="el-scrollbar__view" style=""><!--[--><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></code></main></section><button ariadisabled="false" type="button" class="el-button" style="margin:0 20px;"><!--v-if--><span class=""><!--[-->下载配置文件<!--]--></span></button><button ariadisabled="false" type="button" class="el-button" style="margin:10px 20px 0 20px;"><!--v-if--><span class=""><!--[-->直接开始训练<!--]--></span></button><div class="el-row" style="margin-left:-5px;margin-right:-5px;margin:10px 20px 10px 20px;"><!--[--><div class="el-col el-col-8 is-guttered" style="padding-right:5px;padding-left:5px;padding-left:0;"><!--[--><button ariadisabled="false" type="button" class="el-button max-btn" style=""><!--v-if--><span class=""><!--[-->全部重置<!--]--></span></button><!--]--></div><div class="el-col el-col-8 is-guttered" style="padding-right:5px;padding-left:5px;"><!--[--><button ariadisabled="false" type="button" class="el-button max-btn" style=""><!--v-if--><span class=""><!--[-->保存<!--]--></span></button><!--]--></div><div class="el-col el-col-8 is-guttered" style="padding-right:5px;padding-left:5px;padding-right:0;"><!--[--><button ariadisabled="false" type="button" class="el-button max-btn" style=""><!--v-if--><span class=""><!--[-->读取参数<!--]--></span></button><!--]--></div><!--]--></div><section id="test-output"><header>Output</header><main><code><span style="color:var(--shiki-token-constant);">null</span></code></main></section></div></div><!--]--></div><!----><!--]--></div>
|
31 |
+
<script type="module" src="/assets/app.406c12df.js" defer></script>
|
32 |
+
</body>
|
33 |
+
</html>
|
frontend/dist/lora/params.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-US">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6 |
+
<meta name="generator" content="VuePress 2.0.0-beta.49">
|
7 |
+
<style>
|
8 |
+
:root {
|
9 |
+
--c-bg: #fff;
|
10 |
+
}
|
11 |
+
html.dark {
|
12 |
+
--c-bg: #22272e;
|
13 |
+
}
|
14 |
+
html, body {
|
15 |
+
background-color: var(--c-bg);
|
16 |
+
}
|
17 |
+
</style>
|
18 |
+
<script>
|
19 |
+
const userMode = localStorage.getItem('vuepress-color-scheme');
|
20 |
+
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
21 |
+
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
22 |
+
document.documentElement.classList.toggle('dark', true);
|
23 |
+
}
|
24 |
+
</script>
|
25 |
+
<title>训练参数调节 | SD 训练 UI</title><meta name="description" content="">
|
26 |
+
<link rel="modulepreload" href="/assets/app.406c12df.js"><link rel="modulepreload" href="/assets/params.html.3151a571.js"><link rel="modulepreload" href="/assets/params.html.c8cc13ef.js"><link rel="prefetch" href="/assets/index.html.9d7cc666.js"><link rel="prefetch" href="/assets/tagger.html.d98b6655.js"><link rel="prefetch" href="/assets/tensorboard.html.37ea225e.js"><link rel="prefetch" href="/assets/index.html.fbbfced2.js"><link rel="prefetch" href="/assets/basic.html.a7870e5f.js"><link rel="prefetch" href="/assets/index.html.b97ec799.js"><link rel="prefetch" href="/assets/master.html.76757967.js"><link rel="prefetch" href="/assets/about.html.5b0c0de9.js"><link rel="prefetch" href="/assets/404.html.686caba0.js"><link rel="prefetch" href="/assets/index.html.c4113495.js"><link rel="prefetch" href="/assets/tagger.html.49fb651e.js"><link rel="prefetch" href="/assets/tensorboard.html.92d7d710.js"><link rel="prefetch" href="/assets/index.html.647b0b74.js"><link rel="prefetch" href="/assets/basic.html.002769d7.js"><link rel="prefetch" href="/assets/index.html.12bc7781.js"><link rel="prefetch" href="/assets/master.html.89b46f6c.js"><link rel="prefetch" href="/assets/about.html.5113db77.js"><link rel="prefetch" href="/assets/404.html.1c89c614.js"><link rel="prefetch" href="/assets/404.0ca36773.js"><link rel="prefetch" href="/assets/layout.2e2cec1b.js">
|
27 |
+
<link rel="stylesheet" href="/assets/style.a8135c07.css">
|
28 |
+
</head>
|
29 |
+
<body>
|
30 |
+
<div id="app"><!--[--><div class="theme-container no-navbar"><!--[--><!----><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar" data-v-6550c740><div class="el-scrollbar" data-v-6550c740><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><div class="sidebar-container" data-v-6550c740><!----><ul class="sidebar-items" data-v-6550c740><!--[--><li><a href="/" class="sidebar-item sidebar-heading" aria-label="SD-Trainer"><!--[--><!--]--> SD-Trainer <!--[--><!--]--></a><!----></li><li><a href="/lora/index.md" class="sidebar-item sidebar-heading active" aria-label="LoRA训练"><!--[--><!--]--> LoRA训练 <!--[--><!--]--></a><ul style="" class="sidebar-item-children"><!--[--><li><a href="/lora/basic.md" class="sidebar-item" aria-label="新手"><!--[--><!--]--> 新手 <!--[--><!--]--></a><!----></li><li><a href="/lora/master.md" class="sidebar-item" aria-label="专家"><!--[--><!--]--> 专家 <!--[--><!--]--></a><!----></li><li><a href="/lora/params.md" class="sidebar-item active" aria-label="参数详解"><!--[--><!--]--> 参数详解 <!--[--><!--]--></a><!----></li><!--]--></ul></li><li><a href="/tensorboard.md" class="sidebar-item sidebar-heading" aria-label="Tensorboard"><!--[--><!--]--> Tensorboard <!--[--><!--]--></a><!----></li><li><a href="/tagger.md" class="sidebar-item sidebar-heading" aria-label="WD 1.4 标签器"><!--[--><!--]--> WD 1.4 标签器 <!--[--><!--]--></a><!----></li><li><a href="/other/about.md" class="sidebar-item sidebar-heading" aria-label="关于"><!--[--><!--]--> 关于 <!--[--><!--]--></a><!----></li><!--]--></ul><ul class="sidebar-bottom" data-v-6550c740><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> Github <a class="icon" href="https://github.com/hanamizuki-ai" target="_blank" aria-label="GitHub" data-v-6550c740><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" data-v-6550c740><path d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476c0-.237-.013-1.024-.013-1.862c-2.512.463-3.162-.612-3.362-1.175c-.113-.288-.6-1.175-1.025-1.413c-.35-.187-.85-.65-.013-.662c.788-.013 1.35.725 1.538 1.025c.9 1.512 2.338 1.087 2.912.825c.088-.65.35-1.087.638-1.337c-2.225-.25-4.55-1.113-4.55-4.938c0-1.088.387-1.987 1.025-2.688c-.1-.25-.45-1.275.1-2.65c0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337c1.912-1.3 2.75-1.024 2.75-1.024c.55 1.375.2 2.4.1 2.65c.637.7 1.025 1.587 1.025 2.687c0 3.838-2.337 4.688-4.562 4.938c.362.312.675.912.675 1.85c0 1.337-.013 2.412-.013 2.75c0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z" fill="currentColor" data-v-6550c740></path></svg></a></li><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> 灯泡 <button class="toggle-color-mode-button" title="toggle color mode" data-v-6550c740><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button></li></ul></div><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><!--]--><div><h1 id="训练参数调节" tabindex="-1"><a class="header-anchor" href="#训练参数调节" aria-hidden="true">#</a> 训练参数调节</h1><h2 id="设置训练用模型、数据集" tabindex="-1"><a class="header-anchor" href="#设置训练用模型、数据集" aria-hidden="true">#</a> 设置训练用模型、数据集</h2><h3 id="底模选择" tabindex="-1"><a class="header-anchor" href="#底模选择" aria-hidden="true">#</a> 底模选择</h3><p>底模,尽量选祖宗级别的模型练出来的LoRA会更通用。如果在融合模型上训练可能会<strong>仅仅在你训练的底模上生成图片拥有不错的效果</strong> 但是失去了通用性。可以自己抉择</p><p>什么是祖宗级别的模型?</p><p>sd1.5 2.0、novelai 原版泄露模型。也就是非融合模型。融合模型比如 anything 系列融合了一大堆,orangemix系列融合了 anything 和 basil 更灵车了等等。在他们上面训练的会迁移性更差一些。</p><h3 id="训练分辨率" tabindex="-1"><a class="header-anchor" href="#训练分辨率" aria-hidden="true">#</a> 训练分辨率</h3><p>训练时的分辨率 <code>宽,高</code>,可以是非正方形,但必须为64的整数倍。建议使用大于 512x512 且小于 1024x1024 的值,长宽比根据训练集的占比决定,一般来说方形的可以照顾到各种不同的分辨率。如果多数为长图可以使用512x768这种分辨率,如果宽图居多则可以使用768x512等。</p><h3 id="arb-桶" tabindex="-1"><a class="header-anchor" href="#arb-桶" aria-hidden="true">#</a> ARB 桶</h3><p>默认开启 ARB 桶,以允许使用非固定宽高比的图像来训练(简单来说就是不需要手动剪裁了)。ARB 桶在一定程度上会增加训练时间。 <strong>ARB桶分辨率必须大于训练分辨率</strong></p><h2 id="学习率与优化器设置" tabindex="-1"><a class="header-anchor" href="#学习率与优化器设置" aria-hidden="true">#</a> 学习率与优化器设置</h2><h3 id="学习率设置" tabindex="-1"><a class="header-anchor" href="#学习率设置" aria-hidden="true">#</a> 学习率设置</h3><p>UNet和TE的学习率通常是不同的,因为学习难度不同,通常UNet的学习率会比TE高 。</p><p><img src="https://s1.ax1x.com/2023/05/28/p9OZm6S.png" alt="p9OZm6S.png"> 如图所示,我们希望UNet和TE都处于一个恰好的位置(绿色部分),但是这个值我们不知道。</p><p>如果UNet训练不足,那么生成的图会不像,UNet训练过度会导致面部扭曲或者产生大量色块。TE训练不足会让出图对Prompt的服从度低,TE训练过度则会生成多余的物品。</p><p><strong>总学习步数 = (图片数量 * 重复次数 * epoch)/ 批次大小</strong></p><p>以UNet学习率为1e-4为例,一般来说图片较少的时候训练人物需要至少1000步,训练画风则需要至少2500步,训练概念则需要至少3000步。这里只是最低的步数,图片多则需要更多步数。学习率更大可以适当减少步数,但并非线性关系,使用两倍的学习率需要使用比之前步数的一半更多的步数。</p><p><strong>决定学习率和步数的最好方法是先训练,再测试。一般比较好的初始值为UNet使用1e-4,TE���用5e-5</strong></p><h3 id="学习率调整策略-lr-scheduler" tabindex="-1"><a class="header-anchor" href="#学习率调整策略-lr-scheduler" aria-hidden="true">#</a> 学习率调整策略(lr_scheduler)</h3><p>推荐使用余弦退火cosine。如果开启预热,预热步数应该占总步数的5%-10%。</p><p>如果使用带重启的余弦退火cosine_with_restarts,重启次数不应该超过4次。</p><h3 id="批次大小-batch-size" tabindex="-1"><a class="header-anchor" href="#批次大小-batch-size" aria-hidden="true">#</a> 批次大小 (batch_size)</h3><p>Batch size 越大梯度越稳定,也可以使用更大的学习率来加速收敛,但是占用显存也更大。</p><p>一般而言 2 倍的 batch_size 可以使用两倍的 UNet 学习率,但是TE学习率不能提高太多。</p><h3 id="优化器" tabindex="-1"><a class="header-anchor" href="#优化器" aria-hidden="true">#</a> 优化器</h3><p>这里只介绍最常用的三种:</p><ul><li><strong>AdamW8bit</strong>:启用的int8优化的AdamW优化器,默认选项。</li><li><strong>Lion</strong>:Google Brain发表的新优化器,各方面表现优于AdamW,同时占用显存更小,可能需要更大的batch size以保持梯度更新稳定。</li><li><strong>D-Adaptation</strong>:FB发表的自适应学习率的优化器,调参简单,无需手动控制学习率,但是占用显存巨大(通常需要大于8G)。使用时<strong>设置学习率为1</strong>即可,同时<strong>学习率调整策略使用constant</strong>。需要添加"--optimizer_args decouple=True"来分离UNet和TE的学习率。(这些设置训练UI都会帮你自动处理)</li></ul><h2 id="网络设置" tabindex="-1"><a class="header-anchor" href="#网络设置" aria-hidden="true">#</a> 网络设置</h2><h3 id="网络结构-lora-locon-loha-dylora" tabindex="-1"><a class="header-anchor" href="#网络结构-lora-locon-loha-dylora" aria-hidden="true">#</a> 网络结构(LoRA/LoCon/LoHa/DyLoRA)</h3><p>不同网络结构对应不同的矩阵低秩分解方法。LoRA 是老祖宗,只控制模型中的线性层和1x1卷积层,后续的不同网络结构都是在 LoRA 的基础上进行改进。</p><p>LyCORIS 对其进行改进,添加了其他几种算法:</p><ul><li>LoCon 加入了对卷积层 (Conv) 的控制</li><li>LoHa(哈达玛积)和 LoKr(克罗内克积)</li><li>IA3</li></ul><p>理论上来说 LyCORIS 会比 LoRA 拥有更加强的微调效果,但是也更加容易过拟合。</p><p>需要注意的是,不同的网络结构一般需要对应不同的 dim 以及学习率。</p><h3 id="网络大小" tabindex="-1"><a class="header-anchor" href="#网络大小" aria-hidden="true">#</a> 网络大小</h3><p>网络大小应该根据实际的训练集图片数量和使用的网络结构决定</p><p><img src="https://s1.ax1x.com/2023/05/28/p9OZam4.jpg" alt="p9OZam4.jpg"></p><p>上表中值为我自己的角色训练推荐值,训练画风和概念需要适当增加 Linear 部分大小。推荐值并非对各个不同的数据集都是最优的,需要自己实验得出最优。Conv 的大小最好不要超过8。</p><h3 id="网络alpha-network-alpha" tabindex="-1"><a class="header-anchor" href="#网络alpha-network-alpha" aria-hidden="true">#</a> 网络Alpha(network_alpha)</h3><p>alpha在训练期间缩放网络的权重,alpha越小学习越慢,关系可以认为是负线性相关的。</p><p>一般设置为dim/2或者dim/4。如果选择1,则需要提高学习率或者使用D-Adapation优化器。</p><h2 id="高级设置" tabindex="-1"><a class="header-anchor" href="#高级设置" aria-hidden="true">#</a> 高级设置</h2><h3 id="caption-相关" tabindex="-1"><a class="header-anchor" href="#caption-相关" aria-hidden="true">#</a> Caption 相关</h3><h4 id="caption-dropout" tabindex="-1"><a class="header-anchor" href="#caption-dropout" aria-hidden="true">#</a> caption dropout</h4><p>网上关于这几个caption dropout的说明少之又少,甚至作者在文档里面也没有包含这些参数,只能在代码注释里面找到说明。但是caption dropout在某些情况下对模型性能有提升,所以拿出来讲一下。</p><p>caption_dropout_rate:丢弃全部标签的概率,对一个图片概率不使用caption或class token</p><p>caption_dropout_every_n_epochs:每N个epoch丢弃全部标签。</p><p>caption_tag_dropout_rate:按逗号分隔的标签来随机丢弃tag的概率。<strong>如果使用DB+标签的训练方法训练画风</strong>,推荐使用这个参数,能够有效防止tag过拟合,<strong>一般选择0.2-0.5之间的值</strong>。<strong>训练人物则无需开启</strong>。</p><h4 id="token-热身" tabindex="-1"><a class="header-anchor" href="#token-热身" aria-hidden="true">#</a> token 热身</h4><p>两个token热身相关的参数。</p><p>token_warmup_min:最小学习的token数量,token_warmup_step: 在多少步后达到最大token数量。</p><p>token_warmup可以理解为另一种形式的caption dropout,但是如果不随机打乱token,则只会学习前���N个token。本人并未实测过启用这两个参数的效果,有兴趣可以自行实验。</p><h3 id="噪声相关" tabindex="-1"><a class="header-anchor" href="#噪声相关" aria-hidden="true">#</a> 噪声相关</h3><h4 id="噪声偏移-noise-offset" tabindex="-1"><a class="header-anchor" href="#噪声偏移-noise-offset" aria-hidden="true">#</a> 噪声偏移(noise_offset)</h4><p>在训练过程中加入全局的噪声,改善图片的亮度变化范围(能生成更黑或者更白的图片)。</p><p>如果需要开启,<strong>推荐设置值为0.1</strong>,<strong>同时需要增加学习步数作为网络收敛更慢的补偿</strong>。</p><h4 id="多分辨率-金字塔噪声-multires-noise-iterations、multires-noise-discount" tabindex="-1"><a class="header-anchor" href="#多分辨率-金字塔噪声-multires-noise-iterations、multires-noise-discount" aria-hidden="true">#</a> 多分辨率/金字塔噪声 multires_noise_iterations、multires_noise_discount</h4><p>多分辨率/金字塔噪声相关参数。iteration设置在6-8,再高提升不大。discount设置在0.3-0.8之间,更小的值需要更多步数。</p><h3 id="其他一堆参数" tabindex="-1"><a class="header-anchor" href="#其他一堆参数" aria-hidden="true">#</a> 其他一堆参数</h3><ul><li><p><strong>CLIP_SKIP</strong> CLIP模型使用倒数第N层的输出,需要与底模使用的值保持一致,如果是基于NAI的二次元模型,应当使用2。如果是SD1.5等真实模型应当使用1。生成时也应该使用同样的值。</p></li><li><p><strong>Min-SNR-γ</strong> 发表于今年CVPR23上的一种加速扩散模型收敛的方法。不同样本批次的学习难度不同导致梯度方向不一致所以收敛慢,于是引入根据信噪比调整学习率比重。 <strong>设置在5左右的值</strong>是实验效果比较好的,但是注意优化器<strong>使用D-Adaptation的时候不适用</strong>,因为学习率是优化器控制的。</p></li><li><p><strong>数据增强相关</strong> 数据增强是在训练时实时对图片做变换的方法,可用于防止过拟合,能用的一共有四种: color_aug, flip_aug, face_crop_aug_range, random_crop。 其中只有翻转(flip_aug)能和cache latent兼容,因为latent可以直接翻转。 <strong>四种都不推荐使用</strong>,因为裁剪图片的两种cropping方法都会导致tag对应不上。color_aug无法启用cache latent导致训练慢,得不偿失。翻转的flip_aug在图像不对称的情况下表现差,会导致无法正确生成人物不对称的特征(刘海、发饰等)。</p></li><li><p><strong>max_grad_norm</strong> 限制模型更新梯度的大小,改善数值稳定性。梯度的范数超过这个值将会被缩放到这个大小,<strong>一般来说无需设置</strong>。</p></li><li><p><strong>gradient_accumulation_steps</strong> 梯度累积步数,用于在小显存上模拟大batch size的效果。<strong>如果显存足够使用4以上的batch size就没必要启用</strong>。</p></li><li><p><strong>log_with、wandb_api_key</strong> 选择logger类型,可选tensorboard或者wandb。使用wandb需要指定api key。</p></li><li><p><strong>prior_loss_weight</strong> DB训练当中先验部分的权重,控制正则化图像的强度,论文中使用的是1的值,<strong>如无特殊情况无需更改</strong>。</p></li><li><p><strong>debug_dataset</strong> 不训练模型,仅输出训练集元数据和训练参数信息,可以用来检查各项设置是否正确。</p></li><li><p><strong>vae_batch_size</strong> cache lantent的时候VAE编码器的batch size,和训练效果无关。<strong>一般来说使用2-4可以加速一点cache latent的过程</strong>。因为VAE编码器本身参数量比较小,实测在Linux机器上8G的显卡也能开启4。Windows下系统占用显存较多,显存小于10G不建议开启。</p></li></ul><div class="custom-container tip"><p class="custom-container-title">TIP</p><p>文档尚未完结~!</p><p>by <a href="https://space.bilibili.com/12566101" target="_blank" rel="noopener noreferrer">秋葉<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a> & <a href="https://space.bilibili.com/1713054" target="_blank" rel="noopener noreferrer">Impossib1e嗨<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></p><p>感谢 Impossib1e嗨 贡献的大量文档</p></div></div><!--[--><!--]--></div><footer class="page-meta"><!----><!----><!----></footer><!----><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
|
31 |
+
<script type="module" src="/assets/app.406c12df.js" defer></script>
|
32 |
+
</body>
|
33 |
+
</html>
|
frontend/dist/other/about.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-US">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6 |
+
<meta name="generator" content="VuePress 2.0.0-beta.49">
|
7 |
+
<style>
|
8 |
+
:root {
|
9 |
+
--c-bg: #fff;
|
10 |
+
}
|
11 |
+
html.dark {
|
12 |
+
--c-bg: #22272e;
|
13 |
+
}
|
14 |
+
html, body {
|
15 |
+
background-color: var(--c-bg);
|
16 |
+
}
|
17 |
+
</style>
|
18 |
+
<script>
|
19 |
+
const userMode = localStorage.getItem('vuepress-color-scheme');
|
20 |
+
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
21 |
+
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
22 |
+
document.documentElement.classList.toggle('dark', true);
|
23 |
+
}
|
24 |
+
</script>
|
25 |
+
<title>SD 训练 UI</title><meta name="description" content="">
|
26 |
+
<link rel="modulepreload" href="/assets/app.406c12df.js"><link rel="modulepreload" href="/assets/about.html.5113db77.js"><link rel="modulepreload" href="/assets/about.html.5b0c0de9.js"><link rel="prefetch" href="/assets/index.html.9d7cc666.js"><link rel="prefetch" href="/assets/tagger.html.d98b6655.js"><link rel="prefetch" href="/assets/tensorboard.html.37ea225e.js"><link rel="prefetch" href="/assets/index.html.fbbfced2.js"><link rel="prefetch" href="/assets/basic.html.a7870e5f.js"><link rel="prefetch" href="/assets/index.html.b97ec799.js"><link rel="prefetch" href="/assets/master.html.76757967.js"><link rel="prefetch" href="/assets/params.html.c8cc13ef.js"><link rel="prefetch" href="/assets/404.html.686caba0.js"><link rel="prefetch" href="/assets/index.html.c4113495.js"><link rel="prefetch" href="/assets/tagger.html.49fb651e.js"><link rel="prefetch" href="/assets/tensorboard.html.92d7d710.js"><link rel="prefetch" href="/assets/index.html.647b0b74.js"><link rel="prefetch" href="/assets/basic.html.002769d7.js"><link rel="prefetch" href="/assets/index.html.12bc7781.js"><link rel="prefetch" href="/assets/master.html.89b46f6c.js"><link rel="prefetch" href="/assets/params.html.3151a571.js"><link rel="prefetch" href="/assets/404.html.1c89c614.js"><link rel="prefetch" href="/assets/404.0ca36773.js"><link rel="prefetch" href="/assets/layout.2e2cec1b.js">
|
27 |
+
<link rel="stylesheet" href="/assets/style.a8135c07.css">
|
28 |
+
</head>
|
29 |
+
<body>
|
30 |
+
<div id="app"><!--[--><div class="theme-container no-navbar"><!--[--><!----><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar" data-v-6550c740><div class="el-scrollbar" data-v-6550c740><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><div class="sidebar-container" data-v-6550c740><!----><ul class="sidebar-items" data-v-6550c740><!--[--><li><a href="/" class="sidebar-item sidebar-heading" aria-label="SD-Trainer"><!--[--><!--]--> SD-Trainer <!--[--><!--]--></a><!----></li><li><a href="/lora/index.md" class="sidebar-item sidebar-heading" aria-label="LoRA训练"><!--[--><!--]--> LoRA训练 <!--[--><!--]--></a><ul style="display:none;" class="sidebar-item-children"><!--[--><li><a href="/lora/basic.md" class="sidebar-item" aria-label="新手"><!--[--><!--]--> 新手 <!--[--><!--]--></a><!----></li><li><a href="/lora/master.md" class="sidebar-item" aria-label="专家"><!--[--><!--]--> 专家 <!--[--><!--]--></a><!----></li><li><a href="/lora/params.md" class="sidebar-item" aria-label="参数详解"><!--[--><!--]--> 参数详解 <!--[--><!--]--></a><!----></li><!--]--></ul></li><li><a href="/tensorboard.md" class="sidebar-item sidebar-heading" aria-label="Tensorboard"><!--[--><!--]--> Tensorboard <!--[--><!--]--></a><!----></li><li><a href="/tagger.md" class="sidebar-item sidebar-heading" aria-label="WD 1.4 标签器"><!--[--><!--]--> WD 1.4 标签器 <!--[--><!--]--></a><!----></li><li><a href="/other/about.md" class="sidebar-item sidebar-heading active" aria-label="关于"><!--[--><!--]--> 关于 <!--[--><!--]--></a><!----></li><!--]--></ul><ul class="sidebar-bottom" data-v-6550c740><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> Github <a class="icon" href="https://github.com/hanamizuki-ai" target="_blank" aria-label="GitHub" data-v-6550c740><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" data-v-6550c740><path d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476c0-.237-.013-1.024-.013-1.862c-2.512.463-3.162-.612-3.362-1.175c-.113-.288-.6-1.175-1.025-1.413c-.35-.187-.85-.65-.013-.662c.788-.013 1.35.725 1.538 1.025c.9 1.512 2.338 1.087 2.912.825c.088-.65.35-1.087.638-1.337c-2.225-.25-4.55-1.113-4.55-4.938c0-1.088.387-1.987 1.025-2.688c-.1-.25-.45-1.275.1-2.65c0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337c1.912-1.3 2.75-1.024 2.75-1.024c.55 1.375.2 2.4.1 2.65c.637.7 1.025 1.587 1.025 2.687c0 3.838-2.337 4.688-4.562 4.938c.362.312.675.912.675 1.85c0 1.337-.013 2.412-.013 2.75c0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z" fill="currentColor" data-v-6550c740></path></svg></a></li><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> 灯泡 <button class="toggle-color-mode-button" title="toggle color mode" data-v-6550c740><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button></li></ul></div><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></aside><!--]--><!--[--><main class="page"><!--[--><!--]--><div class="theme-default-content"><!--[--><!--]--><div><h2 id="关于" tabindex="-1"><a class="header-anchor" href="#关于" aria-hidden="true">#</a> 关于</h2><p>由 <a href="https://github.com/shigma/schemastery" target="_blank" rel="noopener noreferrer">schemastery<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a> 强力驱动</p><h3 id="反馈" tabindex="-1"><a class="header-anchor" href="#反馈" aria-hidden="true">#</a> 反馈</h3><p>请前往 Github 提交 <a href="https://github.com/Akegarasu/lora-scripts/issues" target="_blank" rel="noopener noreferrer">issue<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></p><h3 id="联系方式" tabindex="-1"><a class="header-anchor" href="#联系方式" aria-hidden="true">#</a> 联系方式</h3><p>邮箱:[email protected]</p><p><a href="https://discord.gg/Uu3syD9PnR" target="_blank" rel="noopener noreferrer">discord 频道<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span></a></p></div><!--[--><!--]--></div><footer class="page-meta"><!----><!----><!----></footer><!----><!--[--><!--]--></main><!--]--></div><!----><!--]--></div>
|
31 |
+
<script type="module" src="/assets/app.406c12df.js" defer></script>
|
32 |
+
</body>
|
33 |
+
</html>
|
frontend/dist/tagger.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-US">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6 |
+
<meta name="generator" content="VuePress 2.0.0-beta.49">
|
7 |
+
<style>
|
8 |
+
:root {
|
9 |
+
--c-bg: #fff;
|
10 |
+
}
|
11 |
+
html.dark {
|
12 |
+
--c-bg: #22272e;
|
13 |
+
}
|
14 |
+
html, body {
|
15 |
+
background-color: var(--c-bg);
|
16 |
+
}
|
17 |
+
</style>
|
18 |
+
<script>
|
19 |
+
const userMode = localStorage.getItem('vuepress-color-scheme');
|
20 |
+
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
21 |
+
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
22 |
+
document.documentElement.classList.toggle('dark', true);
|
23 |
+
}
|
24 |
+
</script>
|
25 |
+
<title>Tagger 标注工具 | SD 训练 UI</title><meta name="description" content="">
|
26 |
+
<link rel="modulepreload" href="/assets/app.406c12df.js"><link rel="modulepreload" href="/assets/tagger.html.49fb651e.js"><link rel="modulepreload" href="/assets/tagger.html.d98b6655.js"><link rel="prefetch" href="/assets/index.html.9d7cc666.js"><link rel="prefetch" href="/assets/tensorboard.html.37ea225e.js"><link rel="prefetch" href="/assets/index.html.fbbfced2.js"><link rel="prefetch" href="/assets/basic.html.a7870e5f.js"><link rel="prefetch" href="/assets/index.html.b97ec799.js"><link rel="prefetch" href="/assets/master.html.76757967.js"><link rel="prefetch" href="/assets/params.html.c8cc13ef.js"><link rel="prefetch" href="/assets/about.html.5b0c0de9.js"><link rel="prefetch" href="/assets/404.html.686caba0.js"><link rel="prefetch" href="/assets/index.html.c4113495.js"><link rel="prefetch" href="/assets/tensorboard.html.92d7d710.js"><link rel="prefetch" href="/assets/index.html.647b0b74.js"><link rel="prefetch" href="/assets/basic.html.002769d7.js"><link rel="prefetch" href="/assets/index.html.12bc7781.js"><link rel="prefetch" href="/assets/master.html.89b46f6c.js"><link rel="prefetch" href="/assets/params.html.3151a571.js"><link rel="prefetch" href="/assets/about.html.5113db77.js"><link rel="prefetch" href="/assets/404.html.1c89c614.js"><link rel="prefetch" href="/assets/404.0ca36773.js"><link rel="prefetch" href="/assets/layout.2e2cec1b.js">
|
27 |
+
<link rel="stylesheet" href="/assets/style.a8135c07.css">
|
28 |
+
</head>
|
29 |
+
<body>
|
30 |
+
<div id="app"><!--[--><div class="theme-container no-navbar"><!--[--><!----><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar" data-v-6550c740><div class="el-scrollbar" data-v-6550c740><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><div class="sidebar-container" data-v-6550c740><!----><ul class="sidebar-items" data-v-6550c740><!--[--><li><a href="/" class="sidebar-item sidebar-heading" aria-label="SD-Trainer"><!--[--><!--]--> SD-Trainer <!--[--><!--]--></a><!----></li><li><a href="/lora/index.md" class="sidebar-item sidebar-heading" aria-label="LoRA训练"><!--[--><!--]--> LoRA训练 <!--[--><!--]--></a><ul style="display:none;" class="sidebar-item-children"><!--[--><li><a href="/lora/basic.md" class="sidebar-item" aria-label="新手"><!--[--><!--]--> 新手 <!--[--><!--]--></a><!----></li><li><a href="/lora/master.md" class="sidebar-item" aria-label="专家"><!--[--><!--]--> 专家 <!--[--><!--]--></a><!----></li><li><a href="/lora/params.md" class="sidebar-item" aria-label="参数详解"><!--[--><!--]--> 参数详解 <!--[--><!--]--></a><!----></li><!--]--></ul></li><li><a href="/tensorboard.md" class="sidebar-item sidebar-heading" aria-label="Tensorboard"><!--[--><!--]--> Tensorboard <!--[--><!--]--></a><!----></li><li><a href="/tagger.md" class="sidebar-item sidebar-heading active" aria-label="WD 1.4 标签器"><!--[--><!--]--> WD 1.4 标签器 <!--[--><!--]--></a><!----></li><li><a href="/other/about.md" class="sidebar-item sidebar-heading" aria-label="关于"><!--[--><!--]--> 关于 <!--[--><!--]--></a><!----></li><!--]--></ul><ul class="sidebar-bottom" data-v-6550c740><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> Github <a class="icon" href="https://github.com/hanamizuki-ai" target="_blank" aria-label="GitHub" data-v-6550c740><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" data-v-6550c740><path d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476c0-.237-.013-1.024-.013-1.862c-2.512.463-3.162-.612-3.362-1.175c-.113-.288-.6-1.175-1.025-1.413c-.35-.187-.85-.65-.013-.662c.788-.013 1.35.725 1.538 1.025c.9 1.512 2.338 1.087 2.912.825c.088-.65.35-1.087.638-1.337c-2.225-.25-4.55-1.113-4.55-4.938c0-1.088.387-1.987 1.025-2.688c-.1-.25-.45-1.275.1-2.65c0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337c1.912-1.3 2.75-1.024 2.75-1.024c.55 1.375.2 2.4.1 2.65c.637.7 1.025 1.587 1.025 2.687c0 3.838-2.337 4.688-4.562 4.938c.362.312.675.912.675 1.85c0 1.337-.013 2.412-.013 2.75c0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z" fill="currentColor" data-v-6550c740></path></svg></a></li><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> 灯泡 <button class="toggle-color-mode-button" title="toggle color mode" data-v-6550c740><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button></li></ul></div><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></aside><!--]--><!--[--><div class="example-container"><section class="schema-container"><!----></section><div class="right-container"><section class="theme-default-content"><div class="el-scrollbar"><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><main><div><h1 id="tagger-标注工具" tabindex="-1"><a class="header-anchor" href="#tagger-标注工具" aria-hidden="true">#</a> Tagger 标注工具</h1><p>后端基于 wd14-tagger 开发。</p><p>模型使用 <code>SmilingWolf/wd-v1-4-convnextv2-tagger-v2</code></p><h3 id="推荐参数" tabindex="-1"><a class="header-anchor" href="#推荐参数" aria-hidden="true">#</a> 推荐参数</h3><p>阈值大于 0.35</p></div></main><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></section><button ariadisabled="false" type="button" class="el-button" style="margin:10px 20px 0 20px;"><!--v-if--><span class=""><!--[-->启动<!--]--></span></button><button ariadisabled="false" type="button" class="el-button" style="margin:10px 20px 10px 20px;"><!--v-if--><span class=""><!--[-->全部重置<!--]--></span></button><section id="test-output"><header>Output</header><main><code><!----></code></main></section></div></div><!--]--></div><!----><!--]--></div>
|
31 |
+
<script type="module" src="/assets/app.406c12df.js" defer></script>
|
32 |
+
</body>
|
33 |
+
</html>
|
frontend/dist/tensorboard.html
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en-US">
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6 |
+
<meta name="generator" content="VuePress 2.0.0-beta.49">
|
7 |
+
<style>
|
8 |
+
:root {
|
9 |
+
--c-bg: #fff;
|
10 |
+
}
|
11 |
+
html.dark {
|
12 |
+
--c-bg: #22272e;
|
13 |
+
}
|
14 |
+
html, body {
|
15 |
+
background-color: var(--c-bg);
|
16 |
+
}
|
17 |
+
</style>
|
18 |
+
<script>
|
19 |
+
const userMode = localStorage.getItem('vuepress-color-scheme');
|
20 |
+
const systemDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
21 |
+
if (userMode === 'dark' || (userMode !== 'light' && systemDarkMode)) {
|
22 |
+
document.documentElement.classList.toggle('dark', true);
|
23 |
+
}
|
24 |
+
</script>
|
25 |
+
<title>SD 训练 UI</title><meta name="description" content="">
|
26 |
+
<link rel="modulepreload" href="/assets/app.406c12df.js"><link rel="modulepreload" href="/assets/tensorboard.html.92d7d710.js"><link rel="modulepreload" href="/assets/tensorboard.html.37ea225e.js"><link rel="prefetch" href="/assets/index.html.9d7cc666.js"><link rel="prefetch" href="/assets/tagger.html.d98b6655.js"><link rel="prefetch" href="/assets/index.html.fbbfced2.js"><link rel="prefetch" href="/assets/basic.html.a7870e5f.js"><link rel="prefetch" href="/assets/index.html.b97ec799.js"><link rel="prefetch" href="/assets/master.html.76757967.js"><link rel="prefetch" href="/assets/params.html.c8cc13ef.js"><link rel="prefetch" href="/assets/about.html.5b0c0de9.js"><link rel="prefetch" href="/assets/404.html.686caba0.js"><link rel="prefetch" href="/assets/index.html.c4113495.js"><link rel="prefetch" href="/assets/tagger.html.49fb651e.js"><link rel="prefetch" href="/assets/index.html.647b0b74.js"><link rel="prefetch" href="/assets/basic.html.002769d7.js"><link rel="prefetch" href="/assets/index.html.12bc7781.js"><link rel="prefetch" href="/assets/master.html.89b46f6c.js"><link rel="prefetch" href="/assets/params.html.3151a571.js"><link rel="prefetch" href="/assets/about.html.5113db77.js"><link rel="prefetch" href="/assets/404.html.1c89c614.js"><link rel="prefetch" href="/assets/404.0ca36773.js"><link rel="prefetch" href="/assets/layout.2e2cec1b.js">
|
27 |
+
<link rel="stylesheet" href="/assets/style.a8135c07.css">
|
28 |
+
</head>
|
29 |
+
<body>
|
30 |
+
<div id="app"><!--[--><div class="theme-container no-navbar"><!--[--><!----><!--]--><div class="sidebar-mask"></div><!--[--><aside class="sidebar" data-v-6550c740><div class="el-scrollbar" data-v-6550c740><div class="el-scrollbar__wrap el-scrollbar__wrap--hidden-default" style=""><div class="el-scrollbar__view" style=""><!--[--><div class="sidebar-container" data-v-6550c740><!----><ul class="sidebar-items" data-v-6550c740><!--[--><li><a href="/" class="sidebar-item sidebar-heading" aria-label="SD-Trainer"><!--[--><!--]--> SD-Trainer <!--[--><!--]--></a><!----></li><li><a href="/lora/index.md" class="sidebar-item sidebar-heading" aria-label="LoRA训练"><!--[--><!--]--> LoRA训练 <!--[--><!--]--></a><ul style="display:none;" class="sidebar-item-children"><!--[--><li><a href="/lora/basic.md" class="sidebar-item" aria-label="新手"><!--[--><!--]--> 新手 <!--[--><!--]--></a><!----></li><li><a href="/lora/master.md" class="sidebar-item" aria-label="专家"><!--[--><!--]--> 专家 <!--[--><!--]--></a><!----></li><li><a href="/lora/params.md" class="sidebar-item" aria-label="参数详解"><!--[--><!--]--> 参数详解 <!--[--><!--]--></a><!----></li><!--]--></ul></li><li><a href="/tensorboard.md" class="sidebar-item sidebar-heading active" aria-label="Tensorboard"><!--[--><!--]--> Tensorboard <!--[--><!--]--></a><!----></li><li><a href="/tagger.md" class="sidebar-item sidebar-heading" aria-label="WD 1.4 标签器"><!--[--><!--]--> WD 1.4 标签器 <!--[--><!--]--></a><!----></li><li><a href="/other/about.md" class="sidebar-item sidebar-heading" aria-label="关于"><!--[--><!--]--> 关于 <!--[--><!--]--></a><!----></li><!--]--></ul><ul class="sidebar-bottom" data-v-6550c740><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> Github <a class="icon" href="https://github.com/hanamizuki-ai" target="_blank" aria-label="GitHub" data-v-6550c740><svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" data-v-6550c740><path d="M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 0 0 6.838 9.488c.5.087.687-.213.687-.476c0-.237-.013-1.024-.013-1.862c-2.512.463-3.162-.612-3.362-1.175c-.113-.288-.6-1.175-1.025-1.413c-.35-.187-.85-.65-.013-.662c.788-.013 1.35.725 1.538 1.025c.9 1.512 2.338 1.087 2.912.825c.088-.65.35-1.087.638-1.337c-2.225-.25-4.55-1.113-4.55-4.938c0-1.088.387-1.987 1.025-2.688c-.1-.25-.45-1.275.1-2.65c0 0 .837-.262 2.75 1.026a9.28 9.28 0 0 1 2.5-.338c.85 0 1.7.112 2.5.337c1.912-1.3 2.75-1.024 2.75-1.024c.55 1.375.2 2.4.1 2.65c.637.7 1.025 1.587 1.025 2.687c0 3.838-2.337 4.688-4.562 4.938c.362.312.675.912.675 1.85c0 1.337-.013 2.412-.013 2.75c0 .262.188.574.688.474A10.016 10.016 0 0 0 22 12c0-5.525-4.475-10-10-10z" fill="currentColor" data-v-6550c740></path></svg></a></li><li class="sidebar-item sidebar-heading appearance" data-v-6550c740> 灯泡 <button class="toggle-color-mode-button" title="toggle color mode" data-v-6550c740><svg style="" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg><svg style="display:none;" class="icon" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg></button></li></ul></div><!--]--></div></div><!--[--><div class="el-scrollbar__bar is-horizontal" style="display:none;"><div class="el-scrollbar__thumb" style="width:0;transform:translateX(0%);"></div></div><div class="el-scrollbar__bar is-vertical" style="display:none;"><div class="el-scrollbar__thumb" style="height:0;transform:translateY(0%);"></div></div><!--]--></div></aside><!--]--><!--[--><div class="iframe-container"><iframe class="iframe-main" src="http://127.0.0.1:6006" width="100%"></iframe></div><!--]--></div><!----><!--]--></div>
|
31 |
+
<script type="module" src="/assets/app.406c12df.js" defer></script>
|
32 |
+
</body>
|
33 |
+
</html>
|