Instructions to use wikeeyang/Ernie-Image-Flex-V1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use wikeeyang/Ernie-Image-Flex-V1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("wikeeyang/Ernie-Image-Flex-V1", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
File size: 21,566 Bytes
a62265e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 | {
"id": "9ae6082b-c7f4-433c-9971-7a8f65a3ea65",
"revision": 0,
"last_node_id": 207,
"last_link_id": 506,
"nodes": [
{
"id": 172,
"type": "CLIPTextEncode",
"pos": [
-205.62151998421714,
999.3425944916831
],
"size": [
333.7879242887998,
88
],
"flags": {
"collapsed": true
},
"order": 9,
"mode": 0,
"inputs": [
{
"localized_name": "clip",
"name": "clip",
"type": "CLIP",
"link": 505
},
{
"localized_name": "text",
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": null
}
],
"outputs": [
{
"localized_name": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
288
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.19.3",
"Node name for S&R": "CLIPTextEncode",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.8"
}
},
"widgets_values": [
"低分辨率,低画质,肢体畸形,手指畸形,画面过饱和,蜡像感,人脸无细节,过度光滑,画面具有AI感。构图混乱。文字模糊,扭曲"
]
},
{
"id": 106,
"type": "VAEDecode",
"pos": [
79.08411671096368,
438.4285628963098
],
"size": [
173.0576818117222,
46
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"localized_name": "samples",
"name": "samples",
"type": "LATENT",
"link": 134
},
{
"localized_name": "vae",
"name": "vae",
"type": "VAE",
"link": 506
}
],
"outputs": [
{
"localized_name": "IMAGE",
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
499
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.64",
"Node name for S&R": "VAEDecode",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.7",
"input_ue_unconnectable": {}
},
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": []
},
{
"id": 104,
"type": "EmptyFlux2LatentImage",
"pos": [
-446.0879876688805,
1045.7868837003746
],
"size": [
210,
106
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"localized_name": "width",
"name": "width",
"type": "INT",
"widget": {
"name": "width"
},
"link": null
},
{
"localized_name": "height",
"name": "height",
"type": "INT",
"widget": {
"name": "height"
},
"link": null
},
{
"localized_name": "batch_size",
"name": "batch_size",
"type": "INT",
"widget": {
"name": "batch_size"
},
"link": null
}
],
"outputs": [
{
"localized_name": "LATENT",
"name": "LATENT",
"type": "LATENT",
"links": [
138
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.18.1",
"Node name for S&R": "EmptyFlux2LatentImage",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.7",
"input_ue_unconnectable": {}
},
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
768,
1376,
1
]
},
{
"id": 136,
"type": "Seed (rgthree)",
"pos": [
-227.8991345790711,
1045.509133855802
],
"size": [
228.4669349069087,
130
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"dir": 4,
"name": "SEED",
"shape": 3,
"type": "INT",
"links": [
176
]
}
],
"properties": {
"cnr_id": "rgthree-comfy",
"ver": "683836c46e898668936c433502504cc0627482c5",
"randomMax": 1125899906842624,
"randomMin": 0,
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.8"
}
},
"widgets_values": [
472693926650286,
"",
"",
"okay"
]
},
{
"id": 107,
"type": "KSampler",
"pos": [
25.410264645482513,
528.1531174838914
],
"size": [
230.55144887224515,
646.3688441575066
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"localized_name": "model",
"name": "model",
"type": "MODEL",
"link": 496
},
{
"localized_name": "positive",
"name": "positive",
"type": "CONDITIONING",
"link": 137
},
{
"localized_name": "negative",
"name": "negative",
"type": "CONDITIONING",
"link": 288
},
{
"localized_name": "latent_image",
"name": "latent_image",
"type": "LATENT",
"link": 138
},
{
"localized_name": "seed",
"name": "seed",
"type": "INT",
"widget": {
"name": "seed"
},
"link": 176
},
{
"localized_name": "steps",
"name": "steps",
"type": "INT",
"widget": {
"name": "steps"
},
"link": null
},
{
"localized_name": "cfg",
"name": "cfg",
"type": "FLOAT",
"widget": {
"name": "cfg"
},
"link": null
},
{
"localized_name": "sampler_name",
"name": "sampler_name",
"type": "COMBO",
"widget": {
"name": "sampler_name"
},
"link": null
},
{
"localized_name": "scheduler",
"name": "scheduler",
"type": "COMBO",
"widget": {
"name": "scheduler"
},
"link": null
},
{
"localized_name": "denoise",
"name": "denoise",
"type": "FLOAT",
"widget": {
"name": "denoise"
},
"link": null
}
],
"outputs": [
{
"localized_name": "LATENT",
"name": "LATENT",
"type": "LATENT",
"slot_index": 0,
"links": [
134
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.64",
"Node name for S&R": "KSampler",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.7",
"input_ue_unconnectable": {}
},
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
252902017622294,
"fixed",
8,
1,
"ddim",
"simple",
1
]
},
{
"id": 194,
"type": "LoraLoaderModelOnly",
"pos": [
-449.7085279406747,
398.6827410507062
],
"size": [
447.70438853371843,
82
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"localized_name": "model",
"name": "model",
"type": "MODEL",
"link": 503
},
{
"localized_name": "lora_name",
"name": "lora_name",
"type": "COMBO",
"widget": {
"name": "lora_name"
},
"link": null
},
{
"localized_name": "strength_model",
"name": "strength_model",
"type": "FLOAT",
"widget": {
"name": "strength_model"
},
"link": null
}
],
"outputs": [
{
"localized_name": "MODEL",
"name": "MODEL",
"type": "MODEL",
"links": [
496
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "LoraLoaderModelOnly",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.8"
}
},
"widgets_values": [
"ErnieImage-Turbo-Extract_lora_rank64.safetensors",
0.4
]
},
{
"id": 187,
"type": "Note",
"pos": [
-448.4846463075421,
269.06227530443016
],
"size": [
230.95844933738942,
88
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.8",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"Turbo LoRA Weight: 0.1 - 0.5\nSteps: 20 - 8\nNo Turbo LoRA Steps: 16 - 25"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 189,
"type": "PreviewImage",
"pos": [
283.9696826482286,
438.36456706295013
],
"size": [
386.852479982109,
734.4512715495057
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"localized_name": "images",
"name": "images",
"type": "IMAGE",
"link": 499
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.19.0",
"Node name for S&R": "PreviewImage",
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {},
"version": "7.8"
}
},
"widgets_values": []
},
{
"id": 108,
"type": "CLIPTextEncode",
"pos": [
-449.2537356792463,
525.3475439421027
],
"size": [
449.1001613396379,
478.566299927341
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"localized_name": "clip",
"name": "clip",
"type": "CLIP",
"link": 504
},
{
"localized_name": "text",
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": null
}
],
"outputs": [
{
"localized_name": "CONDITIONING",
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
137
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.73",
"Node name for S&R": "CLIPTextEncode",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.7",
"input_ue_unconnectable": {}
},
"enableTabs": false,
"tabWidth": 65,
"tabXOffset": 10,
"hasSecondTab": false,
"secondTabText": "Send Back",
"secondTabOffset": 80,
"secondTabWidth": 65
},
"widgets_values": [
"这是一个采用**极端特写**视角的超写实商业静物摄影,画面主体聚焦于一只深埋于厚重雪层中的银灰色铝制易拉罐,镜头几乎贴近罐身,营造出极致的冷冽质感。罐体呈**正面**视角展示,垂直贯穿画面中央,仿佛刚刚被强行按入冰原之中。罐身表面覆盖着一层细腻的颗粒状冰霜,金属光泽在冷调光线下呈现出哑光与高光交织的质感。\n\n画面主体采用了一种**冷冽的蓝白色调滤镜**,赋予了整个场景一种近乎零度的视觉温度。在灯光效果上,光源似乎来自正上方的漫射冷光,在罐体凹陷处形成了深邃的阴影,强化了冰雪堆砌的立体感;同时,罐身侧面反射着微弱的天光,与周围洁白蓬松的碎冰块形成了明暗对比,凸显了罐身被冰雪侵蚀的纹理。拍摄角度为**平视镜头**,视线与罐体高度平行,让观者仿佛正低头凝视这片冰雪世界。构图风格严格遵循**对称构图**,罐体作为绝对的中轴线,将画面一分为二,四周不规则分布的碎冰块则起到了平衡视觉重心的作用。\n\n背景虽由细碎的雪块和冰渣构成,但通过极浅的景深处理,背景呈现出**柔焦般的朦胧感**,细节虽在虚化中依稀可见,却未抢夺主体的锋芒,成功将视觉重心锁定在中央的易拉罐上。\n\n画面中包含了清晰的白色文字元素,易拉罐顶部印有“RELAX AND ENJOY”的字样,底部则是醒目的黑色大写品牌名“WHITE LION”以及下方的“KEEP COOL”小字,罐身中部还绘有一个白色的狮子图案剪影。易拉罐底部完全被雪掩埋,仅露出上半部分,底部边缘的积雪微微隆起,暗示着巨大的下压力。若将易拉罐拟人化,它呈现出一种**半侧卧**的慵懒姿态,头部(拉环端)微微上扬,身体顺着雪槽微微倾斜,头部与身体形成一条流畅的**15度夹角**,仿佛刚刚在雪地里翻滚了一遭。\n\n罐身设计简约而现代,银灰色的底色上点缀着深褐色的品牌字体和清新的白色的狮子插画,字体边缘带有轻微的冰晶纹理,增强了真实感。易拉罐的质感呈现出金属与冰霜的混合质地,既保留了铝罐的坚硬冷硬,又增添了冰雪的蓬松柔软。在罐体与周围雪堆的互动中,雪块被挤压变形,呈现出一种被强力插入的物理张力。\n\n在画面的最底端,叠加着白色的无衬线字体说明,上方是巨大的“KEEPS COOL”,下方则是较小的“Relaxation white lion drink”,字体干净利落,与上方充满质感的易拉罐形成虚实对比,强化了这是一张旨在传达清凉与放松情绪的广告海报。\n\n图片上部有一行深灰色、冷色调的粗体艺术化的中文字“白狮冰啤”,在每个文字的实线和边缘上覆盖雪花、雪粒,强调一种极致严寒的冰镇效果,从而带来强烈的视觉冲击。字体下方的右侧靠边缘处,有个暗红色的商标“S.T.A.R®”."
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 204,
"type": "UnetLoaderGGUF",
"pos": [
-900.7283041130668,
527.1773361424006
],
"size": [
421.361456984701,
58
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"localized_name": "unet_name",
"name": "unet_name",
"type": "COMBO",
"widget": {
"name": "unet_name"
},
"link": null
}
],
"outputs": [
{
"localized_name": "MODEL",
"name": "MODEL",
"type": "MODEL",
"links": null
}
],
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
},
"cnr_id": "comfyui-gguf",
"ver": "6ea2651e7df66d7585f6ffee804b20e92fb38b8a",
"Node name for S&R": "UnetLoaderGGUF"
},
"widgets_values": [
"Ernie-Image-Flex-V1-Q8_0.gguf"
]
},
{
"id": 207,
"type": "VAELoader",
"pos": [
-895.0165865388439,
891.7775347591978
],
"size": [
414.69775161967084,
58
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"localized_name": "vae_name",
"name": "vae_name",
"type": "COMBO",
"widget": {
"name": "vae_name"
},
"link": null
}
],
"outputs": [
{
"localized_name": "VAE",
"name": "VAE",
"type": "VAE",
"links": [
506
]
}
],
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
},
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "VAELoader"
},
"widgets_values": [
"Flux2-vae.safetensors"
]
},
{
"id": 205,
"type": "UNETLoader",
"pos": [
-898.8244331167627,
623.3251876984084
],
"size": [
421.36140469204565,
82
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"localized_name": "unet_name",
"name": "unet_name",
"type": "COMBO",
"widget": {
"name": "unet_name"
},
"link": null
},
{
"localized_name": "weight_dtype",
"name": "weight_dtype",
"type": "COMBO",
"widget": {
"name": "weight_dtype"
},
"link": null
}
],
"outputs": [
{
"localized_name": "MODEL",
"name": "MODEL",
"type": "MODEL",
"links": [
503
]
}
],
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
},
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "UNETLoader"
},
"widgets_values": [
"Ernie-Image-Flex-V1-bf16.safetensors",
"default"
]
},
{
"id": 206,
"type": "CLIPLoader",
"pos": [
-897.8724453259554,
743.2719888542628
],
"size": [
419.45753369574163,
106
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"localized_name": "clip_name",
"name": "clip_name",
"type": "COMBO",
"widget": {
"name": "clip_name"
},
"link": null
},
{
"localized_name": "type",
"name": "type",
"type": "COMBO",
"widget": {
"name": "type"
},
"link": null
},
{
"localized_name": "device",
"name": "device",
"shape": 7,
"type": "COMBO",
"widget": {
"name": "device"
},
"link": null
}
],
"outputs": [
{
"localized_name": "CLIP",
"name": "CLIP",
"type": "CLIP",
"links": [
504,
505
]
}
],
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"input_ue_unconnectable": {}
},
"cnr_id": "comfy-core",
"ver": "0.20.1",
"Node name for S&R": "CLIPLoader"
},
"widgets_values": [
"Ministral-3-3B-TE-Only.safetensors",
"flux2",
"default"
]
}
],
"links": [
[
134,
107,
0,
106,
0,
"LATENT"
],
[
137,
108,
0,
107,
1,
"CONDITIONING"
],
[
138,
104,
0,
107,
3,
"LATENT"
],
[
176,
136,
0,
107,
4,
"INT"
],
[
288,
172,
0,
107,
2,
"CONDITIONING"
],
[
496,
194,
0,
107,
0,
"MODEL"
],
[
499,
106,
0,
189,
0,
"IMAGE"
],
[
503,
205,
0,
194,
0,
"MODEL"
],
[
504,
206,
0,
108,
0,
"CLIP"
],
[
505,
206,
0,
172,
0,
"CLIP"
],
[
506,
207,
0,
106,
1,
"VAE"
]
],
"groups": [],
"config": {},
"extra": {
"frontendVersion": "1.43.17",
"workflowRendererVersion": "LG",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true,
"ue_links": [],
"ds": {
"scale": 0.8769226950000015,
"offset": [
1011.5538907405809,
-154.09019654263307
]
},
"links_added_by_ue": []
},
"version": 0.4
} |