MCPcopy
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / ui

Method ui

scripts/loopback.py:17–23  ·  view source on GitHub ↗
(self, is_img2img)

Source from the content-addressed store, hash-verified

15 return is_img2img
16
17 def ui(self, is_img2img):
18 loops = gr.Slider(minimum=1, maximum=32, step=1, label='Loops', value=4, elem_id=self.elem_id("loops"))
19 final_denoising_strength = gr.Slider(minimum=0, maximum=1, step=0.01, label='Final denoising strength', value=0.5, elem_id=self.elem_id("final_denoising_strength"))
20 denoising_curve = gr.Dropdown(label="Denoising strength curve", choices=["Aggressive", "Linear", "Lazy"], value="Linear")
21 append_interrogation = gr.Dropdown(label="Append interrogated prompt at each iteration", choices=["None", "CLIP", "DeepBooru"], value="None")
22
23 return [loops, final_denoising_strength, denoising_curve, append_interrogation]
24
25 def run(self, p, loops, final_denoising_strength, denoising_curve, append_interrogation):
26 processing.fix_seed(p)

Callers

nothing calls this directly

Calls 1

elem_idMethod · 0.95

Tested by

no test coverage detected