fix
This commit is contained in:
parent
650f32b920
commit
65190b4a68
|
|
@ -1,8 +1,6 @@
|
|||
{
|
||||
"Preview": "Preview",
|
||||
"\n<div class=\"loader-container\">\n <div class=\"loader\"></div>\n <div class=\"progress-container\">\n <progress value=\"32\" max=\"100\"></progress>\n </div>\n <span>Progress 32%</span>\n</div>\n": "\n<div class=\"loader-container\">\n <div class=\"loader\"></div>\n <div class=\"progress-container\">\n <progress value=\"32\" max=\"100\"></progress>\n </div>\n <span>Progress 32%</span>\n</div>\n",
|
||||
"Gallery": "Gallery",
|
||||
"": "",
|
||||
"Generate": "Generate",
|
||||
"Skip": "Skip",
|
||||
"Stop": "Stop",
|
||||
|
|
@ -16,7 +14,6 @@
|
|||
"Upscale (1.5x)": "Upscale (1.5x)",
|
||||
"Upscale (2x)": "Upscale (2x)",
|
||||
"Upscale (Fast 2x)": "Upscale (Fast 2x)",
|
||||
"<a href=\"https://github.com/lllyasviel/Fooocus/discussions/390\" target=\"_blank\">\ud83d\udcd4 Document</a>": "<a href=\"https://github.com/lllyasviel/Fooocus/discussions/390\" target=\"_blank\">\ud83d\udcd4 Document</a>",
|
||||
"Image": "Image",
|
||||
"Stop At": "Stop At",
|
||||
"Weight": "Weight",
|
||||
|
|
@ -24,20 +21,15 @@
|
|||
"Image Prompt": "Image Prompt",
|
||||
"PyraCanny": "PyraCanny",
|
||||
"CPDS": "CPDS",
|
||||
"* \"Image Prompt\" is powered by Fooocus Image Mixture Engine (v1.0.1). <a href=\"https://github.com/lllyasviel/Fooocus/discussions/557\" target=\"_blank\">\ud83d\udcd4 Document</a>": "* \"Image Prompt\" is powered by Fooocus Image Mixture Engine (v1.0.1). <a href=\"https://github.com/lllyasviel/Fooocus/discussions/557\" target=\"_blank\">\ud83d\udcd4 Document</a>",
|
||||
"Outpaint Expansion (<a href=\"https://github.com/lllyasviel/Fooocus/discussions/414\" target=\"_blank\">\ud83d\udcd4 Document</a>):": "Outpaint Expansion (<a href=\"https://github.com/lllyasviel/Fooocus/discussions/414\" target=\"_blank\">\ud83d\udcd4 Document</a>):",
|
||||
"Outpaint": "Outpaint",
|
||||
"Left": "Left",
|
||||
"Right": "Right",
|
||||
"Top": "Top",
|
||||
"Bottom": "Bottom",
|
||||
"* \"Inpaint or Outpaint\" is powered by the sampler \"DPMPP Fooocus Seamless 2M SDE Karras Inpaint Sampler\" (beta)": "* \"Inpaint or Outpaint\" is powered by the sampler \"DPMPP Fooocus Seamless 2M SDE Karras Inpaint Sampler\" (beta)",
|
||||
"uov": "uov",
|
||||
"Performance": "Performance",
|
||||
"Speed": "Speed",
|
||||
"Quality": "Quality",
|
||||
"Aspect Ratios": "Aspect Ratios",
|
||||
"896\u00d71152": "896\u00d71152",
|
||||
"width \u00d7 height": "width \u00d7 height",
|
||||
"704\u00d71408": "704\u00d71408",
|
||||
"704\u00d71344": "704\u00d71344",
|
||||
|
|
@ -45,6 +37,7 @@
|
|||
"768\u00d71280": "768\u00d71280",
|
||||
"832\u00d71216": "832\u00d71216",
|
||||
"832\u00d71152": "832\u00d71152",
|
||||
"896\u00d71152": "896\u00d71152",
|
||||
"896\u00d71088": "896\u00d71088",
|
||||
"960\u00d71088": "960\u00d71088",
|
||||
"960\u00d71024": "960\u00d71024",
|
||||
|
|
@ -66,11 +59,9 @@
|
|||
"1728\u00d7576": "1728\u00d7576",
|
||||
"Image Number": "Image Number",
|
||||
"Negative Prompt": "Negative Prompt",
|
||||
"(embedding:unaestheticXLv31:0.8), low quality, watermark": "(embedding:unaestheticXLv31:0.8), low quality, watermark",
|
||||
"Describing what you do not want to see.": "Describing what you do not want to see.",
|
||||
"Random": "Random",
|
||||
"Seed": "Seed",
|
||||
"<a href=\"/file=D:\\Fooocus\\outputs\\2023-10-20\\log.html\" target=\"_blank\">\ud83d\udcda History Log</a>": "<a href=\"/file=D:\\Fooocus\\outputs\\2023-10-20\\log.html\" target=\"_blank\">\ud83d\udcda History Log</a>",
|
||||
"Image Style": "Image Style",
|
||||
"Fooocus V2": "Fooocus V2",
|
||||
"Default (Slightly Cinematic)": "Default (Slightly Cinematic)",
|
||||
|
|
@ -285,8 +276,8 @@
|
|||
"Watercolor 2": "Watercolor 2",
|
||||
"Whimsical And Playful": "Whimsical And Playful",
|
||||
"Base Model (SDXL only)": "Base Model (SDXL only)",
|
||||
"bluePencilXL_v050.safetensors": "bluePencilXL_v050.safetensors",
|
||||
"bluePencilXL_v009.safetensors": "bluePencilXL_v009.safetensors",
|
||||
"bluePencilXL_v050.safetensors": "bluePencilXL_v050.safetensors",
|
||||
"DreamShaper_8_pruned.safetensors": "DreamShaper_8_pruned.safetensors",
|
||||
"realisticStockPhoto_v10.safetensors": "realisticStockPhoto_v10.safetensors",
|
||||
"realisticVisionV51_v51VAE.safetensors": "realisticVisionV51_v51VAE.safetensors",
|
||||
|
|
@ -295,21 +286,19 @@
|
|||
"Refiner (SDXL or SD 1.5)": "Refiner (SDXL or SD 1.5)",
|
||||
"None": "None",
|
||||
"SDXL LoRA 1": "SDXL LoRA 1",
|
||||
"sd_xl_offset_example-lora_1.0.safetensors": "sd_xl_offset_example-lora_1.0.safetensors",
|
||||
"3d_render_style_xl.safetensors": "3d_render_style_xl.safetensors",
|
||||
"Bloodstained-XL-V1.safetensors": "Bloodstained-XL-V1.safetensors",
|
||||
"SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors": "SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors",
|
||||
"sd_xl_offset_example-lora_1.0.safetensors": "sd_xl_offset_example-lora_1.0.safetensors",
|
||||
"SDXL LoRA 2": "SDXL LoRA 2",
|
||||
"SDXL LoRA 3": "SDXL LoRA 3",
|
||||
"SDXL LoRA 4": "SDXL LoRA 4",
|
||||
"SDXL LoRA 5": "SDXL LoRA 5",
|
||||
"Refresh": "Refresh",
|
||||
"\ud83d\udd04 Refresh All Files": "\ud83d\udd04 Refresh All Files",
|
||||
"Sampling Sharpness": "Sampling Sharpness",
|
||||
"Higher value means image and texture are sharper.": "Higher value means image and texture are sharper.",
|
||||
"Guidance Scale": "Guidance Scale",
|
||||
"Higher value means style is cleaner, vivider, and more artistic.": "Higher value means style is cleaner, vivider, and more artistic.",
|
||||
"<a href=\"https://github.com/lllyasviel/Fooocus/discussions/117\" target=\"_blank\">\ud83d\udcd4 Document</a>": "<a href=\"https://github.com/lllyasviel/Fooocus/discussions/117\" target=\"_blank\">\ud83d\udcd4 Document</a>",
|
||||
"Developer Debug Mode": "Developer Debug Mode",
|
||||
"Positive ADM Guidance Scaler": "Positive ADM Guidance Scaler",
|
||||
"The scaler multiplied to positive ADM (use 1.0 to disable). ": "The scaler multiplied to positive ADM (use 1.0 to disable). ",
|
||||
|
|
@ -324,7 +313,6 @@
|
|||
"CFG Mimicking from TSNR": "CFG Mimicking from TSNR",
|
||||
"Enabling Fooocus's implementation of CFG mimicking for TSNR (effective when real CFG > mimicked CFG).": "Enabling Fooocus's implementation of CFG mimicking for TSNR (effective when real CFG > mimicked CFG).",
|
||||
"Sampler": "Sampler",
|
||||
"dpmpp_2m_sde_gpu": "dpmpp_2m_sde_gpu",
|
||||
"Only effective in non-inpaint mode.": "Only effective in non-inpaint mode.",
|
||||
"euler": "euler",
|
||||
"euler_ancestral": "euler_ancestral",
|
||||
|
|
@ -339,6 +327,7 @@
|
|||
"dpmpp_sde_gpu": "dpmpp_sde_gpu",
|
||||
"dpmpp_2m": "dpmpp_2m",
|
||||
"dpmpp_2m_sde": "dpmpp_2m_sde",
|
||||
"dpmpp_2m_sde_gpu": "dpmpp_2m_sde_gpu",
|
||||
"dpmpp_3m_sde": "dpmpp_3m_sde",
|
||||
"dpmpp_3m_sde_gpu": "dpmpp_3m_sde_gpu",
|
||||
"ddpm": "ddpm",
|
||||
|
|
@ -346,9 +335,9 @@
|
|||
"uni_pc": "uni_pc",
|
||||
"uni_pc_bh2": "uni_pc_bh2",
|
||||
"Scheduler": "Scheduler",
|
||||
"karras": "karras",
|
||||
"Scheduler of Sampler.": "Scheduler of Sampler.",
|
||||
"normal": "normal",
|
||||
"karras": "karras",
|
||||
"exponential": "exponential",
|
||||
"sgm_uniform": "sgm_uniform",
|
||||
"simple": "simple",
|
||||
|
|
@ -363,8 +352,8 @@
|
|||
"Set as negative number to disable. For developer debugging.": "Set as negative number to disable. For developer debugging.",
|
||||
"Forced Overwrite of Denoising Strength of \"Upscale\"": "Forced Overwrite of Denoising Strength of \"Upscale\"",
|
||||
"Inpaint Engine": "Inpaint Engine",
|
||||
"v1": "v1",
|
||||
"Version of Fooocus inpaint model": "Version of Fooocus inpaint model",
|
||||
"v1": "v1",
|
||||
"v2.5": "v2.5",
|
||||
"Debug Preprocessors": "Debug Preprocessors",
|
||||
"Mixing Image Prompt and Vary/Upscale": "Mixing Image Prompt and Vary/Upscale",
|
||||
|
|
|
|||
|
|
@ -29,14 +29,11 @@ def dump_english_config(components):
|
|||
all_texts = []
|
||||
for c in components:
|
||||
label = getattr(c, 'label', None)
|
||||
value = getattr(c, 'value', None)
|
||||
choices = getattr(c, 'choices', None)
|
||||
info = getattr(c, 'info', None)
|
||||
|
||||
if isinstance(label, str):
|
||||
all_texts.append(label)
|
||||
if isinstance(value, str):
|
||||
all_texts.append(value)
|
||||
if isinstance(info, str):
|
||||
all_texts.append(info)
|
||||
if isinstance(choices, list):
|
||||
|
|
@ -48,7 +45,7 @@ def dump_english_config(components):
|
|||
if isinstance(y, str):
|
||||
all_texts.append(y)
|
||||
|
||||
config_dict = {k: k for k in all_texts}
|
||||
config_dict = {k: k for k in all_texts if k != ""}
|
||||
full_name = os.path.abspath(os.path.join(localization_root, 'en.json'))
|
||||
|
||||
with open(full_name, "w", encoding="utf-8") as json_file:
|
||||
|
|
|
|||
Loading…
Reference in New Issue