zerhero commited on
Commit
630904b
1 Parent(s): 2b1dd73

add config.py

Browse files
Files changed (2) hide show
  1. app.py +204 -55
  2. config.py +31 -1
app.py CHANGED
@@ -25,7 +25,8 @@ from stablepy import (
25
  import urllib.parse
26
  from config import (
27
  MINIMUM_IMAGE_NUMBER,
28
- MAXIMUM_IMAGE_NUMBER
 
29
  )
30
 
31
  preprocessor_controlnet = {
@@ -825,20 +826,36 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
825
 
826
  with gr.Column(scale=2):
827
 
828
- task_gui = gr.Dropdown(label="Task", choices=sdxl_task, value=task_model_list[0])
 
 
 
 
829
  model_name_gui = gr.Dropdown(
830
  label="Model",
831
  choices=model_list,
832
  value=model_list[0],
833
  allow_custom_value=True
834
  )
835
- prompt_gui = gr.Textbox(lines=5, placeholder="Enter prompt", label="Prompt")
836
- neg_prompt_gui = gr.Textbox(lines=3, placeholder="Enter Neg prompt", label="Negative prompt")
 
 
 
 
 
 
 
 
 
837
  with gr.Row(equal_height=False):
838
  set_params_gui = gr.Button(value="↙️")
839
  clear_prompt_gui = gr.Button(value="🗑️")
840
  set_random_seed = gr.Button(value="🎲")
841
- generate_button = gr.Button(value="GENERATE", variant="primary")
 
 
 
842
 
843
  model_name_gui.change(
844
  update_task_options,
@@ -1006,8 +1023,13 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1006
  label="Upscale by"
1007
  )
1008
  esrgan_tile_gui = gr.Slider(minimum=0, value=100, maximum=500, step=1, label="ESRGAN Tile")
1009
- esrgan_tile_overlap_gui = gr.Slider(minimum=1, maximum=200, step=1, value=10,
1010
- label="ESRGAN Tile Overlap")
 
 
 
 
 
1011
  hires_steps_gui = gr.Slider(
1012
  minimum=0,
1013
  value=30,
@@ -1039,8 +1061,17 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1039
  )
1040
 
1041
  with gr.Accordion("LoRA", open=False, visible=True):
1042
- lora1_gui = gr.Dropdown(label="Lora1", choices=lora_model_list)
1043
- lora_scale_1_gui = gr.Slider(minimum=-2, maximum=2, step=0.01, value=0.33, label="Lora Scale 1")
 
 
 
 
 
 
 
 
 
1044
  lora2_gui = gr.Dropdown(label="Lora2", choices=lora_model_list)
1045
  lora_scale_2_gui = gr.Slider(minimum=-2, maximum=2, step=0.01, value=0.33, label="Lora Scale 2")
1046
  lora3_gui = gr.Dropdown(label="Lora3", choices=lora_model_list)
@@ -1084,10 +1115,16 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1084
  minimum=0.01, maximum=1.0, step=0.01, value=0.55, label="Strength",
1085
  info="This option adjusts the level of changes for img2img and inpainting."
1086
  )
1087
- image_resolution_gui = gr.Slider(minimum=64, maximum=2048, step=64, value=1024,
1088
- label="Image Resolution")
1089
- preprocessor_name_gui = gr.Dropdown(label="Preprocessor Name",
1090
- choices=preprocessor_controlnet["canny"])
 
 
 
 
 
 
1091
 
1092
 
1093
  def change_preprocessor_choices(task):
@@ -1104,8 +1141,13 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1104
  [task_gui],
1105
  [preprocessor_name_gui],
1106
  )
1107
- preprocess_resolution_gui = gr.Slider(minimum=64, maximum=2048, step=64, value=512,
1108
- label="Preprocess Resolution")
 
 
 
 
 
1109
  low_threshold_gui = gr.Slider(minimum=1, maximum=255, step=1, value=100,
1110
  label="Canny low threshold")
1111
  high_threshold_gui = gr.Slider(minimum=1, maximum=255, step=1, value=200,
@@ -1177,12 +1219,22 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1177
  with gr.Accordion("Detailfix A", open=False, visible=True):
1178
  # Adetailer A
1179
  adetailer_active_a_gui = gr.Checkbox(label="Enable Adetailer A", value=False)
1180
- prompt_ad_a_gui = gr.Textbox(label="Main prompt", placeholder="Main prompt will be use",
1181
- lines=3)
1182
- negative_prompt_ad_a_gui = gr.Textbox(label="Negative prompt",
1183
- placeholder="Main negative prompt will be use", lines=3)
1184
- strength_ad_a_gui = gr.Number(label="Strength:", value=0.35, step=0.01, minimum=0.01,
1185
- maximum=1.0)
 
 
 
 
 
 
 
 
 
 
1186
  face_detector_ad_a_gui = gr.Checkbox(label="Face detector", value=True)
1187
  person_detector_ad_a_gui = gr.Checkbox(label="Person detector", value=True)
1188
  hand_detector_ad_a_gui = gr.Checkbox(label="Hand detector", value=False)
@@ -1193,12 +1245,23 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1193
  with gr.Accordion("Detailfix B", open=False, visible=True):
1194
  # Adetailer B
1195
  adetailer_active_b_gui = gr.Checkbox(label="Enable Adetailer B", value=False)
1196
- prompt_ad_b_gui = gr.Textbox(label="Main prompt", placeholder="Main prompt will be use",
1197
- lines=3)
1198
- negative_prompt_ad_b_gui = gr.Textbox(label="Negative prompt",
1199
- placeholder="Main negative prompt will be use", lines=3)
1200
- strength_ad_b_gui = gr.Number(label="Strength:", value=0.35, step=0.01, minimum=0.01,
1201
- maximum=1.0)
 
 
 
 
 
 
 
 
 
 
 
1202
  face_detector_ad_b_gui = gr.Checkbox(label="Face detector", value=True)
1203
  person_detector_ad_b_gui = gr.Checkbox(label="Person detector", value=True)
1204
  hand_detector_ad_b_gui = gr.Checkbox(label="Hand detector", value=False)
@@ -1213,27 +1276,63 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1213
  generator_in_cpu_gui = gr.Checkbox(value=False, label="Generator in CPU")
1214
 
1215
  with gr.Accordion("More settings", open=False, visible=False):
1216
- loop_generation_gui = gr.Slider(minimum=1, value=1, label="Loop Generation")
1217
- retain_task_cache_gui = gr.Checkbox(value=False, label="Retain task model in cache")
1218
- leave_progress_bar_gui = gr.Checkbox(value=True, label="Leave Progress Bar")
1219
- disable_progress_bar_gui = gr.Checkbox(value=False, label="Disable Progress Bar")
1220
- display_images_gui = gr.Checkbox(value=True, label="Display Images")
1221
- save_generated_images_gui = gr.Checkbox(value=False, label="Save Generated Images")
1222
- image_storage_location_gui = gr.Textbox(value="./images", label="Image Storage Location")
1223
- retain_compel_previous_load_gui = gr.Checkbox(value=False, label="Retain Compel Previous Load")
1224
- retain_detailfix_model_previous_load_gui = gr.Checkbox(value=False,
1225
- label="Retain Detailfix Model Previous Load")
1226
- retain_hires_model_previous_load_gui = gr.Checkbox(value=False,
1227
- label="Retain Hires Model Previous Load")
1228
- xformers_memory_efficient_attention_gui = gr.Checkbox(value=False,
1229
- label="Xformers Memory Efficient Attention")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1230
 
 
1231
  with gr.Accordion("Examples and help", open=False, visible=True):
1232
  gr.Markdown(
1233
  """### Help:
1234
- - The current space runs on a ZERO GPU which is assigned for approximately 60 seconds; Therefore, if you submit expensive tasks, the operation may be canceled upon reaching the maximum allowed time with 'GPU TASK ABORTED'.
1235
- - Distorted or strange images often result from high prompt weights, so it's best to use low weights and scales, and consider using Classic variants like 'Classic-original'.
1236
- - For better results with Pony Diffusion, try using sampler DPM++ 1s or DPM2 with Compel or Classic prompt weights.
 
 
 
 
1237
  """
1238
  )
1239
  gr.Markdown(
@@ -1252,10 +1351,14 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1252
  examples=[
1253
  [
1254
  """
1255
- 1girl, loli, serious, cocky, sporty, basketball jersey, lakers, basketball, half body, (basketball court), sweaty, dribble, high detailed, sunny, day light,
 
 
1256
  score_9, score_8_up, score_7_up, very aesthetic,
1257
- layered, white hair, featuring soft waves and a slight outward curl at the ends, parted in the middle, (short hair),
1258
- red glowing eyes, beautiful hazel red eyes, highly detailed eyes, thin eyebrows, detailed black eyebrows,
 
 
1259
  long eyelashes,
1260
  detailed kornea,
1261
  fisheye,
@@ -1270,7 +1373,12 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1270
  medium boobs,
1271
  armpits, (naval),
1272
  """,
1273
- "(EasyNegative:1.05), easynegative, bad_prompt_version2, (poorly rendered), ugly, disfigured, cross eyed, cloned face, bad symmetry, bad anatomy, low quality, blurry, text, watermark, logo, signature, jpeg, artifacts, monochrome, paintings, oil, (hands:1.15), European Woman, woman, noise, dark skin, (3d), By bad artist -neg,bhands-neg, canvas frame,",
 
 
 
 
 
1274
  1,
1275
  43,
1276
  7.5,
@@ -1312,8 +1420,16 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1312
  "Nearest",
1313
  ],
1314
  [
1315
- "score_9, score_8_up, score_8, medium breasts, cute, eyelashes , princess Zelda OOT, cute small face, long hair, crown braid, hairclip, pointy ears, soft curvy body, solo, looking at viewer, smile, blush, white dress, medium body, (((holding the Master Sword))), standing, deep forest in the background",
1316
- "score_6, score_5, score_4, busty, ugly face, mutated hands, low res, blurry face, black and white,",
 
 
 
 
 
 
 
 
1317
  1,
1318
  30,
1319
  5.,
@@ -1355,8 +1471,15 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1355
  "Nearest",
1356
  ],
1357
  [
1358
- "((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 ",
1359
- "(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",
 
 
 
 
 
 
 
1360
  1,
1361
  48,
1362
  3.5,
@@ -1399,7 +1522,11 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1399
  ],
1400
  [
1401
  "cinematic scenery old city ruins",
1402
- "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), (illustration, 3d, 2d, painting, cartoons, sketch, blurry, film grain, noise), (low quality, worst quality:1.2)",
 
 
 
 
1403
  1,
1404
  50,
1405
  4.,
@@ -1441,8 +1568,30 @@ with gr.Blocks(theme="NoCrypt/miku", css=CSS) as app:
1441
  None,
1442
  ],
1443
  [
1444
- "black and white, line art, coloring drawing, clean line art, black strokes, no background, white, black, free lines, black scribbles, on paper, A blend of comic book art and lineart full of black and white color, masterpiece, high-resolution, trending on Pixiv fan box, palette knife, brush strokes, two-dimensional, planar vector, T-shirt design, stickers, and T-shirt design, vector art, fantasy art, Adobe Illustrator, hand-painted, digital painting, low polygon, soft lighting, aerial view, isometric style, retro aesthetics, 8K resolution, black sketch lines, monochrome, invert color",
1445
- "color, red, green, yellow, colored, duplicate, blurry, abstract, disfigured, deformed, animated, toy, figure, framed, 3d, bad art, poorly drawn, extra limbs, close up, b&w, weird colors, blurry, watermark, blur haze, 2 heads, long neck, watermark, elongated body, cropped image, out of frame, draft, deformed hands, twisted fingers, double image, malformed hands, multiple heads, extra limb, ugly, poorly drawn hands, missing limb, cut-off, over satured, grain, lowères, bad anatomy, poorly drawn face, mutation, mutated, floating limbs, disconnected limbs, out of focus, long body, disgusting, extra fingers, groos proportions, missing arms, mutated hands, cloned face, missing legs, ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, blurry, bad anatomy, blurred, watermark, grainy, signature, cut off, draft, deformed, blurry, bad anatomy, disfigured, poorly drawn face, mutation, bluelish, blue",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1446
  1,
1447
  20,
1448
  4.,
 
25
  import urllib.parse
26
  from config import (
27
  MINIMUM_IMAGE_NUMBER,
28
+ MAXIMUM_IMAGE_NUMBER,
29
+ DEFAULT_NEGATIVE_PROMPT
30
  )
31
 
32
  preprocessor_controlnet = {
 
826
 
827
  with gr.Column(scale=2):
828
 
829
+ task_gui = gr.Dropdown(
830
+ label="Task",
831
+ choices=sdxl_task,
832
+ value=task_model_list[0]
833
+ )
834
  model_name_gui = gr.Dropdown(
835
  label="Model",
836
  choices=model_list,
837
  value=model_list[0],
838
  allow_custom_value=True
839
  )
840
+ prompt_gui = gr.Textbox(
841
+ lines=5,
842
+ placeholder="Enter prompt",
843
+ label="Prompt"
844
+ )
845
+ neg_prompt_gui = gr.Textbox(
846
+ lines=3,
847
+ placeholder="Enter Neg prompt",
848
+ label="Negative prompt",
849
+ value=DEFAULT_NEGATIVE_PROMPT
850
+ )
851
  with gr.Row(equal_height=False):
852
  set_params_gui = gr.Button(value="↙️")
853
  clear_prompt_gui = gr.Button(value="🗑️")
854
  set_random_seed = gr.Button(value="🎲")
855
+ generate_button = gr.Button(
856
+ value="GENERATE",
857
+ variant="primary"
858
+ )
859
 
860
  model_name_gui.change(
861
  update_task_options,
 
1023
  label="Upscale by"
1024
  )
1025
  esrgan_tile_gui = gr.Slider(minimum=0, value=100, maximum=500, step=1, label="ESRGAN Tile")
1026
+ esrgan_tile_overlap_gui = gr.Slider(
1027
+ minimum=1,
1028
+ maximum=200,
1029
+ step=1,
1030
+ value=10,
1031
+ label="ESRGAN Tile Overlap"
1032
+ )
1033
  hires_steps_gui = gr.Slider(
1034
  minimum=0,
1035
  value=30,
 
1061
  )
1062
 
1063
  with gr.Accordion("LoRA", open=False, visible=True):
1064
+ lora1_gui = gr.Dropdown(
1065
+ label="Lora1",
1066
+ choices=lora_model_list
1067
+ )
1068
+ lora_scale_1_gui = gr.Slider(
1069
+ minimum=-2,
1070
+ maximum=2,
1071
+ step=0.01,
1072
+ value=0.33,
1073
+ label="Lora Scale 1"
1074
+ )
1075
  lora2_gui = gr.Dropdown(label="Lora2", choices=lora_model_list)
1076
  lora_scale_2_gui = gr.Slider(minimum=-2, maximum=2, step=0.01, value=0.33, label="Lora Scale 2")
1077
  lora3_gui = gr.Dropdown(label="Lora3", choices=lora_model_list)
 
1115
  minimum=0.01, maximum=1.0, step=0.01, value=0.55, label="Strength",
1116
  info="This option adjusts the level of changes for img2img and inpainting."
1117
  )
1118
+ image_resolution_gui = gr.Slider(
1119
+ minimum=64,
1120
+ maximum=2048,
1121
+ step=64, value=1024,
1122
+ label="Image Resolution"
1123
+ )
1124
+ preprocessor_name_gui = gr.Dropdown(
1125
+ label="Preprocessor Name",
1126
+ choices=preprocessor_controlnet["canny"]
1127
+ )
1128
 
1129
 
1130
  def change_preprocessor_choices(task):
 
1141
  [task_gui],
1142
  [preprocessor_name_gui],
1143
  )
1144
+ preprocess_resolution_gui = gr.Slider(
1145
+ minimum=64,
1146
+ maximum=2048,
1147
+ step=64,
1148
+ value=512,
1149
+ label="Preprocess Resolution"
1150
+ )
1151
  low_threshold_gui = gr.Slider(minimum=1, maximum=255, step=1, value=100,
1152
  label="Canny low threshold")
1153
  high_threshold_gui = gr.Slider(minimum=1, maximum=255, step=1, value=200,
 
1219
  with gr.Accordion("Detailfix A", open=False, visible=True):
1220
  # Adetailer A
1221
  adetailer_active_a_gui = gr.Checkbox(label="Enable Adetailer A", value=False)
1222
+ prompt_ad_a_gui = gr.Textbox(
1223
+ label="Main prompt",
1224
+ placeholder="Main prompt will be use",
1225
+ lines=3
1226
+ )
1227
+ negative_prompt_ad_a_gui = gr.Textbox(
1228
+ label="Negative prompt",
1229
+ placeholder="Main negative prompt will be use",
1230
+ lines=3
1231
+ )
1232
+ strength_ad_a_gui = gr.Number(
1233
+ label="Strength:",
1234
+ value=0.35, step=0.01,
1235
+ minimum=0.01,
1236
+ maximum=1.0
1237
+ )
1238
  face_detector_ad_a_gui = gr.Checkbox(label="Face detector", value=True)
1239
  person_detector_ad_a_gui = gr.Checkbox(label="Person detector", value=True)
1240
  hand_detector_ad_a_gui = gr.Checkbox(label="Hand detector", value=False)
 
1245
  with gr.Accordion("Detailfix B", open=False, visible=True):
1246
  # Adetailer B
1247
  adetailer_active_b_gui = gr.Checkbox(label="Enable Adetailer B", value=False)
1248
+ prompt_ad_b_gui = gr.Textbox(
1249
+ label="Main prompt",
1250
+ placeholder="Main prompt will be use",
1251
+ lines=3
1252
+ )
1253
+ negative_prompt_ad_b_gui = gr.Textbox(
1254
+ label="Negative prompt",
1255
+ placeholder="Main negative prompt will be use",
1256
+ lines=3
1257
+ )
1258
+ strength_ad_b_gui = gr.Number(
1259
+ label="Strength:",
1260
+ value=0.35,
1261
+ step=0.01,
1262
+ minimum=0.01,
1263
+ maximum=1.0
1264
+ )
1265
  face_detector_ad_b_gui = gr.Checkbox(label="Face detector", value=True)
1266
  person_detector_ad_b_gui = gr.Checkbox(label="Person detector", value=True)
1267
  hand_detector_ad_b_gui = gr.Checkbox(label="Hand detector", value=False)
 
1276
  generator_in_cpu_gui = gr.Checkbox(value=False, label="Generator in CPU")
1277
 
1278
  with gr.Accordion("More settings", open=False, visible=False):
1279
+ loop_generation_gui = gr.Slider(
1280
+ minimum=1,
1281
+ value=1,
1282
+ label="Loop Generation"
1283
+ )
1284
+ retain_task_cache_gui = gr.Checkbox(
1285
+ value=False,
1286
+ label="Retain task model in cache"
1287
+ )
1288
+ leave_progress_bar_gui = gr.Checkbox(
1289
+ value=True,
1290
+ label="Leave Progress Bar"
1291
+ )
1292
+ disable_progress_bar_gui = gr.Checkbox(
1293
+ value=False,
1294
+ label="Disable Progress Bar"
1295
+ )
1296
+ display_images_gui = gr.Checkbox(
1297
+ value=True,
1298
+ label="Display Images"
1299
+ )
1300
+ save_generated_images_gui = gr.Checkbox(
1301
+ value=False,
1302
+ label="Save Generated Images"
1303
+ )
1304
+ image_storage_location_gui = gr.Textbox(
1305
+ value="./images",
1306
+ label="Image Storage Location"
1307
+ )
1308
+ retain_compel_previous_load_gui = gr.Checkbox(
1309
+ value=False,
1310
+ label="Retain Compel Previous Load"
1311
+ )
1312
+ retain_detailfix_model_previous_load_gui = gr.Checkbox(
1313
+ value=False,
1314
+ label="Retain Detailfix Model Previous Load"
1315
+ )
1316
+ retain_hires_model_previous_load_gui = gr.Checkbox(
1317
+ value=False,
1318
+ label="Retain Hires Model Previous Load"
1319
+ )
1320
+ xformers_memory_efficient_attention_gui = gr.Checkbox(
1321
+ value=False,
1322
+ label="Xformers Memory Efficient Attention"
1323
+ )
1324
 
1325
+ # example and Help Section
1326
  with gr.Accordion("Examples and help", open=False, visible=True):
1327
  gr.Markdown(
1328
  """### Help:
1329
+ - The current space runs on a ZERO GPU which is assigned for approximately 60 seconds; Therefore, \
1330
+ if you submit expensive tasks, the operation may be canceled upon reaching the \
1331
+ maximum allowed time with 'GPU TASK ABORTED'.
1332
+ - Distorted or strange images often result from high prompt weights, \
1333
+ so it's best to use low weights and scales, and consider using Classic variants like 'Classic-original'.
1334
+ - For better results with Pony Diffusion, \
1335
+ try using sampler DPM++ 1s or DPM2 with Compel or Classic prompt weights.
1336
  """
1337
  )
1338
  gr.Markdown(
 
1351
  examples=[
1352
  [
1353
  """
1354
+ 1girl, loli, serious, cocky, sporty, basketball jersey, lakers, basketball, half body,
1355
+ (basketball court), sweaty, dribble, high detailed, sunny, day light,
1356
+
1357
  score_9, score_8_up, score_7_up, very aesthetic,
1358
+ layered, white hair, featuring soft waves and a slight outward curl at the ends,
1359
+ parted in the middle, (short hair),
1360
+ red glowing eyes, beautiful hazel red eyes, highly detailed eyes, thin eyebrows,
1361
+ detailed black eyebrows,
1362
  long eyelashes,
1363
  detailed kornea,
1364
  fisheye,
 
1373
  medium boobs,
1374
  armpits, (naval),
1375
  """,
1376
+ """
1377
+ (EasyNegative:1.05), easynegative, bad_prompt_version2, (poorly rendered), ugly, disfigured,
1378
+ cross eyed, cloned face, bad symmetry, bad anatomy, low quality, blurry, text, watermark, logo,
1379
+ signature, jpeg, artifacts, monochrome, paintings, oil, (hands:1.15), European Woman, woman,
1380
+ noise, dark skin, (3d), By bad artist -neg,bhands-neg, canvas frame,
1381
+ """,
1382
  1,
1383
  43,
1384
  7.5,
 
1420
  "Nearest",
1421
  ],
1422
  [
1423
+ """
1424
+ score_9, score_8_up, score_8, medium breasts, cute, eyelashes , princess Zelda OOT, cute
1425
+ small face, long hair, crown braid, hairclip, pointy ears, soft curvy body, solo,
1426
+ looking at viewer, smile, blush, white dress, medium body, (((holding the Master Sword))),
1427
+ standing, deep forest in the background
1428
+ """,
1429
+ """
1430
+ score_6, score_5, score_4, busty, ugly face, mutated hands, low res,
1431
+ blurry face, black and white,
1432
+ """,
1433
  1,
1434
  30,
1435
  5.,
 
1471
  "Nearest",
1472
  ],
1473
  [
1474
+ """
1475
+ ((masterpiece)), best quality, blonde disco girl, detailed face, realistic face,
1476
+ realistic hair, dynamic pose, pink pvc, intergalactic disco background,
1477
+ pastel lights, dynamic contrast, airbrush, fine detail, 70s vibe, midriff
1478
+ """,
1479
+ """
1480
+ (worst quality:1.2), (bad quality:1.2), (poor quality:1.2), (missing fingers:1.2),
1481
+ bad-artist-anime, bad-artist, bad-picture-chill-75v
1482
+ """,
1483
  1,
1484
  48,
1485
  3.5,
 
1522
  ],
1523
  [
1524
  "cinematic scenery old city ruins",
1525
+ """
1526
+ (worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch),
1527
+ (illustration, 3d, 2d, painting, cartoons, sketch, blurry, film grain, noise),
1528
+ (low quality, worst quality:1.2)
1529
+ """,
1530
  1,
1531
  50,
1532
  4.,
 
1568
  None,
1569
  ],
1570
  [
1571
+ """
1572
+ black and white, line art, coloring drawing, clean line art, black strokes, no background,
1573
+ white, black, free lines, black scribbles, on paper,
1574
+ A blend of comic book art and lineart full of black and white color, masterpiece,
1575
+ high-resolution, trending on Pixiv fan box, palette knife, brush strokes, two-dimensional,
1576
+ planar vector, T-shirt design, stickers, and T-shirt design, vector art, fantasy art,
1577
+ Adobe Illustrator, hand-painted, digital painting, low polygon, soft lighting, aerial view,
1578
+ isometric style, retro aesthetics, 8K resolution, black sketch lines, monochrome, invert color
1579
+ """,
1580
+ """
1581
+ color, red, green, yellow, colored, duplicate, blurry, abstract, disfigured, deformed,
1582
+ animated, toy, figure, framed, 3d, bad art, poorly drawn, extra limbs, close up, b&w,
1583
+ weird colors, blurry, watermark, blur haze, 2 heads, long neck, watermark, elongated body,
1584
+ cropped image, out of frame, draft, deformed hands, twisted fingers, double image,
1585
+ malformed hands, multiple heads, extra limb, ugly, poorly drawn hands, missing limb,
1586
+ cut-off, over satured, grain, lowères, bad anatomy, poorly drawn face, mutation, mutated,
1587
+ floating limbs, disconnected limbs, out of focus, long body, disgusting, extra fingers,
1588
+ groos proportions, missing arms, mutated hands, cloned face, missing legs, ugly, tiling,
1589
+ poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs,
1590
+ disfigured, deformed, body out of frame, blurry, bad anatomy, blurred, watermark, grainy,
1591
+ signature, cut off, draft, deformed, blurry, bad anatomy, disfigured, poorly drawn face,
1592
+ mutation, bluelish, blue
1593
+
1594
+ """,
1595
  1,
1596
  20,
1597
  4.,
config.py CHANGED
@@ -1,2 +1,32 @@
1
  MINIMUM_IMAGE_NUMBER = 1
2
- MAXIMUM_IMAGE_NUMBER = 6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  MINIMUM_IMAGE_NUMBER = 1
2
+ MAXIMUM_IMAGE_NUMBER = 6
3
+ DEFAULT_NEGATIVE_PROMPT = """
4
+ (EasyNegative:1.05), easynegative, bad_prompt_version2, (poorly rendered), ugly, disfigured,
5
+ cross eyed, cloned face, bad symmetry, bad anatomy, low quality, blurry, text, watermark, logo,
6
+ signature, jpeg, artifacts, monochrome, paintings, oil, (hands:1.15), European Woman, woman,
7
+ noise, dark skin, (3d), By bad artist -neg,bhands-neg, canvas frame, (badly drawn), (badly painted),
8
+ """
9
+
10
+ DEFAULT_POSITIVE_PROMPT = """
11
+ 1girl, loli, serious, cocky, sporty, basketball jersey, lakers, basketball, half body,
12
+ (basketball court), sweaty, dribble, high detailed, sunny, day light,
13
+
14
+ score_9, score_8_up, score_7_up, very aesthetic,
15
+ layered, white hair, featuring soft waves and a slight outward curl at the ends,
16
+ parted in the middle, (short hair),
17
+ red glowing eyes, beautiful hazel red eyes, highly detailed eyes, thin eyebrows,
18
+ detailed black eyebrows,
19
+ long eyelashes,
20
+ detailed kornea,
21
+ fisheye,
22
+ blush,
23
+ parted lips, gorgeous lips, pink thin lips,
24
+ detailed ear, human ears, human ear, highly detailed ears, highly detailed ear, detailed ears,
25
+ perfect anatomy,
26
+
27
+ five fingers,
28
+ two hands,
29
+ short girl, narrow body, detailed face, petite,
30
+ medium boobs,
31
+ armpits, (naval),
32
+ """