"canvas_hotkey_zoom":shared.OptionInfo("Alt","Zoom canvas",gr.Radio,{"choices":["Shift","Ctrl","Alt"]}).info("If you choose 'Shift' you cannot scroll horizontally, 'Alt' can cause a little trouble in firefox"),
"canvas_hotkey_adjust":shared.OptionInfo("Ctrl","Adjust brush size",gr.Radio,{"choices":["Shift","Ctrl","Alt"]}).info("If you choose 'Shift' you cannot scroll horizontally, 'Alt' can cause a little trouble in firefox"),
"canvas_hotkey_shrink_brush":shared.OptionInfo("Q","Shrink the brush size"),
"canvas_hotkey_grow_brush":shared.OptionInfo("W","Enlarge the brush size"),
"canvas_hotkey_move":shared.OptionInfo("F","Moving the canvas").info("To work correctly in firefox, turn off 'Automatically search the page text when typing' in the browser settings"),
"canvas_hotkey_fullscreen":shared.OptionInfo("S","Fullscreen Mode, maximizes the picture so that it fits into the screen and stretches it to its full width "),
"canvas_hotkey_reset":shared.OptionInfo("R","Reset zoom and canvas positon"),
"canvas_show_tooltip":shared.OptionInfo(True,"Enable tooltip on the canvas"),
"canvas_auto_expand":shared.OptionInfo(True,"Automatically expands an image that does not fit completely in the canvas area, similar to manually pressing the S and R buttons"),
"canvas_blur_prompt":shared.OptionInfo(False,"Take the focus off the prompt when working with a canvas"),
"canvas_disabled_functions":shared.OptionInfo(["Overlap"],"Disable function that you don't use",gr.CheckboxGroup,{"choices":["Zoom","Adjust brush size","Moving canvas","Fullscreen","Reset Zoom","Overlap"]}),
"canvas_disabled_functions":shared.OptionInfo(["Overlap"],"Disable function that you don't use",gr.CheckboxGroup,{"choices":["Zoom","Adjust brush size","Hotkey enlarge brush","Hotkey shrink brush","Moving canvas","Fullscreen","Reset Zoom","Overlap"]}),
"""parses generation parameters string, the one you see in text field under the picture in UI:
```
girl with an artist's beret, determined, blue eyes, desert scene, computer monitors, heavy makeup, by Alphonse Mucha and Charlie Bowater, ((eyeshadow)), (coquettish), detailed, intricate
...
...
@@ -240,6 +240,8 @@ Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 965400086, Size: 512x512, Model
returns a dict with field values
"""
ifskip_fieldsisNone:
skip_fields=shared.opts.infotext_skip_pasting
res={}
...
...
@@ -356,8 +358,8 @@ Steps: 20, Sampler: Euler a, CFG scale: 7, Seed: 965400086, Size: 512x512, Model
"ESRGAN_tile":OptionInfo(192,"Tile size for ESRGAN upscalers.",gr.Slider,{"minimum":0,"maximum":512,"step":16}).info("0 = no tiling"),
"ESRGAN_tile_overlap":OptionInfo(8,"Tile overlap for ESRGAN upscalers.",gr.Slider,{"minimum":0,"maximum":48,"step":1}).info("Low values = visible seam"),
"realesrgan_enabled_models":OptionInfo(["R-ESRGAN 4x+","R-ESRGAN 4x+ Anime6B"],"Select which Real-ESRGAN models to show in the web UI.",gr.CheckboxGroup,lambda:{"choices":shared_items.realesrgan_models_names()}),
"dat_enabled_models":OptionInfo(["DAT x2","DAT x3","DAT x4"],"Select which DAT models to show in the web UI.",gr.CheckboxGroup,lambda:{"choices":shared_items.dat_models_names()}),
"DAT_tile":OptionInfo(192,"Tile size for DAT upscalers.",gr.Slider,{"minimum":0,"maximum":512,"step":16}).info("0 = no tiling"),
"DAT_tile_overlap":OptionInfo(8,"Tile overlap for DAT upscalers.",gr.Slider,{"minimum":0,"maximum":48,"step":1}).info("Low values = visible seam"),
"upscaler_for_img2img":OptionInfo(None,"Upscaler for img2img",gr.Dropdown,lambda:{"choices":[x.nameforxinshared.sd_upscalers]}),
init_img=gr.Image(label="Image for img2img",elem_id="img2img_image",show_label=False,source="upload",interactive=True,type="pil",tool="editor",image_mode="RGBA",height=opts.img2img_editor_height)
ifindex>-1andshared.opts.save_selected_onlyand(index>=data["index_of_first_image"]):# ensures we are looking at a specific non-grid picture, and we have save_selected_only