r3gm commited on
Commit
f4ef5e2
β€’
1 Parent(s): 91bd3f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +56 -13
app.py CHANGED
@@ -563,8 +563,8 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
563
  with gr.Column(scale=2):
564
  task_gui = gr.Dropdown(label="Task", choices=task_model_list, value=task_model_list[0])
565
  model_name_gui = gr.Dropdown(label="Model", choices=model_list, value=model_list[0], allow_custom_value=True)
566
- prompt_gui = gr.Textbox(lines=5, placeholder="Enter prompt")
567
- neg_prompt_gui = gr.Textbox(lines=3, placeholder="Enter Neg prompt")
568
  generate_button = gr.Button(value="GENERATE", variant="primary")
569
 
570
  result_images = gr.Gallery(
@@ -584,8 +584,8 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
584
  steps_gui = gr.Slider(minimum=1, maximum=100, step=1, value=30, label="Steps")
585
  cfg_gui = gr.Slider(minimum=0, maximum=30, step=0.5, value=7.5, label="CFG")
586
  sampler_gui = gr.Dropdown(label="Sampler", choices=scheduler_names, value="Euler a")
587
- img_height_gui = gr.Slider(minimum=64, maximum=4096, step=8, value=1024, label="Img Height")
588
  img_width_gui = gr.Slider(minimum=64, maximum=4096, step=8, value=1024, label="Img Width")
 
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")
@@ -741,7 +741,7 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
741
  retain_hires_model_previous_load_gui = gr.Checkbox(value=False, label="Retain Hires Model Previous Load")
742
  xformers_memory_efficient_attention_gui = gr.Checkbox(value=False, label="Xformers Memory Efficient Attention")
743
 
744
- with gr.Accordion("Examples", open=True, visible=True):
745
  gr.Examples(
746
  examples=[
747
  [
@@ -763,8 +763,8 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
763
  None,
764
  1.0,
765
  "Euler a",
766
- 1024,
767
- 1024,
768
  "cagliostrolab/animagine-xl-3.1",
769
  None, # vae
770
  "txt2img",
@@ -831,11 +831,11 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
831
  "Nearest",
832
  ],
833
  [
834
- "in this scene, a man wearing an elaborate, multicolored suit that looks like a patchwork of different geometric patterns and hues stands against a stark white background. his eyes are hidden behind a pair of reflective sunglasses, casting an air of mystery around him. he holds a gold pocket watch in his left hand, its intricate details glinting under the light. the room is silent, with only the faint ticking sound of the pocket watch breaking the eerie silence. a cloud of suspense hangs in the air as if something momentous is about to happen. the anticipation is palpable, and every eye is on him, waiting for the second hand to complete its revolution, best quality, masterpiece, high quality, highres,",
835
  "(worst quality:1.2), (bad quality:1.2), (poor quality:1.2), (missing fingers:1.2), bad-artist-anime, bad-artist, bad-picture-chill-75v",
836
  1,
837
- 52,
838
- 7.5,
839
  True,
840
  -1,
841
  None,
@@ -848,15 +848,15 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
848
  1.0,
849
  None,
850
  1.0,
851
- "DPM++ 2M Ef",
852
  1024,
853
  1024,
854
  "misri/epicrealismXL_v7FinalDestination",
855
  None, # vae
856
- "txt2img",
857
- None, # img conttol
858
  "Canny", # preprocessor
859
- 512, # preproc resolution
860
  1024, # img resolution
861
  None, # Style prompt
862
  None, # Style json
@@ -959,6 +959,49 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
959
  "Classic",
960
  None,
961
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
962
  ],
963
  fn=sd_gen.generate_pipeline,
964
  inputs=[
 
563
  with gr.Column(scale=2):
564
  task_gui = gr.Dropdown(label="Task", choices=task_model_list, value=task_model_list[0])
565
  model_name_gui = gr.Dropdown(label="Model", choices=model_list, value=model_list[0], allow_custom_value=True)
566
+ prompt_gui = gr.Textbox(lines=5, placeholder="Enter prompt", label="Prompt")
567
+ neg_prompt_gui = gr.Textbox(lines=3, placeholder="Enter Neg prompt", label="Negative prompt")
568
  generate_button = gr.Button(value="GENERATE", variant="primary")
569
 
570
  result_images = gr.Gallery(
 
584
  steps_gui = gr.Slider(minimum=1, maximum=100, step=1, value=30, label="Steps")
585
  cfg_gui = gr.Slider(minimum=0, maximum=30, step=0.5, value=7.5, label="CFG")
586
  sampler_gui = gr.Dropdown(label="Sampler", choices=scheduler_names, value="Euler a")
 
587
  img_width_gui = gr.Slider(minimum=64, maximum=4096, step=8, value=1024, label="Img Width")
588
+ img_height_gui = gr.Slider(minimum=64, maximum=4096, step=8, value=1024, label="Img Height")
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")
 
741
  retain_hires_model_previous_load_gui = gr.Checkbox(value=False, label="Retain Hires Model Previous Load")
742
  xformers_memory_efficient_attention_gui = gr.Checkbox(value=False, label="Xformers Memory Efficient Attention")
743
 
744
+ with gr.Accordion("Examples", open=False, visible=True):
745
  gr.Examples(
746
  examples=[
747
  [
 
763
  None,
764
  1.0,
765
  "Euler a",
766
+ 1152,
767
+ 896,
768
  "cagliostrolab/animagine-xl-3.1",
769
  None, # vae
770
  "txt2img",
 
831
  "Nearest",
832
  ],
833
  [
834
+ "((masterpiece)), best quality, blonde disco girl, detailed face, realistic face, realistic hair, dynamic pose, pink pvc, intergalactic disco background, pastel lights, dynamic contrast, airbrush, fine detail, 70s vibe, midriff ",
835
  "(worst quality:1.2), (bad quality:1.2), (poor quality:1.2), (missing fingers:1.2), bad-artist-anime, bad-artist, bad-picture-chill-75v",
836
  1,
837
+ 48,
838
+ 3.5,
839
  True,
840
  -1,
841
  None,
 
848
  1.0,
849
  None,
850
  1.0,
851
+ "DPM++ 2M SDE Lu",
852
  1024,
853
  1024,
854
  "misri/epicrealismXL_v7FinalDestination",
855
  None, # vae
856
+ "sdxl_canny T2I Adapter",
857
+ "image.webp", # img conttol
858
  "Canny", # preprocessor
859
+ 1024, # preproc resolution
860
  1024, # img resolution
861
  None, # Style prompt
862
  None, # Style json
 
959
  "Classic",
960
  None,
961
  ],
962
+ [
963
+ "1girl,face,curly hair,red hair,white background,",
964
+ "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,",
965
+ 1,
966
+ 38,
967
+ 5.,
968
+ True,
969
+ -1,
970
+ None,
971
+ 1.0,
972
+ None,
973
+ 1.0,
974
+ None,
975
+ 1.0,
976
+ None,
977
+ 1.0,
978
+ None,
979
+ 1.0,
980
+ "DPM++ 2M SDE Karras",
981
+ 512,
982
+ 512,
983
+ "digiplay/majicMIX_realistic_v7",
984
+ None, # vae
985
+ "sd_canny ControlNet",
986
+ "image.webp", # img conttol
987
+ "Canny", # preprocessor
988
+ 512, # preproc resolution
989
+ 1024, # img resolution
990
+ None, # Style prompt
991
+ None, # Style json
992
+ None, # img Mask
993
+ 0.35, # strength
994
+ 100, # low th canny
995
+ 200, # high th canny
996
+ 0.1, # value mstd
997
+ 0.1, # distance mstd
998
+ 1.0, # cn scale
999
+ 0., # cn start
1000
+ 1., # cn end
1001
+ False, # ti
1002
+ "Compel",
1003
+ "Nearest",
1004
+ ],
1005
  ],
1006
  fn=sd_gen.generate_pipeline,
1007
  inputs=[