r3gm commited on
Commit
5ce194f
1 Parent(s): 9f6785f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -2,6 +2,11 @@ task_stablepy = {
2
  'txt2img': 'txt2img',
3
  'img2img': 'img2img',
4
  'inpaint': 'inpaint',
 
 
 
 
 
5
  'sd_openpose ControlNet': 'openpose',
6
  'sd_canny ControlNet': 'canny',
7
  'sd_mlsd ControlNet': 'mlsd',
@@ -14,11 +19,6 @@ task_stablepy = {
14
  'sd_lineart_anime ControlNet': 'lineart_anime',
15
  'sd_shuffle ControlNet': 'shuffle',
16
  'sd_ip2p ControlNet': 'ip2p',
17
- 'sdxl_canny T2I Adapter': 'sdxl_canny',
18
- 'sdxl_sketch T2I Adapter': 'sdxl_sketch',
19
- 'sdxl_lineart T2I Adapter': 'sdxl_lineart',
20
- 'sdxl_depth-midas T2I Adapter': 'sdxl_depth-midas',
21
- 'sdxl_openpose T2I Adapter': 'sdxl_openpose'
22
  }
23
 
24
  task_model_list = list(task_stablepy.keys())
@@ -589,7 +589,7 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
589
  clip_skip_gui = gr.Checkbox(value=True, label="Layer 2 Clip Skip")
590
  free_u_gui = gr.Checkbox(value=True, label="FreeU")
591
  seed_gui = gr.Number(minimum=-1, maximum=9999999999, value=-1, label="Seed")
592
- num_images_gui = gr.Slider(minimum=1, maximum=16, step=1, value=1, label="Images")
593
  prompt_s_options = [("Compel (default) format: (word)weight", "Compel"), ("Classic (sd1.5 long prompts) format: (word:weight)", "Classic")]
594
  prompt_syntax_gui = gr.Dropdown(label="Prompt Syntax", choices=prompt_s_options, value=prompt_s_options[0][1])
595
  vae_model_gui = gr.Dropdown(label="VAE Model", choices=vae_model_list)
@@ -670,7 +670,7 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
670
  with gr.Accordion("Textual inversion", open=False, visible=False):
671
  active_textual_inversion_gui = gr.Checkbox(value=False, label="Active Textual Inversion in prompt")
672
 
673
- with gr.Accordion("Hires fix", open=False, visible=False):
674
 
675
  upscaler_keys = list(upscaler_dict_gui.keys())
676
 
 
2
  'txt2img': 'txt2img',
3
  'img2img': 'img2img',
4
  'inpaint': 'inpaint',
5
+ 'sdxl_canny T2I Adapter': 'sdxl_canny',
6
+ 'sdxl_sketch T2I Adapter': 'sdxl_sketch',
7
+ 'sdxl_lineart T2I Adapter': 'sdxl_lineart',
8
+ 'sdxl_depth-midas T2I Adapter': 'sdxl_depth-midas',
9
+ 'sdxl_openpose T2I Adapter': 'sdxl_openpose',
10
  'sd_openpose ControlNet': 'openpose',
11
  'sd_canny ControlNet': 'canny',
12
  'sd_mlsd ControlNet': 'mlsd',
 
19
  'sd_lineart_anime ControlNet': 'lineart_anime',
20
  'sd_shuffle ControlNet': 'shuffle',
21
  'sd_ip2p ControlNet': 'ip2p',
 
 
 
 
 
22
  }
23
 
24
  task_model_list = list(task_stablepy.keys())
 
589
  clip_skip_gui = gr.Checkbox(value=True, label="Layer 2 Clip Skip")
590
  free_u_gui = gr.Checkbox(value=True, label="FreeU")
591
  seed_gui = gr.Number(minimum=-1, maximum=9999999999, value=-1, label="Seed")
592
+ num_images_gui = gr.Slider(minimum=1, maximum=8, step=1, value=1, label="Images")
593
  prompt_s_options = [("Compel (default) format: (word)weight", "Compel"), ("Classic (sd1.5 long prompts) format: (word:weight)", "Classic")]
594
  prompt_syntax_gui = gr.Dropdown(label="Prompt Syntax", choices=prompt_s_options, value=prompt_s_options[0][1])
595
  vae_model_gui = gr.Dropdown(label="VAE Model", choices=vae_model_list)
 
670
  with gr.Accordion("Textual inversion", open=False, visible=False):
671
  active_textual_inversion_gui = gr.Checkbox(value=False, label="Active Textual Inversion in prompt")
672
 
673
+ with gr.Accordion("Hires fix", open=False, visible=True):
674
 
675
  upscaler_keys = list(upscaler_dict_gui.keys())
676