From 7f10aa36367535375a0ed5313a42e643170f6461 Mon Sep 17 00:00:00 2001 From: journey-ad Date: Tue, 28 Feb 2023 00:12:08 +0800 Subject: [PATCH] feat: Refactoring the extension to support select localization file --- .gitignore | 1 + i18n/i18n.json | 2105 -------- i18n/tags_i18n.csv | 5700 ---------------------- javascript/bilingual_localization.js | 200 + javascript/i18n.js | 377 -- scripts/bilingual_localization_helper.py | 30 + 6 files changed, 231 insertions(+), 8182 deletions(-) create mode 100644 .gitignore delete mode 100644 i18n/i18n.json delete mode 100644 i18n/tags_i18n.csv create mode 100644 javascript/bilingual_localization.js delete mode 100644 javascript/i18n.js create mode 100644 scripts/bilingual_localization_helper.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c18dd8d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__/ diff --git a/i18n/i18n.json b/i18n/i18n.json deleted file mode 100644 index 832a18f..0000000 --- a/i18n/i18n.json +++ /dev/null @@ -1,2105 +0,0 @@ -{ - "⤡": "⤡", - "⊞": "⊞", - "×": "×", - "❮": "❮", - "❯": "❯", - "Loading...": "载入中...", - "Use via API": "使用了 via API", - "·": "·", - "Built with Gradio": "基于 Gradio 构建", - "Stable Diffusion checkpoint": "Stable Diffusion 模型", - "txt2img": "文生图", - "img2img": "图生图", - "Extras": "附加功能", - "PNG Info": "图片信息", - "Checkpoint Merger": "模型合并", - "Train": "训练", - "Settings": "设置", - "Extensions": "扩展", - "Prompt": "提示词", - "Negative prompt": "反向提示词", - "Interrupt": "中止", - "Skip": "跳过", - "Generate": "生成", - "Run": "运行", - "Styles": "模板风格", - "Label": "标记", - "File": "文件", - "Drop File Here": "拖拽文件到此", - "-": "-", - "or": "或", - "Click to Upload": "点击上传", - "Textual Inversion": "文本反转", - "Hypernetworks": "超网络", - "Checkpoints": "ckpt模型", - "Lora": "Lora模型", - "Refresh": "刷新", - "Close": "关闭", - "replace preview": "用当前生成图片替换预览", - "Nothing here. Add some content to the following directories:": "无内容,请将模型添加到以下目录:", - "Textbox": "文本框", - "Save preview": "保存预览", - "Sampling method": "采样方法", - "Euler a": "Euler a", - "Euler": "Euler", - "LMS": "LMS", - "Heun": "Heun", - "DPM2": "DPM2", - "DPM2 a": "DPM2 a", - "DPM++ 2S a": "DPM++ 2S a", - "DPM++ 2M": "DPM++ 2M", - "DPM++ SDE": "DPM++ SDE", - "DPM fast": "DPM fast", - "DPM adaptive": "DPM adaptive", - "LMS Karras": "LMS Karras", - "DPM2 Karras": "DPM2 Karras", - "DPM2 a Karras": "DPM2 a Karras", - "DPM++ 2S a Karras": "DPM++ 2S a Karras", - "DPM++ 2M Karras": "DPM++ 2M Karras", - "DPM++ SDE Karras": "DPM++ SDE Karras", - "DDIM": "DDIM", - "PLMS": "PLMS", - "Sampling steps": "采样迭代步数", - "Restore faces": "面部修复", - "Tiling": "可平铺", - "Hires. fix": "高清修复", - "Upscaler": "放大算法", - "Latent": "潜变量", - "Latent (antialiased)": "潜变量 (抗锯齿)", - "Latent (bicubic)": "潜变量 (bicubic)", - "Latent (bicubic antialiased)": "潜变量 (bicubic 抗锯齿)", - "Latent (nearest)": "潜变量 (最近邻)", - "Latent (nearest-exact)": "潜变量 (最近邻-整数)", - "None": "无", - "Lanczos": "Lanczos", - "Nearest": "Nearest", - "ESRGAN_4x": "ESRGAN_4x", - "R-ESRGAN 4x+": "R-ESRGAN 4x+", - "R-ESRGAN 4x+ Anime6B": "R-ESRGAN 4x+ Anime6B", - "LDSR": "LDSR", - "ScuNET GAN": "ScuNET GAN", - "ScuNET PSNR": "ScuNET PSNR", - "SwinIR 4x": "SwinIR 4x", - "Hires steps": "高清修复采样次数", - "Denoising strength": "重绘幅度", - "Upscale by": "放大倍率", - "Resize width to": "将宽度调整到", - "Resize height to": "将高度调整到", - "Width": "宽度", - "Height": "高度", - "⇅": "⇅", - "Batch count": "生成批次", - "Batch size": "每批数量", - "CFG Scale": "提示词相关性", - "Seed": "随机种子", - "Extra": "▼", - "Variation seed": "差异随机种子", - "Variation strength": "差异强度", - "Resize seed from width": "宽度(Resize seed)", - "Resize seed from height": "高度(Resize seed)", - "Override settings": "覆盖设置", - "ControlNet": "扩散控制网络", - "Image": "图像", - "Drop Image Here": "拖拽图像到此", - "Enable scribble mode if your image has white background.": "使用白色背景图片时请启用涂鸦模式", - "Invert colors if your image has white background.": "使用白色背景图片时请启用\"反色模式\"", - "Change your brush width to make it thinner if you want to draw something.": "绘制内容请先调整笔刷粗细", - "Enable": "启用", - "Scribble Mode (Invert colors)": "涂鸦模式(反色,强制预处理器重新识别)", - "Invert Input Color": "反色模式", - "RGB to BGR": "RGB转BGR", - "Low VRAM": "低显存优化", - "Guess Mode": "无提示词模式", - "Preprocessor": "预处理器(直接上传模式图或草稿时可选\"无\")", - "none": "无", - "canny": "Canny 边缘检测", - "depth": "MiDaS 深度信息估算", - "depth_leres": "LeReS 深度信息估算", - "hed": "HED 边缘检测(保留细节)", - "mlsd": "M-LSD 线条检测", - "normal_map": "法线贴图", - "openpose": "OpenPose 姿态检测", - "openpose_hand": "OpenPose 姿态及手部检测", - "pidinet": "PiDiNet 边缘检测(像素差分网络,可尝试配合HED模型)", - "scribble": "涂鸦", - "fake_scribble": "伪涂鸦", - "segmentation": "ADE20k 语义分割", - "Model": "模型", - "Weight": "权重", - "Guidance strength (T)": "引导强度(迭代参与%)", - "Annotator resolution": "预处理器分辨率", - "Threshold A": "阈值A", - "Threshold B": "阈值B", - "Resize Mode": "画面缩放模式", - "Envelope (Outer Fit)": "信封模式(裁切原图)", - "Scale to Fit (Inner Fit)": "缩放模式(扩展原图,推荐)", - "Just Resize": "仅调整大小(拉伸)", - "Canvas Width": "画布宽度(上传图片时忽略此项)", - "Canvas Height": "画布高度(上传图片时忽略此项)", - "Create blank canvas": "创建空白画布(使用手绘草稿而非上传的图片)", - "Preview annotator result": "预览预处理结果", - "Hide annotator result": "隐藏预处理预览", - "Script": "脚本", - "Prompt matrix": "提示词矩阵", - "Prompts from file or textbox": "从文本框或文件载入提示词", - "X/Y/Z plot": "X/Y/Z 图表", - "Put variable parts at start of prompt": "把可变部分放在提示词文本的开头", - "Use different seed for each picture": "为每张图片使用不同随机种子", - "Select prompt": "选择提示词", - "positive": "正面", - "negative": "负面", - "Select joining char": "选择分隔符", - "comma": "逗号", - "space": "空格", - "Grid margins (px)": "宫格图边框(像素)", - "Iterate seed every line": "每行输入都换一个随机种子", - "Use same random seed for all lines": "每行输入都使用同一个随机种子", - "List of prompt inputs": "提示词输入列表", - "Upload prompt inputs": "上传提示词输入文件", - "X type": "X轴类型", - "Nothing": "无", - "Var. seed": "差异随机种子", - "Var. strength": "差异强度", - "Steps": "采样迭代步数", - "Prompt S/R": "提示词搜索/替换", - "Prompt order": "提示词顺序", - "Sampler": "采样方法", - "Checkpoint name": "模型名", - "Sigma Churn": "Sigma Churn", - "Sigma min": "最小 Sigma", - "Sigma max": "最大 Sigma", - "Sigma noise": "Sigma 噪声", - "Eta": "Eta", - "Clip skip": "Clip 跳过层", - "Denoising": "重绘幅度", - "Hires upscaler": "高清修复放大算法", - "VAE": "VAE", - "[ControlNet] Model": "[ControlNet] 模型", - "[ControlNet] Weight": "[ControlNet] 权重", - "[ControlNet] Guidance Strength": "[ControlNet] 引导强度", - "[ControlNet] Resize Mode": "[ControlNet] 缩放模式", - "[ControlNet] Preprocessor": "[ControlNet] 预处理器", - "[ControlNet] Pre Resolution": "[ControlNet] 预处理器 分辨率", - "[ControlNet] Pre Threshold A": "[ControlNet] 预处理器 阈值A", - "[ControlNet] Pre Threshold B": "[ControlNet] 预处理器 阈值B", - "X values": "X轴值", - "Y type": "Y轴类型", - "Y values": "Y轴值", - "Z type": "Z轴类型", - "Z values": "Z轴值", - "Draw legend": "显示轴类型和值", - "Keep -1 for seeds": "保持随机种子为-1", - "Include Sub Images": "预览子图像", - "Include Sub Grids": "预览子宫格图", - "Swap X/Y axes": "XY互换", - "Swap Y/Z axes": "YZ互换", - "Swap X/Z axes": "XZ互换", - "Save": "保存", - "Zip": "打包", - "Send to img2img": ">> 图生图", - "Send to inpaint": ">> 局部重绘", - "Send to extras": ">> 附加功能", - "Interrogate\nCLIP": "CLIP\n反推", - "Interrogate\nDeepBooru": "DeepBooru\n反推", - "Sketch": "绘图", - "Inpaint": "局部重绘", - "Inpaint sketch": "局部重绘(手涂蒙版)", - "Inpaint upload": "局部重绘(上传蒙版)", - "Batch": "批量处理", - "Image for img2img": "图生图的图像", - "Copy image to:": "将图片复制到:", - "sketch": "绘图", - "inpaint": "局部重绘", - "inpaint sketch": "局部重绘(手涂蒙版)", - "Image for inpainting with mask": "用于局部重绘并手动画蒙版的图像", - "Color sketch inpainting": "彩色草图修复", - "Mask": "蒙版", - "Process images in a directory on the same machine where the server is running.": "处理服务器主机上某一目录里的图像", - "Use an empty output directory to save pictures normally instead of writing to the output directory.": "输出图像到一个空目录,而非设置里指定的输出目录", - "Add inpaint batch mask directory to enable inpaint batch processing.": "Add inpaint batch mask directory to enable inpaint batch processing.", - "Input directory": "输入目录", - "Output directory": "输出目录", - "Inpaint batch mask directory (required for inpaint batch processing only)": "修复批处理掩码目录(仅用于修复批处理)", - "Resize mode": "缩放模式", - "Just resize": "拉伸", - "Crop and resize": "裁剪", - "Resize and fill": "填充", - "Just resize (latent upscale)": "直接缩放 (放大潜变量)", - "Mask blur": "蒙版模糊", - "Mask transparency": "蒙版透明度", - "Mask mode": "蒙版模式", - "Inpaint masked": "重绘蒙版内容", - "Inpaint not masked": "重绘非蒙版内容", - "Masked content": "蒙版蒙住的内容", - "fill": "填充", - "original": "原图", - "latent noise": "潜变量噪声", - "latent nothing": "潜变量数值零", - "Inpaint area": "重绘区域", - "Whole picture": "全图", - "Only masked": "仅蒙版", - "Only masked padding, pixels": "仅蒙版模式的边缘预留像素", - "Image CFG Scale": "Image CFG Scale", - "img2img alternative test": "图生图的另一种测试", - "Loopback": "回送", - "Outpainting mk2": "向外绘制第二版", - "Poor man's outpainting": "效果稍差的向外绘制", - "SD upscale": "使用 SD 放大", - "should be 2 or lower.": "应小于等于2", - "Override `Sampling method` to Euler?(this method is built for it)": "覆写 `采样方法` 为 Euler?(这个方法就是为它设计的)", - "Override `prompt` to the same value as `original prompt`?(and `negative prompt`)": "覆写 `提示词` 为 `初始提示词`?(`反向提示词` 同理)", - "Original prompt": "初始提示词", - "Original negative prompt": "初始反向提示词", - "Override `Sampling Steps` to the same value as `Decode steps`?": "覆写 `采样迭代步数` 为 `解码迭代步数`?", - "Decode steps": "解码迭代步数", - "Override `Denoising strength` to 1?": "覆写 `重绘幅度` 为 1?", - "Decode CFG scale": "解码提示词相关性", - "Randomness": "随机度", - "Sigma adjustment for finding noise for image": "为寻找图中噪点的 Sigma 调整", - "Loops": "迭代次数", - "Denoising strength change factor": "重绘幅度的调整系数", - "Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8": "推荐设置:采样迭代步数:80-100,采样器:Euler a,重绘幅度:0.8", - "Pixels to expand": "拓展的像素数", - "Outpainting direction": "向外绘制的方向", - "left": "左", - "right": "右", - "up": "上", - "down": "下", - "Fall-off exponent (lower=higher detail)": "衰减指数(越小细节越好)", - "Color variation": "色彩变化", - "Will upscale the image by the selected scale factor; use width and height sliders to set tile size": "Will upscale the image by the selected scale factor; use width and height sliders to set tile size", - "Tile overlap": "图块重叠的像素", - "Scale Factor": "Scale Factor", - "Cond. Image Mask Weight": "图像调节屏蔽度", - "Single Image": "单张图像", - "Batch Process": "批量处理", - "Batch from Directory": "从目录进行批量处理", - "Source": "来源", - "Show result images": "显示输出图像", - "Scale by": "等比缩放", - "Scale to": "指定分辨率缩放", - "Resize": "缩放比例", - "Crop to fit": "裁剪以适应宽高比", - "Upscaler 2 visibility": "放大算法 2 可见度", - "GFPGAN visibility": "GFPGAN 可见度", - "CodeFormer visibility": "CodeFormer 可见度", - "CodeFormer weight (0 = maximum effect, 1 = minimum effect)": "CodeFormer 权重(为 0 时效果最大,为 1 时效果最小)", - "Send to txt2img": ">> 文生图", - "A weighted sum will be used for interpolation. Requires two models; A and B. The result is calculated as A * (1 - M) + B * M": "将两个模型权重的加权和作为新模型的权重,仅需要填入模型A和B,公式:A*(1-M) + B*M,倍率(M)为模型B所占比例", - "Primary model (A)": "模型 A", - "Secondary model (B)": "模型 B", - "Tertiary model (C)": "模型 C", - "Custom Name (Optional)": "输出模型文件名(留空则与模型A相同,同目录下会覆盖模型A)", - "Multiplier (M) - set to 0 to get model A": "倍率(M) - 设为0时输出模型与A完全相同", - "Interpolation Method": "合并算法(具体说明会显示在页面顶部)", - "No interpolation": "无插值", - "Weighted sum": "加权和", - "Add difference": "加上差值", - "Checkpoint format": "模型格式", - "ckpt": "ckpt", - "safetensors": "safetensors", - "Save as float16": "以 float16 储存", - "Copy config from": "从...复制配置文件", - "A, B or C": "A, B或C", - "B": "B", - "C": "C", - "Don't": "不复制配置文件(推荐)", - "Bake in VAE": "整合入模型的VAE", - "Discard weights with matching name": "放弃与下列名称匹配的权重,可以通过写入\"^model_ema\"以舍弃模型中的EMA信息", - "Merge": "合并", - "See": "查看", - "wiki": "wiki文档", - "for detailed explanation.": "以了解详细说明", - "Create embedding": "创建 Embedding", - "Create hypernetwork": "创建超网络", - "Preprocess images": "图像预处理", - "Name": "名称", - "Initialization text": "初始化文字", - "Number of vectors per token": "每个词元的向量数", - "Overwrite Old Embedding": "覆写旧的 Embedding", - "Modules": "模块", - "Enter hypernetwork layer structure": "输入超网络层结构", - "Select activation function of hypernetwork. Recommended : Swish / Linear(none)": "选择超网络的激活函数。建议:Swish / Linear(线性,等于不用)", - "linear": "linear", - "relu": "relu", - "leakyrelu": "leakyrelu", - "elu": "elu", - "swish": "swish", - "tanh": "tanh", - "sigmoid": "sigmoid", - "celu": "celu", - "gelu": "gelu", - "glu": "glu", - "hardshrink": "hardshrink", - "hardsigmoid": "hardsigmoid", - "hardtanh": "hardtanh", - "logsigmoid": "logsigmoid", - "logsoftmax": "logsoftmax", - "mish": "mish", - "prelu": "prelu", - "rrelu": "rrelu", - "relu6": "relu6", - "selu": "selu", - "silu": "silu", - "softmax": "softmax", - "softmax2d": "softmax2d", - "softmin": "softmin", - "softplus": "softplus", - "softshrink": "softshrink", - "softsign": "softsign", - "tanhshrink": "tanhshrink", - "threshold": "阈值", - "Select Layer weights initialization. Recommended: Kaiming for relu-like, Xavier for sigmoid-like, Normal otherwise": "选择初始化层权重的方案。建议:类relu 用 Kaiming; 类sigmoid 用 Xavier;其它就用正态", - "Normal": "正态", - "KaimingUniform": "Kaiming 均匀", - "KaimingNormal": "Kaiming 正态", - "XavierUniform": "Xavier 均匀", - "XavierNormal": "Xavier 正态", - "Add layer normalization": "添加层归一化", - "Use dropout": "采用 dropout 防止过拟合", - "Enter hypernetwork Dropout structure (or empty). Recommended : 0~0.35 incrementing sequence: 0, 0.05, 0.15": "输入超网络的 Dropout 结构(或留空)。建议:0~0.35 递增序列:0, 0.05, 0.15", - "Overwrite Old Hypernetwork": "覆写旧的超网络", - "Source directory": "源目录", - "Destination directory": "目标目录", - "Existing Caption txt Action": "对已有的 txt 描述文本的行为", - "ignore": "忽略", - "copy": "复制", - "prepend": "放前面", - "append": "放后面", - "Create flipped copies": "创建镜像副本", - "Split oversized images": "分割过大的图像", - "Auto focal point crop": "自动焦点裁切", - "Auto-sized crop": "自动尺寸裁切", - "Use BLIP for caption": "使用 BLIP 生成说明文字(自然语言描述)", - "Use deepbooru for caption": "使用 deepbooru 生成说明文字(tags)", - "Split image threshold": "图像分割阈值", - "Split image overlap ratio": "分割图像重叠的比率", - "Focal point face weight": "焦点面部权重", - "Focal point entropy weight": "焦点熵权重", - "Focal point edges weight": "焦点线条权重", - "Create debug image": "创建调试图像", - "Each image is center-cropped with an automatically chosen width and height.": "Each image is center-cropped with an automatically chosen width and height.", - "Dimension lower bound": "Dimension lower bound", - "Dimension upper bound": "Dimension upper bound", - "Area lower bound": "Area lower bound", - "Area upper bound": "Area upper bound", - "Resizing objective": "Resizing objective", - "Maximize area": "Maximize area", - "Minimize error": "Minimize error", - "Error threshold": "Error threshold", - "Preprocess": "预处理", - "Train an embedding or Hypernetwork; you must specify a directory with a set of 1:1 ratio images": "训练嵌入式模型或者超网络模型;必须指定一个具有一组 1:1 比例图像的目录", - "[wiki]": "[wiki文档]", - "Embedding": "嵌入式(Embedding)", - "Hypernetwork": "超网络(Hypernetwork)", - "Embedding Learning rate": "嵌入式学习率", - "Hypernetwork Learning rate": "超网络学习率", - "Gradient Clipping": "渐变剪裁", - "disabled": "禁用", - "value": "value", - "norm": "norm", - "Gradient accumulation steps": "梯度累加步数", - "Dataset directory": "数据集目录", - "Log directory": "日志目录", - "Prompt template": "提示词模板", - "Do not resize images": "不调整图像大小", - "Max steps": "最大迭代步数", - "Save an image to log directory every N steps, 0 to disable": "每 N 步保存一张图像到日志目录,0 表示禁用", - "Save a copy of embedding to log directory every N steps, 0 to disable": "每 N 步将 Embedding 的副本保存到日志目录,0 表示禁用", - "Save images with embedding in PNG chunks": "保存图像,并在 PNG 图片文件中嵌入 Embedding 文件", - "Read parameters (prompt, etc...) from txt2img tab when making previews": "进行预览时,从文生图选项卡中读取参数(提示词等)", - "Shuffle tags by ',' when creating prompts.": "创建提示词时按 ',' 打乱标签", - "Drop out tags when creating prompts.": "创建提示词时丢弃标签", - "Choose latent sampling method": "选择潜变量的采样方法", - "once": "单次复用", - "deterministic": "多次平均", - "random": "随机", - "Train Embedding": "训练 Embedding", - "Train Hypernetwork": "训练超网络", - "Apply settings": "保存设置", - "Reload UI": "重载用户界面", - "Saving images/grids": "保存图像/宫格图", - "Paths for saving": "保存路径", - "Saving to a directory": "保存到目录", - "Upscaling": "放大", - "Face restoration": "面部修复", - "System": "系统", - "Training": "训练", - "Stable Diffusion": "稳定扩散", - "Compatibility": "兼容性", - "Interrogate Options": "反推提示词(图生图页面)", - "Extra Networks": "附加网络", - "User interface": "用户界面", - "Live previews": "实时预览", - "Sampler parameters": "采样器参数", - "Postprocessing": "后处理", - "Actions": "其他操作", - "Licenses": "许可协议", - "Always save all generated images": "始终保存所有生成的图像", - "File format for images": "图像的文件格式", - "Images filename pattern": "图像文件名格式", - "Add number to filename when saving": "储存的时候在文件名里添加数字", - "Always save all generated image grids": "始终保存所有生成的宫格图", - "File format for grids": "宫格图的文件格式", - "Add extended info (seed, prompt) to filename when saving grid": "保存宫格图时,将扩展信息(随机种子、提示词)添加到文件名", - "Do not save grids consisting of one picture": "只有一张图像时不要保存宫格图(建议开启)", - "Prevent empty spots in grid (when set to autodetect)": "启用自动检测时,宫格图中不用空位填充(不开启时3张图会以2*2的形式排列,其中第四幅图为空,开启后行列仅可能为图片数量的因数)", - "Grid row count; use -1 for autodetect and 0 for it to be same as batch size": "宫格图行数; 使用 -1 进行自动检测,使用 0 使其与每批数量相同", - "Save text information about generation parameters as chunks to png files": "将有关生成参数的文本信息,作为块保存到 PNG 图片文件中(强烈建议开启)", - "Create a text file next to every image with generation parameters.": "保存图像时,在每个图像旁边创建一个文本文件储存生成参数(开启前一个选项后不建议开启)", - "Save a copy of image before doing face restoration.": "在进行面部修复之前保存图像副本", - "Save a copy of image before applying highres fix.": "在做高清修复之前保存初始图像副本", - "Save a copy of image before applying color correction to img2img results": "在对图生图结果应用颜色校正之前保存图像副本", - "Quality for saved jpeg images": "保存的 JPEG 图像的质量", - "If PNG image is larger than 4MB or any dimension is larger than 4000, downscale and save copy as JPG": "如果 PNG 图像大于 4MB 或宽高之一大于 4000,则缩小并保存副本为 JPG 图片", - "Use original name for output filename during batch process in extras tab": "在附加功能选项卡中的批量处理过程中,使用原始名称作为输出文件名", - "Use upscaler name as filename suffix in the extras tab": "在附加功能选项卡中使用放大算法作为文件名后缀", - "When using 'Save' button, only save a single selected image": "使用“保存”按钮时,只保存一个选定的图像", - "Do not add watermark to images": "不要给图像加水印(建议开启)", - "Directory for temporary images; leave empty for default": "临时图像目录,默认为空", - "Cleanup non-default temporary directory when starting webui": "启动WebUI时清理非默认临时目录", - "Output directory for images; if empty, defaults to three directories below": "图像的输出目录; 如果为空,则默认为以下三个目录", - "Output directory for txt2img images": "文生图的输出目录", - "Output directory for img2img images": "图生图的输出目录", - "Output directory for images from extras tab": "附加功能选项卡的输出目录", - "Output directory for grids; if empty, defaults to two directories below": "宫格图的输出目录; 如果为空,则默认为以下两个目录", - "Output directory for txt2img grids": "文生图宫格的输出目录", - "Output directory for img2img grids": "图生图宫格的输出目录", - "Directory for saving images using the Save button": "使用“保存”按钮保存图像的目录", - "Save images to a subdirectory": "将图像保存到子目录", - "Save grids to a subdirectory": "将宫格图保存到子目录", - "When using \"Save\" button, save images to a subdirectory": "使用“保存”按钮时,将图像保存到子目录", - "Directory name pattern": "目录名称格式", - "Max prompt words for [prompt_words] pattern": "[prompt_words] 格式的最大提示词数量", - "Tile size for ESRGAN upscalers. 0 = no tiling.": "ESRGAN 的图块尺寸。0 为不分块", - "Tile overlap, in pixels for ESRGAN upscalers. Low values = visible seam.": "ESRGAN 的图块重叠像素。较小时可见接缝", - "Upscaler for img2img": "图生图的放大算法", - "LDSR processing steps. Lower = faster": "LDSR 处理步数。越少越快", - "Cache LDSR model in memory": "把LDSR模型缓存在内存中", - "Tile size for all SwinIR.": "适用所有 SwinIR 系算法的图块尺寸", - "Tile overlap, in pixels for SwinIR. Low values = visible seam.": "SwinIR 的图块重叠像素。较小时可见接缝", - "CodeFormer weight parameter; 0 = maximum effect; 1 = minimum effect": "CodeFormer 权重参数;为 0 时效果最大;为 1 时效果最小", - "Move face restoration model from VRAM into RAM after processing": "面部修复处理完成后,将其模型从显存移至内存", - "Show warnings in console.": "将警告信息输出到控制台", - "VRAM usage polls per second during generation. Set to 0 to disable.": "生成图像时,每秒轮询显存使用情况的次数。设置为 0 以禁用", - "Always print all generation info to standard output": "始终将所有生成信息输出到 standard output (一般为控制台)", - "Add a second progress bar to the console that shows progress for an entire job.": "向控制台添加第二个进度条,显示整个作业的进度", - "Print extra hypernetwork information to console.": "将额外的超网络信息输出到控制台", - "Move VAE and CLIP to RAM when training if possible. Saves VRAM.": "如果可行,在训练时将 VAE 和 CLIP 移至到内存,从而节省显存占用", - "Turn on pin_memory for DataLoader. Makes training slightly faster but can increase memory usage.": "打开DataLoader的pin_memory选项,可以略微加速训练,但会增加内存占用", - "Saves Optimizer state as separate *.optim file. Training of embedding or HN can be resumed with the matching optim file.": "将Optimizer状态保存为单独的*.optim文件。embedding或HN的训练可以使用匹配的optim文件恢复", - "Save textual inversion and hypernet settings to a text file whenever training starts.": "训练开始时将文本反转和超网络设置保存到一个文本文件中", - "Filename word regex": "文件名用词的正则表达式", - "Filename join string": "文件名连接用字符串", - "Number of repeats for a single input image per epoch; used only for displaying epoch number": "每期中单个输入图像的重复次数; 仅用于显示期数", - "Save an csv containing the loss to log directory every N steps, 0 to disable": "每 N 步保存一个包含 loss 的 csv 表格到日志目录,0 表示禁用", - "Use cross attention optimizations while training": "训练时开启 cross attention 优化", - "Enable tensorboard logging.": "启用tensorboard日志", - "Save generated images within tensorboard.": "在 tensorboard 中保存生成的图像", - "How often, in seconds, to flush the pending tensorboard events and summaries to disk.": "记录tensorboard事件和摘要信息到磁盘频率,单位秒", - "Checkpoints to cache in RAM": "缓存在内存中的模型数", - "VAE Checkpoints to cache in RAM": "在内存中缓存的VAE数量", - "SD VAE": "模型的 VAE (SD VAE)", - "Automatic": "自动(仅加载与模型同名的vae,未找到时不加载)", - "Ignore selected VAE for stable diffusion checkpoints that have their own .vae.pt next to them": "对于拥有同名 .vae.pt 的模型,忽略掉选中的 VAE", - "Inpainting conditioning mask strength": "局部重绘时图像调节的蒙版屏蔽强度", - "Noise multiplier for img2img": "图生图噪声倍率", - "Apply color correction to img2img results to match original colors.": "对图生图结果应用颜色校正以匹配原始颜色", - "With img2img, do exactly the amount of steps the slider specifies (normally you'd do less with less denoising).": "在进行图生图的时候,确切地执行滑块指定的迭代步数(正常情况下更弱的重绘幅度需要更少的迭代步数)", - "With img2img, fill image's transparent parts with this color.": "在图生图中使用以下颜色填充透明区域", - "Enable quantization in K samplers for sharper and cleaner results. This may change existing seeds. Requires restart to apply.": "在 K 采样器中启用量化以获得更清晰、干净的结果。这可能会改变现有的随机种子。需要保存设置并重启才能应用", - "Emphasis: use (text) to make model pay more attention to text and [text] to make it pay less attention": "强调符:使用 (文字) 使模型更关注该文本,使用 [文字] 使其关注被减少", - "Make K-diffusion samplers produce same images in a batch as when making a single image": "使 K-diffusion 采样器 批量生成与生成单个图像时,产出相同的图像", - "Increase coherency by padding from the last comma within n tokens when using more than 75 tokens": "当使用超过 75 个词元时,通过从 n 个词元中的最后一个逗号留空来提高一致性", - "Upcast cross attention layer to float32": "将交叉关注层向上转型到float32", - "Use old emphasis implementation. Can be useful to reproduce old seeds.": "使用旧的强调符实现。可用于复现旧随机种子", - "Use old karras scheduler sigmas (0.1 to 10).": "使用旧的Karras调度器sigma值(0.1-10)", - "For hires fix, use width/height sliders to set final resolution rather than first pass (disables Upscale by, Resize width/height to).": "在高分辨率修复中,使用长宽滑块设置最终分辨率(恢复旧版高清修复界面,关闭放大倍率和自适应分辨率设置)", - "Interrogate: keep models in VRAM": "将模型保存在显存中(不建议开启)", - "Interrogate: include ranks of model tags matches in results (Has no effect on caption-based interrogators).": "将置信度作为tag权重写入结果(对基于生成自然语言描述的反推没有影响)", - "Interrogate: num_beams for BLIP": "BLIP 的 num_beams", - "Interrogate: minimum description length (excluding artists, etc..)": "最小描述长度(不包括艺术家等)", - "Interrogate: maximum description length": "最大描述长度", - "CLIP: maximum number of lines in text file (0 = No limit)": "CLIP:文本文件中的最大行数(0 为无限制)", - "CLIP: skip inquire categories": "CLIP:跳过查询类别", - "Interrogate: deepbooru score threshold": "deepbooru 最低置信度阈值(仅摘录高于此置信度的tag)", - "Interrogate: deepbooru sort alphabetically": "deepbooru 反推结果按字母顺序排序(不推荐开启)", - "use spaces for tags in deepbooru": "deepbooru 反推结果中使用空格替代下划线(推荐开启)", - "escape (\\) brackets in deepbooru (so they are used as literal brackets and not for emphasis)": "在 deepbooru 中使用转义括号(防止被误读为强调符)", - "filter out those tags from deepbooru output (separated by comma)": "从deepdanbooru的标签库中过滤掉以下标签,用逗号分隔", - "Default view for Extra Networks": "附加网络默认视图", - "cards": "卡片", - "thumbs": "缩略图", - "Multiplier for extra networks": "附加网络默认倍率", - "Add hypernetwork to prompt": "将超网络添加到提示词", - "Add Lora to prompt": "将 LoRA 模型添加到提示词", - "Apply Lora to outputs rather than inputs when possible (experimental)": "尽可能将 LoRA 模型应用于输出而非输入(实验性选项)", - "Show grid in results for web": "在网页的结果中显示宫格图(建议开启)", - "Do not show any images in results for web": "不在网页的结果中显示任何图像", - "Add model hash to generation information": "将模型的哈希值添加到生成信息(建议开启)", - "Add model name to generation information": "将模型名称添加到生成信息(建议开启)", - "When reading generation parameters from text into UI (from PNG info or pasted text), do not change the selected model/checkpoint.": "从 图片信息 或 粘贴文本 自动读取并填写生成参数时,不要更改选定的模型(建议开启)", - "Send seed when sending prompt or image to other interface": "将提示词或者图像发送到 >> 其他界面时,把随机种子也传送过去(建议开启)", - "Send size when sending prompt or image to another interface": "将提示词或者图像发送到 >> 其他界面时,把尺寸数据也传送过去", - "Font for image grids that have text": "有文字的宫格图使用的字体(避免出现X/Y表中文无法显示,可设置为 \"simhei.ttf\")", - "Enable full page image viewer": "启用整页图像查看器(建议开启)", - "Show images zoomed in by default in full page image viewer": "在整页图像查看器中,默认放大显示图像(建议开启)", - "Show generation progress in window title.": "在窗口标题中显示生成进度(建议开启)", - "Use dropdown for sampler selection instead of radio group": "使用下拉菜单取代单选列表", - "Show Width/Height and Batch sliders in same row": "将批次与批量设置整合到长宽设置的右侧", - "Ctrl+up/down precision when editing (attention:1.1)": "使用 Ctrl + ↑/↓ 设置 \"(tag:1.1)\" 时的精度", - "Ctrl+up/down precision when editing ": "使用 Ctrl + ↑/↓ 设置 \"\" 时的精度", - "Quicksettings list": "快捷设置列表(将显示在页面最上方,建议填入\"sd_model_checkpoint,sd_vae\")", - "txt2img/img2img UI item order": "文生图/图生图界面UI顺序", - "Extra networks tab order": "附加网络标签的顺序", - "Localization (requires restart)": "本地化翻译(需要保存设置并重启)", - "Show progressbar": "显示进度条(建议开启)", - "Show live previews of the created image": "显示已生成图像的实时预览(建议开启)", - "Show previews of all images generated in a batch as a grid": "以宫格图的形式,预览批量生成的所有图像(建议开启)", - "Show new live preview image every N sampling steps. Set to -1 to show after completion of batch.": "每N个采样步骤更新一次实时预览图像,设置为-1以在每批次完成后显示,设置为0关闭实时预览 (建议设为0,开启会占用大量显存和显卡算力)", - "Image creation progress preview mode": "图像生成过程预览的模式", - "Full": "Full", - "Approx NN": "Approx NN", - "Approx cheap": "Approx cheap", - "Live preview subject": "实时预览的主体", - "Combined": "兼有", - "Progressbar/preview update period, in milliseconds": "进度条/预览更新周期(毫秒)", - "Hide samplers in user interface (requires restart)": "在用户界面中隐藏采样器(需要保存设置并重启)", - "eta (noise multiplier) for DDIM": "DDIM 的 eta (噪声乘数) ", - "eta (noise multiplier) for ancestral samplers": "ancestral 采样器的 eta (噪声乘数,建议值0.67)", - "img2img DDIM discretize": "图生图 DDIM 离散化", - "uniform": "均匀", - "quad": "二阶", - "sigma churn": "sigma churn", - "sigma tmin": "最小 sigma", - "sigma noise": "sigma 噪声", - "Eta noise seed delta": "Eta 噪声种子偏移(建议值31337)", - "Always discard next-to-last sigma": "始终舍弃倒数第二个sigma", - "Enable postprocessing operations in txt2img and img2img tabs": "在文生图/图生图选项卡中启用后处理操作", - "Postprocessing operation order": "后处理操作顺序", - "Maximum number of images in upscaling cache": "图像放大缓存中的最大图片数量", - "Config file for Control Net models": "扩散控制网络模型的配置文件", - "Config file for Adapter models": "自适应模型的配置文件", - "Directory for detected maps auto saving": "探测模式图保存路径", - "Extra path to scan for ControlNet models (e.g. training output directory)": "检索扩散控制网络模型的附加目录(如训练输出目录)", - "Multi ControlNet: Max models amount (requires restart)": "多网络联合扩散控制的最大网络数量(需要保存设置并重启,启用后可同时设置多个扩散控制网络,允许不同模型联合控制与相同模型叠加控制,可用于约束多人动作,也可用于多维度约束)", - "Model cache size (requires restart)": "模型缓存数量(需要保存设置并重启)", - "Apply transfer control when loading models": "加载模型时应用传输控制", - "Do not append detectmap to output": "不输出探测模式图(如深度估算图、动作检测图等)", - "Allow detectmap auto saving": "允许自动保存探测模式图", - "Use mid-control on highres pass (second pass)": "进行高清修复时使用中间层控制", - "Use mid-layer control on highres pass (second pass)": "进行高清修复时使用中间层控制", - "Allow other script to control this extension": "允许其他脚本对此扩展插件进行控制", - "Skip img2img processing when using img2img initial image": "使用图生图初始化图像时跳过图生图处理", - "Enable optimized monocular depth estimation": "启用优化单色深度估算", - "Only use mid-control when inference": "仅在生成图片时使用中间层控制", - "Enable CFG-Based guidance": "启用基于CFG的引导(配合无提示词模式使用时请删除所有提示词,推荐设置\"采样次数:50,CFG:3~5\",ControlNet将会自动识别输入的模式图)", - "Request browser notifications": "请求浏览器通知(生成完成时在屏幕右下角显示通知)", - "Download localization template": "下载本地化模板", - "Reload custom script bodies (No ui updates, No restart)": "重新加载自定义脚本主体(无用户界面更新,无重启)", - "Show all pages": "显示所有页面", - "Installed": "已安装", - "Available": "可用", - "Install from URL": "从网址安装", - "Apply and restart UI": "应用并重启用户界面", - "Check for updates": "检查更新", - "Extension": "扩展", - "URL": "网址", - "Update": "更新", - "unknown": "未知", - "built-in": "内建", - "ScuNET": "ScuNET", - "prompt-bracket-checker": "prompt-bracket-checker", - "Load from:": "加载自:", - "Extension index URL": "扩展列表网址", - "Hide extensions with tags": "隐藏含有以下标签的扩展", - "script": "脚本", - "ads": "含广告", - "localization": "本地化翻译", - "installed": "已安装", - "training": "训练相关", - "models": "模型相关", - "UI related": "UI界面相关", - "integrations": "集成功能", - "Order": "排序方式", - "newest first": "最新", - "oldest first": "发布时间", - "a-z": "a-z", - "z-a": "z-a", - "internal order": "内部排序", - "URL for extension's git repository": "扩展的 git 仓库网址", - "Local directory name": "本地目录名", - "Install": "安装", - "API": "API", - "•": "・", - "Github": "Github", - "Gradio": "Gradio", - "python:": "python:", - "N/A": "N/A", - "Change checkpoint": "Change checkpoint", - "Prompt (press Ctrl+Enter or Alt+Enter to generate)": "提示词(按 Ctrl+Enter 或 Alt+Enter 生成)", - "Negative prompt (press Ctrl+Enter or Alt+Enter to generate)": "反向提示词(按 Ctrl+Enter 或 Alt+Enter 生成)", - "Stop processing images and return any results accumulated so far.": "停止处理图像,并返回迄今为止累积的任何结果", - "Stop processing current image and continue processing.": "停止处理当前图像,并继续处理下一个", - "Read generation parameters from prompt or last generation if prompt is empty into user interface.": "从提示词中自动提取生成参数,若当前提示词为空则从上次的生成信息中读取(允许将包含正面、负面、采样器、步数、模型等信息的整段生成信息全部粘贴到提示词区域,点击后可自动将对应信息填入并删除多余内容)", - "Clear prompt": "清空提示词", - "Show extra networks": "显示附加网络面板", - "Apply selected styles to current prompt": "将已选择的模板风格写入当前的提示词", - "Save style": "将当前的提示词保存为模板风格", - "Remove All": "全部移除", - "Search...": "搜索...", - "Which algorithm to use to produce the image": "使用哪种算法生成图像", - "Euler Ancestral - very creative, each can get a completely different picture depending on step count, setting steps higher than 30-40 does not help": "Euler Ancestoral - 此方法非常有创意,每个人都可以根据不同步数获得完全不同的画面,设置超过30-40的步数没有用", - "How many times to improve the generated image iteratively; higher values take longer; very low values can produce bad results": "迭代改进生成的图像多少次;更高的值需要更长的时间;非常低的值会产生不好的结果", - "Produce an image that can be tiled.": "生成可用于平铺的图像", - "Use a two step process to partially create an image at smaller resolution, upscale, and then improve details in it without changing composition": "使用两步处理的时候,以较小的分辨率生成初步图像,接着放大图像,然后在不更改构图的情况下改进其中的细节", - "Number of sampling steps for upscaled picture. If 0, uses same as for original.": "设置进行高清修复时的采样迭代次数,0表示沿用原始采样迭代次数", - "Determines how little respect the algorithm should have for image's content. At 0, nothing will change, and at 1 you'll get an unrelated image. With values below 1.0, processing will take less steps than the Sampling Steps slider specifies.": "决定算法对图像内容的影响程度。设置 0 时,什么都不会改变,而在 1 时,你将获得不相关的图像。\n值低于 1.0 时,处理的迭代步数将少于“采样迭代步数”滑块指定的步数", - "Adjusts the size of the image by multiplying the original width and height by the selected value. Ignored if either Resize width to or Resize height to are non-zero.": "按比例放大原分辨率,单独设定目标长宽时被忽略", - "Resizes image to this width. If 0, width is inferred from either of two nearby sliders.": "将宽度调整到此值,0表示根据目标高度或放大倍率自适应调整", - "Resizes image to this height. If 0, height is inferred from either of two nearby sliders.": "将高度调整到此值,0表示根据目标宽度或放大倍率自适应调整", - "How many batches of images to create": "创建多少批次的图像", - "How many image to create in a single batch": "每批创建多少图像", - "Classifier Free Guidance Scale - how strongly the image should conform to prompt - lower values produce more creative results": "无分类器指导信息影响尺度 - 图像应在多大程度上服从提示词 - 较低的值会产生更有创意的结果", - "A value that determines the output of random number generator - if you create an image with same parameters and seed as another image, you'll get the same result": "一个固定随机数生成器输出的值 - 以相同参数和随机种子生成的图像会得到相同的结果\n🎲 将随机种子设置为-1,则每次都会使用一个新的随机数\n♻️ 重用上一次使用的随机种子,如果想要固定输出结果就会很有用", - "Set seed to -1, which will cause a new random number to be used every time": "将随机种子设置为 -1,则每次都会使用一个新的随机数", - "Reuse seed from last generation, mostly useful if it was randomed": "重用上一次使用的随机种子,如果想要固定结果就会很有用", - "Seed of a different picture to be mixed into the generation.": "将要参与生成的另一张图的随机种子", - "How strong of a variation to produce. At 0, there will be no effect. At 1, you will get the complete picture with variation seed (except for ancestral samplers, where you will just get something).": "想要产生多强烈的变化。设为 0 时,将没有效果。设为 1 时,你将获得完全产自差异随机种子的图像(此功能对带有 a 后缀的采样器无效)", - "Make an attempt to produce a picture similar to what would have been produced with same seed at specified resolution": "尝试生成图像,与同一随机种子在指定分辨率下生成的图像相似", - "Do not do anything special": "什么都不做", - "Separate values for X axis using commas.": "使用逗号分隔 X 轴的值", - "Paste available values into the field": "Paste available values into the field", - "Separate values for Y axis using commas.": "使用逗号分隔 Y 轴的值", - "Open images output directory": "打开图像输出目录", - "Write image to a directory (default - log/images) and generation parameters into csv file.": "将图像写入目录(默认 - log/images)并将生成参数写入 csv 表格文件", - "Resize image to target resolution. Unless height and width match, you will get incorrect aspect ratio.": "将图像大小调整为目标分辨率。除非高度和宽度匹配,否则你将获得不正确的纵横比", - "Resize the image so that entirety of target resolution is filled with the image. Crop parts that stick out.": "调整图像大小,使整个目标分辨率都被图像填充。裁剪多出来的部分", - "Resize the image so that entirety of image is inside target resolution. Fill empty space with image's colors.": "调整图像大小,使整个图像在目标分辨率内。用图像的颜色填充空白区域", - "How much to blur the mask before processing, in pixels.": "处理前要对蒙版进行多强的模糊,以像素为单位", - "What to put inside the masked area before processing it with Stable Diffusion.": "在使用 Stable Diffusion 处理蒙版区域之前要在蒙版区域内放置什么", - "fill it with colors of the image": "用图像的颜色(高强度模糊)填充它", - "keep whatever was there originally": "保留原来的图像,不进行预处理", - "fill it with latent space noise": "于潜空间填充噪声", - "fill it with latent space zeroes": "于潜空间填零", - "How many times to repeat processing an image and using it as input for the next iteration": "重复处理图像并用作下次迭代输入的次数", - "In loopback mode, on each loop the denoising strength is multiplied by this value. <1 means decreasing variety so your sequence will converge on a fixed picture. >1 means increasing variety so your sequence will become more and more chaotic.": "在回送模式下,在每个循环中,重绘幅度都会乘以该值。<1 表示减少多样性,因此你的这一组图将集中在固定的图像上。>1 意味着增加多样性,因此你的这一组图将变得越来越混乱", - "For SD upscale, how much overlap in pixels should there be between tiles. Tiles overlap so that when they are merged back into one picture, there is no clearly visible seam.": "使用 SD 放大时,图块之间应该有多少像素重叠。图块之间需要重叠才可以让它们在合并回一张图像时,没有清晰可见的接缝", - "A directory on the same machine where the server is running.": "服务器主机上某一目录", - "Leave blank to save images to the default path.": "留空以将图像保存到默认路径", - "Result = A": "获得与A完全相同的模型", - "Result = A * (1 - M) + B * M": "结果 = A * (1 - M) + B * M", - "Result = A + (B - C) * M": "结果 = A + (B - C) * M", - "Regular expression; if weights's name matches it, the weights is not written to the resulting checkpoint. Use ^model_ema to discard EMA weights.": "与写入内容名称匹配的权重信息将不会写入输出的模型(可以通过写入\"^model_ema\"以舍弃模型中的EMA信息)", - "If the number of tokens is more than the number of vectors, some may be skipped.\nLeave the textbox empty to start with zeroed out vectors": "If the number of tokens is more than the number of vectors, some may be skipped.\nLeave the textbox empty to start with zeroed out vectors", - "1st and last digit must be 1. ex:'1, 2, 1'": "第一个和最后一个数字必须是 1。例:'1, 2, 1'", - "1st and last digit must be 0 and values should be between 0 and 1. ex:'0, 0.01, 0'": "1st and last digit must be 0 and values should be between 0 and 1. ex:'0, 0.01, 0'", - "Gradient clip value": "Gradient clip value", - "Path to directory with input images": "带有输入图像的目录路径", - "Path to directory where to write outputs": "进行输出的目录路径", - "Use following tags to define how filenames for images are chosen: [steps], [cfg], [prompt_hash], [prompt], [prompt_no_styles], [prompt_spaces], [width], [height], [styles], [sampler], [seed], [model_hash], [model_name], [prompt_words], [date], [datetime], [datetime], [datetime