Commit aa82df5
[IP Adapters] introduce
* add: support for passing ip adapter image embeddings
* debugging
* make feature_extractor unloading conditioned on safety_checker
* better condition
* type annotation
* index to look into value slices
* more debugging
* debugging
* serialize embeddings dict
* better conditioning
* remove unnecessary prints.
* Update src/diffusers/loaders/ip_adapter.py
Co-authored-by: YiYi Xu <[email protected]>
* make fix-copies and styling.
* styling and further copy fixing.
* fix: check_inputs call in controlnet sdxl img2img pipeline
---------
Co-authored-by: YiYi Xu <[email protected]>ip_adapter_image_embeds in the SD pipeline call (#6868)1 parent a11b0f8 commit aa82df5
File tree
33 files changed
+779
-439
lines changed- src/diffusers
- loaders
- pipelines
- animatediff
- controlnet
- deprecated
- stable_diffusion_variants
- versatile_diffusion
- latent_consistency_models
- pia
- semantic_stable_diffusion
- stable_diffusion_gligen
- stable_diffusion_k_diffusion
- stable_diffusion_ldm3d
- stable_diffusion_panorama
- stable_diffusion_safe
- stable_diffusion_sag
- stable_diffusion_xl
- stable_diffusion
- t2i_adapter
- text_to_video_synthesis
33 files changed
+779
-439
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
217 | 219 | | |
218 | 220 | | |
219 | 221 | | |
| |||
Lines changed: 43 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
438 | 436 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
449 | 441 | | |
450 | | - | |
451 | | - | |
452 | | - | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
453 | 454 | | |
454 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
455 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
456 | 462 | | |
457 | 463 | | |
458 | 464 | | |
| |||
620 | 626 | | |
621 | 627 | | |
622 | 628 | | |
| 629 | + | |
| 630 | + | |
623 | 631 | | |
624 | 632 | | |
625 | 633 | | |
| |||
663 | 671 | | |
664 | 672 | | |
665 | 673 | | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
666 | 679 | | |
667 | 680 | | |
668 | 681 | | |
| |||
882 | 895 | | |
883 | 896 | | |
884 | 897 | | |
| 898 | + | |
885 | 899 | | |
886 | 900 | | |
887 | 901 | | |
| |||
931 | 945 | | |
932 | 946 | | |
933 | 947 | | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
934 | 951 | | |
935 | 952 | | |
936 | 953 | | |
| |||
992 | 1009 | | |
993 | 1010 | | |
994 | 1011 | | |
| 1012 | + | |
| 1013 | + | |
995 | 1014 | | |
996 | 1015 | | |
997 | 1016 | | |
| |||
1030 | 1049 | | |
1031 | 1050 | | |
1032 | 1051 | | |
1033 | | - | |
| 1052 | + | |
1034 | 1053 | | |
1035 | | - | |
| 1054 | + | |
1036 | 1055 | | |
1037 | 1056 | | |
1038 | 1057 | | |
| |||
Lines changed: 43 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
518 | 516 | | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
529 | 521 | | |
530 | | - | |
531 | | - | |
532 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
533 | 534 | | |
534 | | - | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
535 | 538 | | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
536 | 542 | | |
537 | 543 | | |
538 | 544 | | |
| |||
588 | 594 | | |
589 | 595 | | |
590 | 596 | | |
| 597 | + | |
| 598 | + | |
591 | 599 | | |
592 | 600 | | |
593 | 601 | | |
| |||
726 | 734 | | |
727 | 735 | | |
728 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
729 | 742 | | |
730 | 743 | | |
731 | 744 | | |
| |||
910 | 923 | | |
911 | 924 | | |
912 | 925 | | |
| 926 | + | |
913 | 927 | | |
914 | 928 | | |
915 | 929 | | |
| |||
974 | 988 | | |
975 | 989 | | |
976 | 990 | | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
977 | 994 | | |
978 | 995 | | |
979 | 996 | | |
| |||
1060 | 1077 | | |
1061 | 1078 | | |
1062 | 1079 | | |
| 1080 | + | |
| 1081 | + | |
1063 | 1082 | | |
1064 | 1083 | | |
1065 | 1084 | | |
| |||
1111 | 1130 | | |
1112 | 1131 | | |
1113 | 1132 | | |
1114 | | - | |
| 1133 | + | |
1115 | 1134 | | |
1116 | | - | |
| 1135 | + | |
1117 | 1136 | | |
1118 | 1137 | | |
1119 | 1138 | | |
| |||
0 commit comments