mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-06-27 09:26:47 +00:00
Add final translations
This commit is contained in:
parent
fdab3d96aa
commit
9dbca41dcc
2
.gitignore
vendored
2
.gitignore
vendored
@ -30,7 +30,7 @@ notification.mp3
|
|||||||
/SwinIR
|
/SwinIR
|
||||||
/textual_inversion
|
/textual_inversion
|
||||||
.vscode
|
.vscode
|
||||||
/extensions
|
# /extensions
|
||||||
/test/stdout.txt
|
/test/stdout.txt
|
||||||
/test/stderr.txt
|
/test/stderr.txt
|
||||||
/cache.json*
|
/cache.json*
|
||||||
|
1
extensions/adetailer
Submodule
1
extensions/adetailer
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 36189cbea735b85fd01e98ac42002b8ce6f0e41d
|
@ -20,12 +20,12 @@ class ScriptRefiner(scripts.ScriptBuiltinUI):
|
|||||||
return scripts.AlwaysVisible
|
return scripts.AlwaysVisible
|
||||||
|
|
||||||
def ui(self, is_img2img):
|
def ui(self, is_img2img):
|
||||||
with InputAccordion(False, label="Refiner", elem_id=self.elem_id("enable")) as enable_refiner:
|
with InputAccordion(False, label="ตัวปรับแต่ง", elem_id=self.elem_id("enable")) as enable_refiner:
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
refiner_checkpoint = gr.Dropdown(label='Checkpoint', elem_id=self.elem_id("checkpoint"), choices=sd_models.checkpoint_tiles(), value='', tooltip="switch to another model in the middle of generation")
|
refiner_checkpoint = gr.Dropdown(label='เช็คพอยต์', elem_id=self.elem_id("checkpoint"), choices=sd_models.checkpoint_tiles(), value='', tooltip="สลับไปยังโมเดลอื่นระหว่างการสร้างภาพ")
|
||||||
create_refresh_button(refiner_checkpoint, sd_models.list_models, lambda: {"choices": sd_models.checkpoint_tiles()}, self.elem_id("checkpoint_refresh"))
|
create_refresh_button(refiner_checkpoint, sd_models.list_models, lambda: {"choices": sd_models.checkpoint_tiles()}, self.elem_id("checkpoint_refresh"))
|
||||||
|
|
||||||
refiner_switch_at = gr.Slider(value=0.8, label="Switch at", minimum=0.01, maximum=1.0, step=0.01, elem_id=self.elem_id("switch_at"), tooltip="fraction of sampling steps when the switch to refiner model should happen; 1=never, 0.5=switch in the middle of generation")
|
refiner_switch_at = gr.Slider(value=0.8, label="สลับที่", minimum=0.01, maximum=1.0, step=0.01, elem_id=self.elem_id("switch_at"), tooltip="สัดส่วนของขั้นตอนการสร้างภาพที่จะสลับไปใช้โมเดล refiner; 1=ไม่สลับ, 0.5=สลับกลางทาง")
|
||||||
|
|
||||||
def lookup_checkpoint(title):
|
def lookup_checkpoint(title):
|
||||||
info = sd_models.get_closet_checkpoint_match(title)
|
info = sd_models.get_closet_checkpoint_match(title)
|
||||||
|
@ -23,13 +23,13 @@ class ScriptSampler(scripts.ScriptBuiltinUI):
|
|||||||
if shared.opts.samplers_in_dropdown:
|
if shared.opts.samplers_in_dropdown:
|
||||||
with FormRow(elem_id=f"sampler_selection_{self.tabname}"):
|
with FormRow(elem_id=f"sampler_selection_{self.tabname}"):
|
||||||
self.sampler_name = gr.Dropdown(label='วิธีเรนเดอร์', elem_id=f"{self.tabname}_sampling", choices=sampler_names, value=sampler_names[0])
|
self.sampler_name = gr.Dropdown(label='วิธีเรนเดอร์', elem_id=f"{self.tabname}_sampling", choices=sampler_names, value=sampler_names[0])
|
||||||
self.scheduler = gr.Dropdown(label='Schedule type', elem_id=f"{self.tabname}_scheduler", choices=scheduler_names, value=scheduler_names[0])
|
self.scheduler = gr.Dropdown(label='กำหนดการ', elem_id=f"{self.tabname}_scheduler", choices=scheduler_names, value=scheduler_names[0])
|
||||||
self.steps = gr.Slider(minimum=1, maximum=150, step=1, elem_id=f"{self.tabname}_steps", label="ขั้นตอน", value=20)
|
self.steps = gr.Slider(minimum=1, maximum=150, step=1, elem_id=f"{self.tabname}_steps", label="ขั้นตอน", value=20)
|
||||||
else:
|
else:
|
||||||
with FormGroup(elem_id=f"sampler_selection_{self.tabname}"):
|
with FormGroup(elem_id=f"sampler_selection_{self.tabname}"):
|
||||||
self.steps = gr.Slider(minimum=1, maximum=150, step=1, elem_id=f"{self.tabname}_steps", label="ขั้นตอน", value=20)
|
self.steps = gr.Slider(minimum=1, maximum=150, step=1, elem_id=f"{self.tabname}_steps", label="ขั้นตอน", value=20)
|
||||||
self.sampler_name = gr.Radio(label='วิธีเรนเดอร์', elem_id=f"{self.tabname}_sampling", choices=sampler_names, value=sampler_names[0])
|
self.sampler_name = gr.Radio(label='วิธีเรนเดอร์', elem_id=f"{self.tabname}_sampling", choices=sampler_names, value=sampler_names[0])
|
||||||
self.scheduler = gr.Dropdown(label='Schedule type', elem_id=f"{self.tabname}_scheduler", choices=scheduler_names, value=scheduler_names[0])
|
self.scheduler = gr.Dropdown(label='กำหนดการ', elem_id=f"{self.tabname}_scheduler", choices=scheduler_names, value=scheduler_names[0])
|
||||||
|
|
||||||
self.infotext_fields = [
|
self.infotext_fields = [
|
||||||
PasteField(self.steps, "Steps", api="steps"),
|
PasteField(self.steps, "Steps", api="steps"),
|
||||||
|
@ -314,14 +314,14 @@ def create_ui():
|
|||||||
hr_final_resolution = FormHTML(value="", elem_id="txtimg_hr_finalres", label="Upscaled resolution", interactive=False, min_width=0)
|
hr_final_resolution = FormHTML(value="", elem_id="txtimg_hr_finalres", label="Upscaled resolution", interactive=False, min_width=0)
|
||||||
|
|
||||||
with FormRow(elem_id="txt2img_hires_fix_row1", variant="compact"):
|
with FormRow(elem_id="txt2img_hires_fix_row1", variant="compact"):
|
||||||
hr_upscaler = gr.Dropdown(label="Upscaler", elem_id="txt2img_hr_upscaler", choices=[*shared.latent_upscale_modes, *[x.name for x in shared.sd_upscalers]], value=shared.latent_upscale_default_mode)
|
hr_upscaler = gr.Dropdown(label="ตัวขยายภาพ", elem_id="txt2img_hr_upscaler", choices=[*shared.latent_upscale_modes, *[x.name for x in shared.sd_upscalers]], value=shared.latent_upscale_default_mode)
|
||||||
hr_second_pass_steps = gr.Slider(minimum=0, maximum=150, step=1, label='Hires steps', value=0, elem_id="txt2img_hires_steps")
|
hr_second_pass_steps = gr.Slider(minimum=0, maximum=150, step=1, label='ขั้นตอนความละเอียดสูง', value=0, elem_id="txt2img_hires_steps")
|
||||||
denoising_strength = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label='Denoising strength', value=0.7, elem_id="txt2img_denoising_strength")
|
denoising_strength = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label='ความแรงในการลดสัญญาณรบกวน', value=0.7, elem_id="txt2img_denoising_strength")
|
||||||
|
|
||||||
with FormRow(elem_id="txt2img_hires_fix_row2", variant="compact"):
|
with FormRow(elem_id="txt2img_hires_fix_row2", variant="compact"):
|
||||||
hr_scale = gr.Slider(minimum=1.0, maximum=4.0, step=0.05, label="Upscale by", value=2.0, elem_id="txt2img_hr_scale")
|
hr_scale = gr.Slider(minimum=1.0, maximum=4.0, step=0.05, label="ขยายขนาดคูณ", value=2.0, elem_id="txt2img_hr_scale")
|
||||||
hr_resize_x = gr.Slider(minimum=0, maximum=2048, step=8, label="Resize width to", value=0, elem_id="txt2img_hr_resize_x")
|
hr_resize_x = gr.Slider(minimum=0, maximum=2048, step=8, label="ปรับความกว้างเป็น", value=0, elem_id="txt2img_hr_resize_x")
|
||||||
hr_resize_y = gr.Slider(minimum=0, maximum=2048, step=8, label="Resize height to", value=0, elem_id="txt2img_hr_resize_y")
|
hr_resize_y = gr.Slider(minimum=0, maximum=2048, step=8, label="ปรับความสูงเป็น", value=0, elem_id="txt2img_hr_resize_y")
|
||||||
|
|
||||||
with FormRow(elem_id="txt2img_hires_fix_row3", variant="compact", visible=opts.hires_fix_show_sampler) as hr_sampler_container:
|
with FormRow(elem_id="txt2img_hires_fix_row3", variant="compact", visible=opts.hires_fix_show_sampler) as hr_sampler_container:
|
||||||
|
|
||||||
@ -340,7 +340,6 @@ def create_ui():
|
|||||||
hr_negative_prompt = gr.Textbox(label="Hires negative prompt", elem_id="hires_neg_prompt", show_label=False, lines=3, placeholder="Negative prompt for hires fix pass.\nLeave empty to use the same negative prompt as in first pass.", elem_classes=["prompt"])
|
hr_negative_prompt = gr.Textbox(label="Hires negative prompt", elem_id="hires_neg_prompt", show_label=False, lines=3, placeholder="Negative prompt for hires fix pass.\nLeave empty to use the same negative prompt as in first pass.", elem_classes=["prompt"])
|
||||||
|
|
||||||
scripts.scripts_txt2img.setup_ui_for_section(category)
|
scripts.scripts_txt2img.setup_ui_for_section(category)
|
||||||
|
|
||||||
elif category == "batch":
|
elif category == "batch":
|
||||||
if not opts.dimensions_and_batch_together:
|
if not opts.dimensions_and_batch_together:
|
||||||
with FormRow(elem_id="txt2img_column_batch"):
|
with FormRow(elem_id="txt2img_column_batch"):
|
||||||
|
@ -1730,4 +1730,8 @@ body.resizing .resize-handle {
|
|||||||
background-color: #F703CE !important;
|
background-color: #F703CE !important;
|
||||||
padding: 4px 8px 4px 8px !important;
|
padding: 4px 8px 4px 8px !important;
|
||||||
border-radius: 8px !important;
|
border-radius: 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#settings_restart_gradio, #settings_submit {
|
||||||
|
background-color: #F703CE !important;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user