Severian commited on
Commit
00f7961
·
verified ·
1 Parent(s): a09eed7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +90 -1
app.py CHANGED
@@ -355,7 +355,7 @@ with gr.Blocks(theme='Hev832/Applio') as blocks:
355
  value=2,
356
  label="QR Code Visibility in Image",
357
  )
358
- with gr.Accordion("See Details on how much QR code visibility in image", open=False):
359
  gr.Markdown(
360
  """
361
  **QR Code Visibility** determines how much the QR code itself stands out in the final design. Think of it like balancing between how "artistic" the image looks and how "functional" the QR code is.
@@ -370,6 +370,95 @@ with gr.Blocks(theme='Hev832/Applio') as blocks:
370
  """
371
  )
372
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
373
  with gr.Row():
374
  strength = gr.Slider(
375
  minimum=0.0,
 
355
  value=2,
356
  label="QR Code Visibility in Image",
357
  )
358
+ with gr.Accordion("How Much QR Code Visibility is in Final Image (Click For Explanation)", open=False):
359
  gr.Markdown(
360
  """
361
  **QR Code Visibility** determines how much the QR code itself stands out in the final design. Think of it like balancing between how "artistic" the image looks and how "functional" the QR code is.
 
370
  """
371
  )
372
 
373
+ with gr.Row():
374
+ strength = gr.Slider(
375
+ minimum=0.0,
376
+ maximum=1.0,
377
+ step=0.01,
378
+ value=0.9,
379
+ label="Artistic Freedom for the AI When Generating",
380
+ )
381
+ with gr.Accordion("How Much Artistic Freedom the AI has When Generating Image (Click For Explanation)", open=False):
382
+ gr.Markdown(
383
+ """
384
+ **Artistic Freedom** controls how much the AI is allowed to change the QR code's look to match your description. It's like telling the AI how creative it can get with your QR code:
385
+
386
+ - **Low settings (0.0-0.3)**: If you set this low, the AI will make small changes and your QR code will look more like a regular, plain QR code. This is useful if you want something that is still creative but not too wild, keeping it simple and easy to scan.
387
+
388
+ - **Medium settings (0.4-0.7)**: Here, the AI will add more artistic touches but keep the QR code recognizable. You get the best of both worlds—your QR code will have some creative flair, but it will still be easy to scan. For most cases, setting it to **0.6** is a great way to keep the code functional and artistic.
389
+
390
+ - **High settings (0.8-1.0)**: If you set this high, the AI will go all-out creative. The QR code will look amazing, but it might be difficult to scan because the art can start to take over the code. This setting is perfect if you're aiming for a highly creative piece of art and don't mind if it's a bit harder to scan. Start at **0.9** to explore creative but functional designs.
391
+ """
392
+ )
393
+
394
+ with gr.Row():
395
+ guidance_scale = gr.Slider(
396
+ minimum=0.0,
397
+ maximum=50.0,
398
+ step=0.25,
399
+ value=7.5,
400
+ label="How Closely the AI Follows the Prompt",
401
+
402
+ )
403
+ with gr.Accordion("How Closely the AI Follows the Prompt (Click For Explanation)", open=False):
404
+ gr.Markdown(
405
+ """
406
+ **Follow the Prompt** tells the AI how closely it should follow your description when creating the QR code art. Think of it like giving the AI instructions on how strict or flexible it can be with your design ideas:
407
+
408
+ - **Low settings (0-5)**: If you choose a lower value, the AI has more freedom to get creative on its own and may not stick too closely to your description. This is great if you want to see how the AI interprets your ideas in unexpected ways.
409
+
410
+ - **Medium settings (5-15)**: This is a good balance where the AI will mostly follow your prompt but will also add some of its own creative touches. If you want to see some surprises but still want the design to look like what you described, start at around **7.5**.
411
+
412
+ - **High settings (15+)**: If you choose a higher value, the AI will stick very closely to what you wrote in the description. This is good if you have a very specific idea and don't want the AI to change much. Just keep in mind that this might limit the AI's creativity.
413
+
414
+ Start at **7.5** for a balanced approach where the AI follows your ideas but still adds some artistic flair.
415
+ """
416
+ )
417
+
418
+ with gr.Row():
419
+ sampler = gr.Dropdown(
420
+ choices=list(SAMPLER_MAP.keys()),
421
+ value="DPM++ Karras SDE",
422
+ label="Art Style the AI Uses to Create the Image",
423
+
424
+ )
425
+ with gr.Accordion("Details on Art Style the AI Uses to Create the Image (Click For Explanation)", open=False):
426
+ gr.Markdown(
427
+ """
428
+ **Art Style** changes how the AI creates the image, using different methods (or "samplers"). Each method has a different effect on how detailed or artistic the final QR code looks:
429
+
430
+ - **DPM++ Karras SDE**: This is a great all-around option for creating high-quality, detailed images. It's a good place to start if you want a balance of sharpness and creativity.
431
+
432
+ - **Euler**: This method creates very sharp, detailed images, making the QR code look crisp and clear. Choose this if you want a precise, well-defined design.
433
+
434
+ - **DDIM**: This method is better if you want the QR code to have a more artistic, abstract style. It's great for when you want the QR code to look like a piece of modern art.
435
+
436
+ Feel free to experiment with different samplers to see what works best for the look you're going for!
437
+ """
438
+ )
439
+
440
+ with gr.Row():
441
+ seed = gr.Slider(
442
+ minimum=-1,
443
+ maximum=9999999999,
444
+ step=1,
445
+ value=-1,
446
+ label="Creative Seed for the Image Generation",
447
+ randomize=False,
448
+ )
449
+ with gr.Accordion("How Creative Seed Works for Generating New and Unique Images (Click For Explanation)", open=False):
450
+ gr.Markdown(
451
+ """
452
+ **Creative Seed** controls whether the AI creates a completely new design each time or sticks to a specific design. Think of it like a recipe: with the same seed number, you get the same "recipe" for your QR code every time.
453
+
454
+ - **-1**: This setting makes the AI create something completely new every time you run it. Use this if you want to explore different design ideas with each attempt.
455
+
456
+ - **Any other number**: If you set a specific number, the AI will always create the same image based on that number. This is useful if you find a design you like and want to recreate it exactly.
457
+
458
+ Try **-1** if you want to explore and generate different designs. If you find something you really love, write down the seed number and use it again to recreate the same design.
459
+ """
460
+ )
461
+
462
  with gr.Row():
463
  strength = gr.Slider(
464
  minimum=0.0,