sienna223 commited on
Commit
bbb1750
·
1 Parent(s): 34b78a4

update demo

Browse files
app.py CHANGED
@@ -194,7 +194,7 @@ def get_example():
194
  0,
195
  ],
196
  [
197
- " replace the sword with a hammer.",
198
  1024,
199
  1024,
200
  "euler",
@@ -378,18 +378,20 @@ def get_example():
378
  1024 * 1024,
379
  0,
380
  ],
 
 
381
  [
382
- "Create a wedding figure based on the girl in the first image and the man in the second image. Set the background as a wedding hall, with the man dressed in a suit and the girl in a white wedding dress. Ensure that the original faces remain unchanged and are accurately preserved. The man should adopt a realistic style, whereas the girl should maintain their classic anime style.",
383
  1024,
384
  1024,
385
  "euler",
386
  50,
387
- os.path.join(ROOT_DIR, "example_images/1_20241127203215.png"),
388
- os.path.join(ROOT_DIR, "example_images/000050281.jpg"),
389
  None,
390
  NEGATIVE_PROMPT,
391
  5.0,
392
- 3.0,
393
  0.0,
394
  1.0,
395
  1,
@@ -398,17 +400,17 @@ def get_example():
398
  0,
399
  ],
400
  [
401
- "Let the girl and the boy get married in the church. ",
402
  1024,
403
  1024,
404
  "euler",
405
  50,
406
- os.path.join(ROOT_DIR, "example_images/8FtFUxRzXqaguVRGzkHvN.png"),
407
- os.path.join(ROOT_DIR, "example_images/01194-20240127001056_1024x1536.png"),
408
  None,
409
  NEGATIVE_PROMPT,
410
  5.0,
411
- 3.0,
412
  0.0,
413
  1.0,
414
  1,
@@ -416,14 +418,15 @@ def get_example():
416
  1024 * 1024,
417
  0,
418
  ],
 
419
  [
420
- "Let the man from image1 and the woman from image2 kiss and hug",
421
  1024,
422
  1024,
423
  "euler",
424
  50,
425
- os.path.join(ROOT_DIR, "example_images/1280X1280.png"),
426
- os.path.join(ROOT_DIR, "example_images/000077066.jpg"),
427
  None,
428
  NEGATIVE_PROMPT,
429
  5.0,
@@ -436,13 +439,33 @@ def get_example():
436
  0,
437
  ],
438
  [
439
- "Please let the person in image 2 hold the toy from the first image in a parking lot.",
440
  1024,
441
  1024,
442
  "euler",
443
  50,
444
- os.path.join(ROOT_DIR, "example_images/04.jpg"),
445
- os.path.join(ROOT_DIR, "example_images/000365954.jpg"),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
446
  None,
447
  NEGATIVE_PROMPT,
448
  5.0,
@@ -455,13 +478,13 @@ def get_example():
455
  0,
456
  ],
457
  [
458
- "Make the girl pray in the second image.",
 
459
  1024,
460
- 682,
461
  "euler",
462
  50,
463
- os.path.join(ROOT_DIR, "example_images/000440817.jpg"),
464
- os.path.join(ROOT_DIR, "example_images/000119733.jpg"),
465
  None,
466
  NEGATIVE_PROMPT,
467
  5.0,
@@ -473,10 +496,51 @@ def get_example():
473
  1024 * 1024,
474
  0,
475
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
476
  [
477
  "Edit the first image: add the man from the second image. The man is talking with a woman in the kitchen",
478
  1024,
479
- 682,
480
  "euler",
481
  50,
482
  os.path.join(
@@ -487,7 +551,7 @@ def get_example():
487
  None,
488
  NEGATIVE_PROMPT,
489
  5.0,
490
- 3.0,
491
  0.0,
492
  1.0,
493
  1,
@@ -498,7 +562,7 @@ def get_example():
498
  [
499
  "Edit the first image: replace the woman with the person from the second image. The person is watching his phone in the kitchen",
500
  1024,
501
- 682,
502
  "euler",
503
  50,
504
  os.path.join(
@@ -509,7 +573,7 @@ def get_example():
509
  None,
510
  NEGATIVE_PROMPT,
511
  5.0,
512
- 3.0,
513
  0.0,
514
  1.0,
515
  1,
@@ -517,32 +581,10 @@ def get_example():
517
  1024 * 1024,
518
  0,
519
  ],
520
- # [
521
- # "Add the bird from image 1 to the desk in image 2",
522
- # 1024,
523
- # 682,
524
- # "euler",
525
- # 50,
526
- # os.path.join(
527
- # ROOT_DIR,
528
- # "example_images/996e2cf6-daa5-48c4-9ad7-0719af640c17_1748848108409.png",
529
- # ),
530
- # os.path.join(ROOT_DIR, "example_images/00066-10350085.png"),
531
- # None,
532
- # NEGATIVE_PROMPT,
533
- # 5.0,
534
- # 2.0,
535
- # 0.0,
536
- # 1.0,
537
- # 1,
538
- # 2048,
539
- # 1024 * 1024,
540
- # 0,
541
- # ],
542
  [
543
  "Edit the first image: replace the apple with the cat from the second image.",
544
  1024,
545
- 780,
546
  "euler",
547
  50,
548
  os.path.join(ROOT_DIR, "example_images/apple.png"),
@@ -561,29 +603,6 @@ def get_example():
561
  1024 * 1024,
562
  0,
563
  ],
564
- # [
565
- # "Replace the woman in the second image with the woman from the first image",
566
- # 1024,
567
- # 747,
568
- # "euler",
569
- # 50,
570
- # os.path.join(
571
- # ROOT_DIR, "example_images/byward-outfitters-B97YFrsITyo-unsplash.jpg"
572
- # ),
573
- # os.path.join(
574
- # ROOT_DIR, "example_images/6652baf6-4096-40ef-a475-425e4c072daf.png"
575
- # ),
576
- # None,
577
- # NEGATIVE_PROMPT,
578
- # 5.0,
579
- # 2.0,
580
- # 0.0,
581
- # 1.0,
582
- # 1,
583
- # 2048,
584
- # 1024 * 1024,
585
- # 0,
586
- # ],
587
  [
588
  "She holds the sunflower close to her chest, eyes closed and smiling softly, standing on a sunlit balcony with the awakening city skyline behind her.",
589
  1024,
@@ -716,6 +735,101 @@ def get_example():
716
  2048,
717
  1024 * 1024,
718
  0,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
719
  ],
720
  [
721
  "The cat is sitting on the table. The bird is perching on the edge of the table.",
 
194
  0,
195
  ],
196
  [
197
+ "replace the sword with a hammer.",
198
  1024,
199
  1024,
200
  "euler",
 
378
  1024 * 1024,
379
  0,
380
  ],
381
+
382
+
383
  [
384
+ "Convert this image into Ghibli style",
385
  1024,
386
  1024,
387
  "euler",
388
  50,
389
+ os.path.join(ROOT_DIR, "example_images/girl.png"),
390
+ None,
391
  None,
392
  NEGATIVE_PROMPT,
393
  5.0,
394
+ 2.0,
395
  0.0,
396
  1.0,
397
  1,
 
400
  0,
401
  ],
402
  [
403
+ "Convert this image to clay style",
404
  1024,
405
  1024,
406
  "euler",
407
  50,
408
+ os.path.join(ROOT_DIR, "example_images/girl.png"),
409
+ None,
410
  None,
411
  NEGATIVE_PROMPT,
412
  5.0,
413
+ 2.0,
414
  0.0,
415
  1.0,
416
  1,
 
418
  1024 * 1024,
419
  0,
420
  ],
421
+
422
  [
423
+ "Generate an ad for this object. Add this product into a minimalist interior inspired by japanese aesthetic. The picture should have the product front and center, placed on a minimalist shelf with a concrete wall behind it. Add plants and other stylish accessories to make it feel like a photo of a home. ",
424
  1024,
425
  1024,
426
  "euler",
427
  50,
428
+ os.path.join(ROOT_DIR, "example_images/nezha.png"),
429
+ None,
430
  None,
431
  NEGATIVE_PROMPT,
432
  5.0,
 
439
  0,
440
  ],
441
  [
442
+ "Generate an ad for this object. Add this product into a minimalist interior inspired by japanese aesthetic. The picture should have the product front and center, placed on a minimalist shelf with a concrete wall behind it. Add plants and other stylish accessories to make it feel like a photo of a home. ",
443
  1024,
444
  1024,
445
  "euler",
446
  50,
447
+ os.path.join(ROOT_DIR, "example_images/blv.png"),
448
+ None,
449
+ None,
450
+ NEGATIVE_PROMPT,
451
+ 5.0,
452
+ 2.0,
453
+ 0.0,
454
+ 1.0,
455
+ 1,
456
+ 2048,
457
+ 1024 * 1024,
458
+ 0,
459
+ ],
460
+
461
+ [
462
+ "It is placed on a figure display shelf inside a well-lit glass cabinet. Soft LED lights highlight its intricate details, and the shelf stands against a clean white wall, giving the collection a modern, curated look.",
463
+ 1024,
464
+ 1024,
465
+ "euler",
466
+ 50,
467
+ os.path.join(ROOT_DIR, "example_images/toy.png"),
468
+ None,
469
  None,
470
  NEGATIVE_PROMPT,
471
  5.0,
 
478
  0,
479
  ],
480
  [
481
+ "It is placed on a figure display shelf inside a well-lit glass cabinet. Soft LED lights highlight its intricate details, and the shelf stands against a clean white wall, giving the collection a modern, curated look.",
482
+ 1024,
483
  1024,
 
484
  "euler",
485
  50,
486
+ os.path.join(ROOT_DIR, "example_images/doll1.jpg"),
487
+ None,
488
  None,
489
  NEGATIVE_PROMPT,
490
  5.0,
 
496
  1024 * 1024,
497
  0,
498
  ],
499
+ [
500
+ "The doll is part of a stop-motion film set, surrounded by camera gear and miniature lighting rigs.",
501
+ 1024,
502
+ 1024,
503
+ "euler",
504
+ 50,
505
+ os.path.join(ROOT_DIR, "example_images/doll1.jpg"),
506
+ None,
507
+ None,
508
+ NEGATIVE_PROMPT,
509
+ 5.0,
510
+ 2.0,
511
+ 0.0,
512
+ 1.0,
513
+ 1,
514
+ 2048,
515
+ 1024 * 1024,
516
+ 0,
517
+ ],
518
+ [
519
+ "The doll is part of a stop-motion film set, surrounded by camera gear and miniature lighting rigs.",
520
+ 1024,
521
+ 1024,
522
+ "euler",
523
+ 50,
524
+ os.path.join(ROOT_DIR, "example_images/doll2.jpg"),
525
+ None,
526
+ None,
527
+ NEGATIVE_PROMPT,
528
+ 5.0,
529
+ 2.0,
530
+ 0.0,
531
+ 1.0,
532
+ 1,
533
+ 2048,
534
+ 1024 * 1024,
535
+ 0,
536
+ ],
537
+
538
+
539
+
540
  [
541
  "Edit the first image: add the man from the second image. The man is talking with a woman in the kitchen",
542
  1024,
543
+ 768,
544
  "euler",
545
  50,
546
  os.path.join(
 
551
  None,
552
  NEGATIVE_PROMPT,
553
  5.0,
554
+ 2.0,
555
  0.0,
556
  1.0,
557
  1,
 
562
  [
563
  "Edit the first image: replace the woman with the person from the second image. The person is watching his phone in the kitchen",
564
  1024,
565
+ 768,
566
  "euler",
567
  50,
568
  os.path.join(
 
573
  None,
574
  NEGATIVE_PROMPT,
575
  5.0,
576
+ 2.0,
577
  0.0,
578
  1.0,
579
  1,
 
581
  1024 * 1024,
582
  0,
583
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
584
  [
585
  "Edit the first image: replace the apple with the cat from the second image.",
586
  1024,
587
+ 768,
588
  "euler",
589
  50,
590
  os.path.join(ROOT_DIR, "example_images/apple.png"),
 
603
  1024 * 1024,
604
  0,
605
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
606
  [
607
  "She holds the sunflower close to her chest, eyes closed and smiling softly, standing on a sunlit balcony with the awakening city skyline behind her.",
608
  1024,
 
735
  2048,
736
  1024 * 1024,
737
  0,
738
+ ],
739
+ [
740
+ "Create a wedding figure based on the girl in the first image and the man in the second image. Set the background as a wedding hall, with the man dressed in a suit and the girl in a white wedding dress. Ensure that the original faces remain unchanged and are accurately preserved. The man should adopt a realistic style, whereas the girl should maintain their classic anime style.",
741
+ 1024,
742
+ 1024,
743
+ "euler",
744
+ 50,
745
+ os.path.join(ROOT_DIR, "example_images/1_20241127203215.png"),
746
+ os.path.join(ROOT_DIR, "example_images/000050281.jpg"),
747
+ None,
748
+ NEGATIVE_PROMPT,
749
+ 5.0,
750
+ 3.0,
751
+ 0.0,
752
+ 1.0,
753
+ 1,
754
+ 2048,
755
+ 1024 * 1024,
756
+ 0,
757
+ ],
758
+ [
759
+ "Let the girl and the boy get married in the church. ",
760
+ 1024,
761
+ 1024,
762
+ "euler",
763
+ 50,
764
+ os.path.join(ROOT_DIR, "example_images/8FtFUxRzXqaguVRGzkHvN.png"),
765
+ os.path.join(ROOT_DIR, "example_images/01194-20240127001056_1024x1536.png"),
766
+ None,
767
+ NEGATIVE_PROMPT,
768
+ 5.0,
769
+ 3.0,
770
+ 0.0,
771
+ 1.0,
772
+ 1,
773
+ 2048,
774
+ 1024 * 1024,
775
+ 0,
776
+ ],
777
+ [
778
+ "Let the man from image1 and the woman from image2 kiss and hug",
779
+ 1024,
780
+ 1024,
781
+ "euler",
782
+ 50,
783
+ os.path.join(ROOT_DIR, "example_images/1280X1280.png"),
784
+ os.path.join(ROOT_DIR, "example_images/000077066.jpg"),
785
+ None,
786
+ NEGATIVE_PROMPT,
787
+ 5.0,
788
+ 2.0,
789
+ 0.0,
790
+ 1.0,
791
+ 1,
792
+ 2048,
793
+ 1024 * 1024,
794
+ 0,
795
+ ],
796
+ [
797
+ "Please let the person in image 2 hold the toy from the first image in a parking lot.",
798
+ 1024,
799
+ 1024,
800
+ "euler",
801
+ 50,
802
+ os.path.join(ROOT_DIR, "example_images/04.jpg"),
803
+ os.path.join(ROOT_DIR, "example_images/000365954.jpg"),
804
+ None,
805
+ NEGATIVE_PROMPT,
806
+ 5.0,
807
+ 2.0,
808
+ 0.0,
809
+ 1.0,
810
+ 1,
811
+ 2048,
812
+ 1024 * 1024,
813
+ 0,
814
+ ],
815
+ [
816
+ "Make the girl pray in the second image.",
817
+ 1024,
818
+ 682,
819
+ "euler",
820
+ 50,
821
+ os.path.join(ROOT_DIR, "example_images/000440817.jpg"),
822
+ os.path.join(ROOT_DIR, "example_images/000119733.jpg"),
823
+ None,
824
+ NEGATIVE_PROMPT,
825
+ 5.0,
826
+ 2.0,
827
+ 0.0,
828
+ 1.0,
829
+ 1,
830
+ 2048,
831
+ 1024 * 1024,
832
+ 0,
833
  ],
834
  [
835
  "The cat is sitting on the table. The bird is perching on the edge of the table.",
example_images/blv.png ADDED

Git LFS Details

  • SHA256: 9eb9af944f9945b90361b8cc355a85882de7fe9020ef8481694e15a06257567b
  • Pointer size: 131 Bytes
  • Size of remote file: 354 kB
example_images/doll1.jpg ADDED

Git LFS Details

  • SHA256: 8b28d9301ee93fb67c9f5e1d8ec1e380531c3f950e6035b93e198feafd902c9e
  • Pointer size: 130 Bytes
  • Size of remote file: 80.4 kB
example_images/doll2.jpg ADDED

Git LFS Details

  • SHA256: 312691a5352c4f8029bff6ba601366e17b5a683f62c49eff5c7a9dbb71946edd
  • Pointer size: 130 Bytes
  • Size of remote file: 73 kB
example_images/doll3.png ADDED

Git LFS Details

  • SHA256: bb3e37f920421ab8076fe66055ae4472f04ef58c8d82d717fca4ca78558c4c80
  • Pointer size: 132 Bytes
  • Size of remote file: 1.56 MB
example_images/girl.png ADDED

Git LFS Details

  • SHA256: fd6f3746069d13f2a23f3a6aba96367f47fdde843ed9ae3339938d070212c1b1
  • Pointer size: 133 Bytes
  • Size of remote file: 10 MB
example_images/nezha.png ADDED

Git LFS Details

  • SHA256: d65796e5b6501a5afdc596a109bf6e48946eacd5f062c2ca0daa7d79e19a5282
  • Pointer size: 131 Bytes
  • Size of remote file: 712 kB
example_images/toy.png ADDED

Git LFS Details

  • SHA256: 51a1b061e73a73e012c704d1c8736f22e436092091f9dc42230a5289677c37b6
  • Pointer size: 132 Bytes
  • Size of remote file: 1.18 MB