Commit
·
9b84ae0
1
Parent(s):
85f82d3
Refactor UI structure and add image tab
Browse files- data/images/loras/flux.json +122 -0
- data/images/loras/sdxl.json +1094 -0
- packages.txt +1 -0
- requirements.txt +20 -1
- src/tasks/images/init_sys.py +128 -0
- src/tasks/images/sd.py +327 -0
- src/ui/images.py +4 -8
- src/ui/tabs/__init__.py +1 -1
- src/ui/tabs/images/flux.py +496 -0
- src/ui/tabs/images/flux_tab.py +0 -10
data/images/loras/flux.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"image": "https://huggingface.co/multimodalart/flux-tarot-v1/resolve/main/images/e5f2761e5d474e6ba492d20dca0fa26f_e78f1524074b42b6ac49643ffad50ac6.png",
|
| 4 |
+
"title": "Tarot v1",
|
| 5 |
+
"repo": "multimodalart/flux-tarot-v1",
|
| 6 |
+
"trigger_word": "in the style of TOK a trtcrd, tarot style",
|
| 7 |
+
"aspect": "portrait"
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"image": "https://huggingface.co/alvdansen/frosting_lane_flux/resolve/main/images/content%20-%202024-08-11T005936.346.jpeg",
|
| 11 |
+
"title": "Frosting Lane Flux",
|
| 12 |
+
"repo": "alvdansen/frosting_lane_flux",
|
| 13 |
+
"trigger_word": ""
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"image": "https://huggingface.co/AIWarper/RubberCore1920sCartoonStyle/resolve/main/images/Rub_00006_.png",
|
| 17 |
+
"title": "1920s cartoon",
|
| 18 |
+
"repo": "AIWarper/RubberCore1920sCartoonStyle",
|
| 19 |
+
"trigger_word": "RU883R style",
|
| 20 |
+
"trigger_position": "prepend"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"image": "https://github.com/XLabs-AI/x-flux/blob/main/assets/readme/examples/picture-6-rev1.png?raw=true",
|
| 24 |
+
"title": "flux-Realism",
|
| 25 |
+
"repo": "XLabs-AI/flux-RealismLora",
|
| 26 |
+
"trigger_word": ""
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"image": "https://huggingface.co/nerijs/animation2k-flux/resolve/main/images/Q8-oVxNnXvZ9HNrgbNpGw_02762aaaba3b47859ee5fe9403a371e3.png",
|
| 30 |
+
"title": "animation2k",
|
| 31 |
+
"repo": "nerijs/animation2k-flux",
|
| 32 |
+
"trigger_word": ""
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"image":"https://huggingface.co/alvdansen/softserve_anime/resolve/main/images/ComfyUI_00062_.png",
|
| 36 |
+
"title":"SoftServe Anime",
|
| 37 |
+
"repo": "alvdansen/softserve_anime",
|
| 38 |
+
"trigger_word": ""
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"image": "https://huggingface.co/veryVANYA/ps1-style-flux/resolve/main/24439220.jpeg",
|
| 42 |
+
"title": "PS1 style",
|
| 43 |
+
"repo": "veryVANYA/ps1-style-flux",
|
| 44 |
+
"trigger_word": "ps1 game screenshot"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"image": "https://huggingface.co/alvdansen/flux-koda/resolve/main/images/ComfyUI_00566_%20(2).png",
|
| 48 |
+
"title": "flux koda",
|
| 49 |
+
"repo": "alvdansen/flux-koda",
|
| 50 |
+
"trigger_word": "flmft style"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"image": "https://pbs.twimg.com/media/GU7NsZPa8AA4Ddl?format=jpg&name=4096x4096",
|
| 54 |
+
"title": "Half Illustration",
|
| 55 |
+
"repo": "davisbro/half_illustration",
|
| 56 |
+
"trigger_word": "in the style of TOK"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"image":"https://pbs.twimg.com/media/GVRiSH7WgAAnI4P?format=jpg&name=medium",
|
| 60 |
+
"title":"wrong",
|
| 61 |
+
"repo": "fofr/flux-wrong",
|
| 62 |
+
"trigger_word": "WRNG"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"image":"https://huggingface.co/linoyts/yarn_art_Flux_LoRA/resolve/main/yarn_art_2.png",
|
| 66 |
+
"title":"Yarn Art",
|
| 67 |
+
"repo": "linoyts/yarn_art_Flux_LoRA",
|
| 68 |
+
"trigger_word": ", yarn art style"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"image": "https://huggingface.co/Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style/resolve/main/08a19840b6214b76b0607b2f9d5a7e28_63159b9d98124c008efb1d36446a615c.png",
|
| 72 |
+
"title": "Paper Cutout",
|
| 73 |
+
"repo": "Norod78/Flux_1_Dev_LoRA_Paper-Cutout-Style",
|
| 74 |
+
"trigger_word": ", Paper Cutout Style"
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"image": "https://huggingface.co/SebastianBodza/flux_lora_aquarel_watercolor/resolve/main/images/ascend.webp",
|
| 78 |
+
"title": "Aquarell Watercolor",
|
| 79 |
+
"repo": "SebastianBodza/Flux_Aquarell_Watercolor_v2",
|
| 80 |
+
"trigger_word": "in a watercolor style, AQUACOLTOK. White background."
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"image": "https://huggingface.co/dataautogpt3/FLUX-SyntheticAnime/resolve/main/assets/angel.png",
|
| 84 |
+
"title": "SyntheticAnime",
|
| 85 |
+
"repo": "dataautogpt3/FLUX-SyntheticAnime",
|
| 86 |
+
"trigger_word": "1980s anime screengrab, VHS quality"
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"image": "https://github.com/XLabs-AI/x-flux/blob/main/assets/readme/examples/result_14.png?raw=true",
|
| 90 |
+
"title": "flux-anime",
|
| 91 |
+
"repo": "XLabs-AI/flux-lora-collection",
|
| 92 |
+
"weights": "anime_lora.safetensors",
|
| 93 |
+
"trigger_word": ", anime"
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"image": "https://huggingface.co/kudzueye/Boreal/resolve/main/images/ComfyUI_00845_.png",
|
| 97 |
+
"title": "Boreal",
|
| 98 |
+
"repo": "kudzueye/Boreal",
|
| 99 |
+
"weights": "boreal-flux-dev-lora-v04_1000_steps.safetensors",
|
| 100 |
+
"trigger_word": "phone photo"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"image": "https://github.com/XLabs-AI/x-flux/blob/main/assets/readme/examples/result_18.png?raw=true",
|
| 104 |
+
"title": "flux-disney",
|
| 105 |
+
"repo": "XLabs-AI/flux-lora-collection",
|
| 106 |
+
"weights": "disney_lora.safetensors",
|
| 107 |
+
"trigger_word": ", disney style"
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"image": "https://github.com/XLabs-AI/x-flux/blob/main/assets/readme/examples/result_23.png?raw=true",
|
| 111 |
+
"title": "flux-art",
|
| 112 |
+
"repo": "XLabs-AI/flux-lora-collection",
|
| 113 |
+
"weights": "art_lora.safetensors",
|
| 114 |
+
"trigger_word": ", art"
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"image": "https://huggingface.co/martintomov/retrofuturism-flux/resolve/main/images/2e40deba-858e-454f-ae1c-d1ba2adb6a65.jpeg",
|
| 118 |
+
"title": "Retrofuturism Flux",
|
| 119 |
+
"repo": "martintomov/retrofuturism-flux",
|
| 120 |
+
"trigger_word": ", retrofuturism"
|
| 121 |
+
}
|
| 122 |
+
]
|
data/images/loras/sdxl.json
ADDED
|
@@ -0,0 +1,1094 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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"is_compatible": true,
|
| 9 |
+
"likes": 134,
|
| 10 |
+
"downloads": 17058
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"image": "images/riding-min.jpg",
|
| 14 |
+
"title": "Tintin AI",
|
| 15 |
+
"repo": "Pclanglais/TintinIA",
|
| 16 |
+
"trigger_word": "drawing of tintin",
|
| 17 |
+
"weights": "pytorch_lora_weights.safetensors",
|
| 18 |
+
"is_compatible": true,
|
| 19 |
+
"is_nc": true,
|
| 20 |
+
"likes": 11,
|
| 21 |
+
"downloads": 0
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"image": "https://huggingface.co/ProomptEngineer/pe-balloon-diffusion-style/resolve/main/2095176.jpeg",
|
| 25 |
+
"title": "PE Balloon Diffusion",
|
| 26 |
+
"repo": "ProomptEngineer/pe-balloon-diffusion-style",
|
| 27 |
+
"trigger_word": "PEBalloonStyle",
|
| 28 |
+
"weights": "PE_BalloonStyle.safetensors",
|
| 29 |
+
"is_compatible": true,
|
| 30 |
+
"likes": 2,
|
| 31 |
+
"downloads": 0
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"image": "https://huggingface.co/joachimsallstrom/aether-cloud-lora-for-sdxl/resolve/main/2378710.jpeg",
|
| 35 |
+
"title": "Aether Cloud",
|
| 36 |
+
"repo": "joachimsallstrom/aether-cloud-lora-for-sdxl",
|
| 37 |
+
"trigger_word": "a cloud that looks like a",
|
| 38 |
+
"weights": "Aether_Cloud_v1.safetensors",
|
| 39 |
+
"is_compatible": true,
|
| 40 |
+
"likes": 2,
|
| 41 |
+
"downloads": 0
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"image": "images/crayon.png",
|
| 45 |
+
"title": "Crayon Style",
|
| 46 |
+
"repo": "ostris/crayon_style_lora_sdxl",
|
| 47 |
+
"trigger_word": "",
|
| 48 |
+
"weights": "crayons_v1_sdxl.safetensors",
|
| 49 |
+
"is_compatible": true,
|
| 50 |
+
"likes": 12,
|
| 51 |
+
"downloads": 0
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"image": "https://tjzk.replicate.delivery/models_models_cover_image/c8b21524-342a-4dd2-bb01-3e65349ed982/image_12.jpeg",
|
| 55 |
+
"title": "Zelda 64 SDXL",
|
| 56 |
+
"repo": "jbilcke-hf/sdxl-zelda64",
|
| 57 |
+
"trigger_word": "in the style of <s0><s1>",
|
| 58 |
+
"weights": "lora.safetensors",
|
| 59 |
+
"text_embedding_weights": "embeddings.pti",
|
| 60 |
+
"is_compatible": false,
|
| 61 |
+
"is_pivotal": true,
|
| 62 |
+
"likes": 3,
|
| 63 |
+
"downloads": 0
|
| 64 |
+
},
|
| 65 |
+
{
|
| 66 |
+
"image": "images/papercut_SDXL.jpeg",
|
| 67 |
+
"title": "Papercut SDXL",
|
| 68 |
+
"repo": "TheLastBen/Papercut_SDXL",
|
| 69 |
+
"trigger_word": "papercut",
|
| 70 |
+
"weights": "papercut.safetensors",
|
| 71 |
+
"is_compatible": true,
|
| 72 |
+
"likes": 21,
|
| 73 |
+
"downloads": 0
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"image": "https://pbxt.replicate.delivery/8LKCty2D5b5BBBjylErfI8Xqf4OTSsnA0TIJccnpPct3GmeiA/out-0.png",
|
| 77 |
+
"title": "2004 bad digital photography",
|
| 78 |
+
"repo": "fofr/sdxl-2004",
|
| 79 |
+
"trigger_word": "2004, in the style of <s0><s1>",
|
| 80 |
+
"weights": "lora.safetensors",
|
| 81 |
+
"text_embedding_weights": "embeddings.pti",
|
| 82 |
+
"is_compatible": false,
|
| 83 |
+
"is_pivotal": true,
|
| 84 |
+
"likes": 3,
|
| 85 |
+
"downloads": 0
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"image": "https://huggingface.co/joachimsallstrom/aether-ghost-lora-for-sdxl/resolve/14de4e59a3f44dabc762855da208cb8f44a7ac78/ghost.png",
|
| 89 |
+
"title": "Aether Ghost",
|
| 90 |
+
"repo": "joachimsallstrom/aether-ghost-lora-for-sdxl",
|
| 91 |
+
"trigger_word": "transparent ghost",
|
| 92 |
+
"weights": "Aether_Ghost_v1.1_LoRA.safetensors",
|
| 93 |
+
"is_compatible": true,
|
| 94 |
+
"likes": 5,
|
| 95 |
+
"downloads": 0
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"image": "https://huggingface.co/artificialguybr/ColoringBookRedmond-V2/resolve/main/00493-1759595235.png",
|
| 99 |
+
"title": "ColoringBook.Redmond V2",
|
| 100 |
+
"repo": "artificialguybr/ColoringBookRedmond-V2",
|
| 101 |
+
"trigger_word": "ColoringBookAF",
|
| 102 |
+
"weights": "ColoringBookRedmond-ColoringBook-ColoringBookAF.safetensors",
|
| 103 |
+
"is_compatible": true,
|
| 104 |
+
"likes": 2,
|
| 105 |
+
"downloads": 0
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"image": "https://huggingface.co/Norod78/SDXL-LofiGirl-Lora/resolve/main/SDXL-LofiGirl-Lora/Examples/_00044-20230829080050-45-the%20%20girl%20with%20a%20pearl%20earring%20the%20LofiGirl%20%20_lora_SDXL-LofiGirl-Lora_1_%2C%20Very%20detailed%2C%20clean%2C%20high%20quality%2C%20sharp%20image.jpg",
|
| 109 |
+
"title": "LoFi Girl SDXL",
|
| 110 |
+
"repo": "Norod78/SDXL-LofiGirl-Lora",
|
| 111 |
+
"trigger_word": "LofiGirl",
|
| 112 |
+
"weights": "SDXL-LofiGirl-Lora.safetensors",
|
| 113 |
+
"is_compatible": true,
|
| 114 |
+
"likes": 3,
|
| 115 |
+
"downloads": 0
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"image": "images/embroid.png",
|
| 119 |
+
"title": "Embroidery Style",
|
| 120 |
+
"repo": "ostris/embroidery_style_lora_sdxl",
|
| 121 |
+
"trigger_word": "",
|
| 122 |
+
"weights": "embroidered_style_v1_sdxl.safetensors",
|
| 123 |
+
"is_compatible": true,
|
| 124 |
+
"likes": 1,
|
| 125 |
+
"downloads": 0
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"image": "images/3d_style_4.jpeg",
|
| 129 |
+
"title": "3D Render Style",
|
| 130 |
+
"repo": "goofyai/3d_render_style_xl",
|
| 131 |
+
"trigger_word": "3d style",
|
| 132 |
+
"weights": "3d_render_style_xl.safetensors",
|
| 133 |
+
"is_compatible": true,
|
| 134 |
+
"likes": 39,
|
| 135 |
+
"downloads": 0
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"image": "images/watercolor.png",
|
| 139 |
+
"title": "Watercolor Style",
|
| 140 |
+
"repo": "ostris/watercolor_style_lora_sdxl",
|
| 141 |
+
"trigger_word": "",
|
| 142 |
+
"weights": "watercolor_v1_sdxl.safetensors",
|
| 143 |
+
"is_compatible": true,
|
| 144 |
+
"likes": 6,
|
| 145 |
+
"downloads": 0
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"image": "https://huggingface.co/veryVANYA/ps1-graphics-sdxl/resolve/main/2070471.jpeg",
|
| 149 |
+
"title": "PS1 Graphics v2 SDXL",
|
| 150 |
+
"repo": "veryVANYA/ps1-graphics-sdxl-v2",
|
| 151 |
+
"trigger_word": "ps1 style",
|
| 152 |
+
"weights": "ps1_style_SDXL_v2.safetensors",
|
| 153 |
+
"is_compatible": true,
|
| 154 |
+
"likes": 3,
|
| 155 |
+
"downloads": 0
|
| 156 |
+
},
|
| 157 |
+
{
|
| 158 |
+
"image": "images/william_eggleston.webp",
|
| 159 |
+
"title": "William Eggleston Style",
|
| 160 |
+
"repo": "TheLastBen/William_Eggleston_Style_SDXL",
|
| 161 |
+
"trigger_word": "by william eggleston",
|
| 162 |
+
"weights": "wegg.safetensors",
|
| 163 |
+
"is_compatible": true,
|
| 164 |
+
"likes": 7,
|
| 165 |
+
"downloads": 0
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"image": "https://huggingface.co/davizca87/c-a-g-coinmaker/resolve/main/1722160.jpeg",
|
| 169 |
+
"title": "CAG Coinmaker",
|
| 170 |
+
"repo": "davizca87/c-a-g-coinmaker",
|
| 171 |
+
"trigger_word": "c01n",
|
| 172 |
+
"weights": "c01n-000010.safetensors",
|
| 173 |
+
"is_compatible": true,
|
| 174 |
+
"likes": 1,
|
| 175 |
+
"downloads": 0
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"image": "images/dog.png",
|
| 179 |
+
"title": "Cyborg Style",
|
| 180 |
+
"repo": "goofyai/cyborg_style_xl",
|
| 181 |
+
"trigger_word": "cyborg style",
|
| 182 |
+
"weights": "cyborg_style_xl-off.safetensors",
|
| 183 |
+
"is_compatible": true,
|
| 184 |
+
"likes": 6,
|
| 185 |
+
"downloads": 0
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"image": "images/ToyRedmond-ToyLoraForSDXL10.png",
|
| 189 |
+
"title": "Toy.Redmond",
|
| 190 |
+
"repo": "artificialguybr/ToyRedmond-ToyLoraForSDXL10",
|
| 191 |
+
"trigger_word": "FnkRedmAF",
|
| 192 |
+
"weights": "ToyRedmond-FnkRedmAF.safetensors",
|
| 193 |
+
"is_compatible": true,
|
| 194 |
+
"likes": 3,
|
| 195 |
+
"downloads": 0
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"image": "images/voxel-xl-lora.png",
|
| 199 |
+
"title": "Voxel XL",
|
| 200 |
+
"repo": "Fictiverse/Voxel_XL_Lora",
|
| 201 |
+
"trigger_word": "voxel style",
|
| 202 |
+
"weights": "VoxelXL_v1.safetensors",
|
| 203 |
+
"is_compatible": true,
|
| 204 |
+
"likes": 12,
|
| 205 |
+
"downloads": 0
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"image": "images/uglysonic.webp",
|
| 209 |
+
"title": "Ugly Sonic",
|
| 210 |
+
"repo": "minimaxir/sdxl-ugly-sonic-lora",
|
| 211 |
+
"trigger_word": "sonic the hedgehog",
|
| 212 |
+
"weights": "pytorch_lora_weights.bin",
|
| 213 |
+
"is_compatible": true,
|
| 214 |
+
"likes": 3,
|
| 215 |
+
"downloads": 1480
|
| 216 |
+
},
|
| 217 |
+
{
|
| 218 |
+
"image": "images/corgi_brick.jpeg",
|
| 219 |
+
"title": "Lego BrickHeadz",
|
| 220 |
+
"repo": "nerijs/lego-brickheadz-xl",
|
| 221 |
+
"trigger_word": "lego brickheadz",
|
| 222 |
+
"weights": "legobrickheadz-v1.0-000004.safetensors",
|
| 223 |
+
"is_compatible": true,
|
| 224 |
+
"likes": 13,
|
| 225 |
+
"downloads": 0
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"image": "images/lego-minifig-xl.jpeg",
|
| 229 |
+
"title": "Lego Minifig XL",
|
| 230 |
+
"repo": "nerijs/lego-minifig-xl",
|
| 231 |
+
"trigger_word": "lego minifig",
|
| 232 |
+
"weights": "legominifig-v1.0-000003.safetensors",
|
| 233 |
+
"is_compatible": true,
|
| 234 |
+
"likes": 14,
|
| 235 |
+
"downloads": 0
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"image": "images/jojoso1.jpg",
|
| 239 |
+
"title": "JoJo's Bizarre style",
|
| 240 |
+
"repo": "Norod78/SDXL-jojoso_style-Lora",
|
| 241 |
+
"trigger_word": "jojoso style",
|
| 242 |
+
"weights": "SDXL-jojoso_style-Lora-r8.safetensors",
|
| 243 |
+
"is_compatible": true,
|
| 244 |
+
"likes": 2,
|
| 245 |
+
"downloads": 0
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"image": "images/pikachu.webp",
|
| 249 |
+
"title": "Pikachu XL",
|
| 250 |
+
"repo": "TheLastBen/Pikachu_SDXL",
|
| 251 |
+
"trigger_word": "pikachu",
|
| 252 |
+
"weights": "pikachu.safetensors",
|
| 253 |
+
"is_compatible": true,
|
| 254 |
+
"likes": 1,
|
| 255 |
+
"downloads": 0
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"image": "images/LogoRedmond-LogoLoraForSDXL.jpeg",
|
| 259 |
+
"title": "Logo.Redmond",
|
| 260 |
+
"repo": "artificialguybr/LogoRedmond-LogoLoraForSDXL",
|
| 261 |
+
"trigger_word": "LogoRedAF",
|
| 262 |
+
"weights": "LogoRedmond_LogoRedAF.safetensors",
|
| 263 |
+
"is_compatible": true,
|
| 264 |
+
"likes": 18,
|
| 265 |
+
"downloads": 0
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"image": "https://huggingface.co/Norod78/SDXL-StickerSheet-Lora/resolve/main/Examples/00073-20230831113700-7780-Cthulhu%20StickerSheet%20%20_lora_SDXL-StickerSheet-Lora_1_%2C%20based%20on%20H.P%20Lovecraft%20stories%2C%20Very%20detailed%2C%20clean%2C%20high%20quality%2C%20sharp.jpg",
|
| 269 |
+
"title": "Sticker Sheet",
|
| 270 |
+
"repo": "Norod78/SDXL-StickerSheet-Lora",
|
| 271 |
+
"trigger_word": "StickerSheet",
|
| 272 |
+
"weights": "SDXL-StickerSheet-Lora.safetensors",
|
| 273 |
+
"is_compatible": true,
|
| 274 |
+
"likes": 12,
|
| 275 |
+
"downloads": 0
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"image": "images/LineAni.Redmond.png",
|
| 279 |
+
"title": "LinearManga.Redmond",
|
| 280 |
+
"repo": "artificialguybr/LineAniRedmond-LinearMangaSDXL",
|
| 281 |
+
"trigger_word": "LineAniAF",
|
| 282 |
+
"weights": "LineAniRedmond-LineAniAF.safetensors",
|
| 283 |
+
"is_compatible": true,
|
| 284 |
+
"likes": 3,
|
| 285 |
+
"downloads": 0
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"image": "images/josef_koudelka.webp",
|
| 289 |
+
"title": "Josef Koudelka Style",
|
| 290 |
+
"repo": "TheLastBen/Josef_Koudelka_Style_SDXL",
|
| 291 |
+
"trigger_word": "by josef koudelka",
|
| 292 |
+
"weights": "koud.safetensors",
|
| 293 |
+
"is_compatible": true,
|
| 294 |
+
"likes": 4,
|
| 295 |
+
"downloads": 0
|
| 296 |
+
},
|
| 297 |
+
{
|
| 298 |
+
"image": "https://huggingface.co/goofyai/Leonardo_Ai_Style_Illustration/resolve/main/leo-2.png",
|
| 299 |
+
"title": "Leonardo Style",
|
| 300 |
+
"repo": "goofyai/Leonardo_Ai_Style_Illustration",
|
| 301 |
+
"trigger_word": "leonardo style",
|
| 302 |
+
"weights": "leonardo_illustration.safetensors",
|
| 303 |
+
"is_compatible": true,
|
| 304 |
+
"likes": 4,
|
| 305 |
+
"downloads": 0
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"image": "https://huggingface.co/Norod78/SDXL-simpstyle-Lora/resolve/main/Examples/00006-20230820150225-558-the%20girl%20with%20a%20pearl%20earring%20by%20johannes%20vermeer%20simpstyle%20_lora_SDXL-simpstyle-Lora_1_%2C%20Very%20detailed%2C%20clean%2C%20high%20quality%2C%20sh.jpg",
|
| 309 |
+
"title": "SimpStyle",
|
| 310 |
+
"repo": "Norod78/SDXL-simpstyle-Lora",
|
| 311 |
+
"trigger_word": "simpstyle",
|
| 312 |
+
"weights": "SDXL-simpstyle-Lora-r8.safetensors",
|
| 313 |
+
"is_compatible": true,
|
| 314 |
+
"likes": 6,
|
| 315 |
+
"downloads": 0
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"image": "https://huggingface.co/artificialguybr/StoryBookRedmond/resolve/main/00162-1569823442.png",
|
| 319 |
+
"title": "Storybook.Redmond",
|
| 320 |
+
"repo": "artificialguybr/StoryBookRedmond",
|
| 321 |
+
"trigger_word": "KidsRedmAF",
|
| 322 |
+
"weights": "StoryBookRedmond-KidsRedmAF.safetensors",
|
| 323 |
+
"is_compatible": true,
|
| 324 |
+
"likes": 2,
|
| 325 |
+
"downloads": 0
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"image": "https://huggingface.co/chillpixel/blacklight-makeup-sdxl-lora/resolve/main/preview.png",
|
| 329 |
+
"title": "Blacklight Makeup",
|
| 330 |
+
"repo": "chillpixel/blacklight-makeup-sdxl-lora",
|
| 331 |
+
"trigger_word": "with blacklight makeup",
|
| 332 |
+
"weights": "pytorch_lora_weights.bin",
|
| 333 |
+
"is_compatible": true,
|
| 334 |
+
"likes": 3,
|
| 335 |
+
"downloads": 508
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"repo": "ProomptEngineer/pe-neon-sign-style",
|
| 339 |
+
"title": "pe-neon-sign-style",
|
| 340 |
+
"trigger_word": "PENeonSign",
|
| 341 |
+
"is_compatible": true,
|
| 342 |
+
"image": "https://huggingface.co/ProomptEngineer/pe-neon-sign-style/resolve/main/2266230.jpeg",
|
| 343 |
+
"weights": "PE_NeonSignStyle.safetensors",
|
| 344 |
+
"likes": 0,
|
| 345 |
+
"downloads": 0
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"repo": "ProomptEngineer/pe-lofi-hiphop-lofi-girl-concept",
|
| 349 |
+
"title": "pe-lofi-hiphop-lofi-girl-concept",
|
| 350 |
+
"trigger_word": "PELofiHipHop",
|
| 351 |
+
"is_compatible": true,
|
| 352 |
+
"image": "https://huggingface.co/ProomptEngineer/pe-lofi-hiphop-lofi-girl-concept/resolve/main/1967528.jpeg",
|
| 353 |
+
"weights": "PE_LofiHipHop.safetensors",
|
| 354 |
+
"likes": 0,
|
| 355 |
+
"downloads": 0
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"repo": "ProomptEngineer/pe-shitty-fanart",
|
| 359 |
+
"title": "pe-shitty-fanart",
|
| 360 |
+
"trigger_word": "PETerribleFanArt",
|
| 361 |
+
"is_compatible": true,
|
| 362 |
+
"image": "https://huggingface.co/ProomptEngineer/pe-shitty-fanart/resolve/main/2028517.jpeg",
|
| 363 |
+
"weights": "PE_TerribleFanArtV1.safetensors",
|
| 364 |
+
"likes": 1,
|
| 365 |
+
"downloads": 0
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"repo": "ProomptEngineer/pe-sandsculpter-style",
|
| 369 |
+
"title": "pe-sandsculpter-style",
|
| 370 |
+
"trigger_word": "PESandSculpture",
|
| 371 |
+
"is_compatible": true,
|
| 372 |
+
"image": "https://huggingface.co/ProomptEngineer/pe-sandsculpter-style/resolve/main/2234364.jpeg",
|
| 373 |
+
"weights": "PE_SandSculpture.safetensors",
|
| 374 |
+
"likes": 1,
|
| 375 |
+
"downloads": 0
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"repo": "ProomptEngineer/pe-shitty-medieval-paintings",
|
| 379 |
+
"title": "pe-shitty-medieval-paintings",
|
| 380 |
+
"trigger_word": "PEBadMedivalArt",
|
| 381 |
+
"is_compatible": true,
|
| 382 |
+
"image": "https://huggingface.co/ProomptEngineer/pe-shitty-medieval-paintings/resolve/main/2061695.jpeg",
|
| 383 |
+
"weights": "PE_BadMedivalArt.safetensors",
|
| 384 |
+
"likes": 1,
|
| 385 |
+
"downloads": 0
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"repo": "ProomptEngineer/pe-courtroomsketch-style",
|
| 389 |
+
"title": "pe-courtroomsketch-style",
|
| 390 |
+
"trigger_word": "PECourtRoomSketch",
|
| 391 |
+
"is_compatible": true,
|
| 392 |
+
"image": "https://huggingface.co/ProomptEngineer/pe-courtroomsketch-style/resolve/main/2201914.jpeg",
|
| 393 |
+
"weights": "PE_CourtRoomSketchV2.safetensors",
|
| 394 |
+
"likes": 1,
|
| 395 |
+
"downloads": 0
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"repo": "ProomptEngineer/pe-funko-pop-diffusion-style",
|
| 399 |
+
"title": "pe-funko-pop-diffusion-style",
|
| 400 |
+
"trigger_word": "PEPopFigure",
|
| 401 |
+
"is_compatible": true,
|
| 402 |
+
"image": "https://huggingface.co/ProomptEngineer/pe-funko-pop-diffusion-style/resolve/main/2219678.jpeg",
|
| 403 |
+
"weights": "PE_FunkoPopStyle.safetensors",
|
| 404 |
+
"likes": 0,
|
| 405 |
+
"downloads": 0
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"repo": "lordjia/lelo-lego-lora",
|
| 409 |
+
"title": "lelo-lego-lora",
|
| 410 |
+
"trigger_word": "LEGO BrickHeadz",
|
| 411 |
+
"is_compatible": true,
|
| 412 |
+
"image": "https://huggingface.co/lordjia/lelo-lego-lora/resolve/main/2403933.jpeg",
|
| 413 |
+
"weights": "lego_v2.0_XL_32.safetensors",
|
| 414 |
+
"likes": 4,
|
| 415 |
+
"downloads": 0
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"repo": "KappaNeuro/dressed-animals",
|
| 419 |
+
"title": "dressed-animals",
|
| 420 |
+
"trigger_word": "Dressed animals page",
|
| 421 |
+
"is_compatible": true,
|
| 422 |
+
"image": "https://huggingface.co/KappaNeuro/dressed-animals/resolve/main/2322079.jpeg",
|
| 423 |
+
"weights": "Dressed animals.safetensors",
|
| 424 |
+
"likes": 1,
|
| 425 |
+
"downloads": 0
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"repo": "KappaNeuro/vintage-postage-stamps",
|
| 429 |
+
"title": "vintage-postage-stamps",
|
| 430 |
+
"trigger_word": "Vintage Postage Stamps",
|
| 431 |
+
"is_compatible": true,
|
| 432 |
+
"image": "https://huggingface.co/KappaNeuro/vintage-postage-stamps/resolve/main/2332736.jpeg",
|
| 433 |
+
"weights": "Vintage Postage Stamps.safetensors",
|
| 434 |
+
"likes": 1,
|
| 435 |
+
"downloads": 0
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"repo": "KappaNeuro/video-installation",
|
| 439 |
+
"title": "video-installation",
|
| 440 |
+
"trigger_word": "Video installation",
|
| 441 |
+
"is_compatible": true,
|
| 442 |
+
"image": "https://huggingface.co/KappaNeuro/video-installation/resolve/main/2332706.jpeg",
|
| 443 |
+
"weights": "Video installation.safetensors",
|
| 444 |
+
"likes": 1,
|
| 445 |
+
"downloads": 0
|
| 446 |
+
},
|
| 447 |
+
{
|
| 448 |
+
"repo": "KappaNeuro/ukiyo-e-art",
|
| 449 |
+
"title": "ukiyo-e-art",
|
| 450 |
+
"trigger_word": "Ukiyo-e Art",
|
| 451 |
+
"is_compatible": true,
|
| 452 |
+
"image": "https://huggingface.co/KappaNeuro/ukiyo-e-art/resolve/main/2332646.jpeg",
|
| 453 |
+
"weights": "Ukiyo-e Art.safetensors",
|
| 454 |
+
"likes": 1,
|
| 455 |
+
"downloads": 0
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"repo": "KappaNeuro/surreal-collage",
|
| 459 |
+
"title": "surreal-collage",
|
| 460 |
+
"trigger_word": "Surreal Collage",
|
| 461 |
+
"is_compatible": true,
|
| 462 |
+
"image": "https://huggingface.co/KappaNeuro/surreal-collage/resolve/main/2331965.jpeg",
|
| 463 |
+
"weights": "Surreal Collage.safetensors",
|
| 464 |
+
"likes": 1,
|
| 465 |
+
"downloads": 0
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"repo": "KappaNeuro/stop-motion-animation",
|
| 469 |
+
"title": "stop-motion-animation",
|
| 470 |
+
"trigger_word": "Stop-Motion Animation",
|
| 471 |
+
"is_compatible": true,
|
| 472 |
+
"image": "https://huggingface.co/KappaNeuro/stop-motion-animation/resolve/main/2331934.jpeg",
|
| 473 |
+
"weights": "Stop-Motion Animation.safetensors",
|
| 474 |
+
"likes": 1,
|
| 475 |
+
"downloads": 0
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"repo": "KappaNeuro/studio-ghibli-style",
|
| 479 |
+
"title": "studio-ghibli-style",
|
| 480 |
+
"trigger_word": "Studio Ghibli Style",
|
| 481 |
+
"is_compatible": true,
|
| 482 |
+
"image": "https://huggingface.co/KappaNeuro/studio-ghibli-style/resolve/main/2331948.jpeg",
|
| 483 |
+
"weights": "Studio Ghibli Style.safetensors",
|
| 484 |
+
"likes": 2,
|
| 485 |
+
"downloads": 0
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"repo": "KappaNeuro/punk-collage",
|
| 489 |
+
"title": "punk-collage",
|
| 490 |
+
"trigger_word": "Punk Collage",
|
| 491 |
+
"is_compatible": true,
|
| 492 |
+
"image": "https://huggingface.co/KappaNeuro/punk-collage/resolve/main/2330616.jpeg",
|
| 493 |
+
"weights": "Punk Collage.safetensors",
|
| 494 |
+
"likes": 1,
|
| 495 |
+
"downloads": 0
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"repo": "KappaNeuro/needlepoint",
|
| 499 |
+
"title": "needlepoint",
|
| 500 |
+
"trigger_word": "Needlepoint page",
|
| 501 |
+
"is_compatible": true,
|
| 502 |
+
"image": "https://huggingface.co/KappaNeuro/needlepoint/resolve/main/2329532.jpeg",
|
| 503 |
+
"weights": "Needlepoint.safetensors",
|
| 504 |
+
"likes": 1,
|
| 505 |
+
"downloads": 0
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"repo": "KappaNeuro/made-of-iridescent-foil",
|
| 509 |
+
"title": "made-of-iridescent-foil",
|
| 510 |
+
"trigger_word": "Made Of Iridescent Foil page",
|
| 511 |
+
"is_compatible": true,
|
| 512 |
+
"image": "https://huggingface.co/KappaNeuro/made-of-iridescent-foil/resolve/main/2325476.jpeg",
|
| 513 |
+
"weights": "Made Of Iridescent Foil.safetensors",
|
| 514 |
+
"likes": 1,
|
| 515 |
+
"downloads": 0
|
| 516 |
+
},
|
| 517 |
+
{
|
| 518 |
+
"repo": "KappaNeuro/lascaux",
|
| 519 |
+
"title": "lascaux",
|
| 520 |
+
"trigger_word": "Lascaux page",
|
| 521 |
+
"is_compatible": true,
|
| 522 |
+
"image": "https://huggingface.co/KappaNeuro/lascaux/resolve/main/2325538.jpeg",
|
| 523 |
+
"weights": "Lascaux.safetensors",
|
| 524 |
+
"likes": 1,
|
| 525 |
+
"downloads": 0
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"repo": "KappaNeuro/color-palette",
|
| 529 |
+
"title": "color-palette",
|
| 530 |
+
"trigger_word": "Color Palette -",
|
| 531 |
+
"is_compatible": true,
|
| 532 |
+
"image": "https://huggingface.co/KappaNeuro/color-palette/resolve/main/2248053.jpeg",
|
| 533 |
+
"weights": "Color Palette.safetensors",
|
| 534 |
+
"likes": 2,
|
| 535 |
+
"downloads": 0
|
| 536 |
+
},
|
| 537 |
+
{
|
| 538 |
+
"repo": "KappaNeuro/albumen-print",
|
| 539 |
+
"title": "albumen-print",
|
| 540 |
+
"trigger_word": "Albumen Print page",
|
| 541 |
+
"is_compatible": true,
|
| 542 |
+
"image": "https://huggingface.co/KappaNeuro/albumen-print/resolve/main/2320833.jpeg",
|
| 543 |
+
"weights": "Albumen Print.safetensors",
|
| 544 |
+
"likes": 1,
|
| 545 |
+
"downloads": 0
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"repo": "KappaNeuro/1987-action-figure-playset-packaging",
|
| 549 |
+
"title": "1987-action-figure-playset-packaging",
|
| 550 |
+
"trigger_word": "1987 Action Figure Playset Packaging page",
|
| 551 |
+
"is_compatible": true,
|
| 552 |
+
"image": "https://huggingface.co/KappaNeuro/1987-action-figure-playset-packaging/resolve/main/2320798.jpeg",
|
| 553 |
+
"weights": "1987 Action Figure Playset Packaging.safetensors",
|
| 554 |
+
"likes": 1,
|
| 555 |
+
"downloads": 0
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"repo": "Norod78/SDXL-VintageMagStyle-Lora",
|
| 559 |
+
"title": "SDXL-VintageMagStyle-Lora",
|
| 560 |
+
"trigger_word": "VintageMagStyle",
|
| 561 |
+
"is_compatible": true,
|
| 562 |
+
"image": "https://huggingface.co/Norod78/SDXL-VintageMagStyle-Lora/resolve/main/Examples/00015-20230906102032-7778-Wonderwoman%20VintageMagStyle%20%20%20_lora_SDXL-VintageMagStyle-Lora_1_,%20Very%20detailed,%20clean,%20high%20quality,%20sharp%20image.jpg",
|
| 563 |
+
"weights": "SDXL-VintageMagStyle-Lora.safetensors",
|
| 564 |
+
"likes": 7,
|
| 565 |
+
"downloads": 0
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"repo": "CiroN2022/road-sign",
|
| 569 |
+
"title": "road-sign",
|
| 570 |
+
"trigger_word": "road sign",
|
| 571 |
+
"is_compatible": true,
|
| 572 |
+
"image": "https://huggingface.co/CiroN2022/road-sign/resolve/main/2338481.jpeg",
|
| 573 |
+
"weights": "road_sign.safetensors",
|
| 574 |
+
"likes": 0,
|
| 575 |
+
"downloads": 0
|
| 576 |
+
},
|
| 577 |
+
{
|
| 578 |
+
"repo": "CiroN2022/mosaic-style",
|
| 579 |
+
"title": "mosaic-style",
|
| 580 |
+
"trigger_word": "mosaic",
|
| 581 |
+
"is_compatible": true,
|
| 582 |
+
"image": "https://huggingface.co/CiroN2022/mosaic-style/resolve/main/2216189.jpeg",
|
| 583 |
+
"weights": "mosaic.safetensors",
|
| 584 |
+
"likes": 1,
|
| 585 |
+
"downloads": 0
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"repo": "CiroN2022/cd-md-music",
|
| 589 |
+
"title": "cd-md-music",
|
| 590 |
+
"trigger_word": "product photo cd",
|
| 591 |
+
"is_compatible": true,
|
| 592 |
+
"image": "https://huggingface.co/CiroN2022/cd-md-music/resolve/main/2183289.jpeg",
|
| 593 |
+
"weights": "cd_music.safetensors",
|
| 594 |
+
"likes": 0,
|
| 595 |
+
"downloads": 0
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"repo": "CiroN2022/hair-style",
|
| 599 |
+
"title": "hair-style",
|
| 600 |
+
"trigger_word": "crazy alternate hairstyle",
|
| 601 |
+
"is_compatible": true,
|
| 602 |
+
"image": "https://huggingface.co/CiroN2022/hair-style/resolve/main/2193812.jpeg",
|
| 603 |
+
"weights": "hair_style.safetensors",
|
| 604 |
+
"likes": 0,
|
| 605 |
+
"downloads": 0
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"repo": "CiroN2022/overprint-effect",
|
| 609 |
+
"title": "overprint-effect",
|
| 610 |
+
"trigger_word": "overprint_effect",
|
| 611 |
+
"is_compatible": true,
|
| 612 |
+
"image": "https://huggingface.co/CiroN2022/overprint-effect/resolve/main/2139470.jpeg",
|
| 613 |
+
"weights": "Overprint_effect_sdxl.safetensors",
|
| 614 |
+
"likes": 1,
|
| 615 |
+
"downloads": 0
|
| 616 |
+
},
|
| 617 |
+
{
|
| 618 |
+
"repo": "CiroN2022/toy-face",
|
| 619 |
+
"title": "toy-face",
|
| 620 |
+
"trigger_word": "toy_face",
|
| 621 |
+
"is_compatible": true,
|
| 622 |
+
"image": "https://huggingface.co/CiroN2022/toy-face/resolve/main/2123367.jpeg",
|
| 623 |
+
"weights": "toy_face_sdxl.safetensors",
|
| 624 |
+
"likes": 0,
|
| 625 |
+
"downloads": 0
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"repo": "CiroN2022/ascii-art",
|
| 629 |
+
"title": "ascii-art",
|
| 630 |
+
"trigger_word": "ascii_art",
|
| 631 |
+
"is_compatible": true,
|
| 632 |
+
"image": "https://huggingface.co/CiroN2022/ascii-art/resolve/main/2080723.jpeg",
|
| 633 |
+
"weights": "ascii_art-sdxl.safetensors",
|
| 634 |
+
"likes": 0,
|
| 635 |
+
"downloads": 0
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"repo": "artificialguybr/PixelArtRedmond",
|
| 639 |
+
"title": "PixelArtRedmond",
|
| 640 |
+
"trigger_word": "Pixel Art, PixArFK",
|
| 641 |
+
"likes": 1,
|
| 642 |
+
"downloads": 0,
|
| 643 |
+
"is_compatible": true,
|
| 644 |
+
"image": "https://huggingface.co/artificialguybr/PixelArtRedmond/resolve/main/pixel-0017-714031916.png",
|
| 645 |
+
"weights": "PixelArtRedmond-Lite64.safetensors"
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"repo": "artificialguybr/StickersRedmond",
|
| 649 |
+
"title": "StickersRedmond",
|
| 650 |
+
"trigger_word": "Stickers",
|
| 651 |
+
"likes": 2,
|
| 652 |
+
"downloads": 0,
|
| 653 |
+
"is_compatible": true,
|
| 654 |
+
"image": "https://huggingface.co/artificialguybr/StickersRedmond/resolve/main/00000-3383490575.png",
|
| 655 |
+
"weights": "StickersRedmond.safetensors"
|
| 656 |
+
},
|
| 657 |
+
{
|
| 658 |
+
"repo": "artificialguybr/ClayAnimationRedmond",
|
| 659 |
+
"title": "ClayAnimationRedmond",
|
| 660 |
+
"trigger_word": "Clay Animation",
|
| 661 |
+
"likes": 5,
|
| 662 |
+
"downloads": 0,
|
| 663 |
+
"is_compatible": true,
|
| 664 |
+
"image": "https://huggingface.co/artificialguybr/ClayAnimationRedmond/resolve/main/00138-3585231804.png",
|
| 665 |
+
"weights": "ClayAnimationRedm.safetensors"
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"image": "https://replicate.delivery/pbxt/aVhJriYftYQCFCd81DrvNGktIcOlJrb3fifcOTQ3yI7LZWxiA/out-0.png",
|
| 669 |
+
"repo": "fofr/sdxl-vision-pro",
|
| 670 |
+
"title": "SDXL Vision Pro",
|
| 671 |
+
"trigger_word": "<s0><s1> VR headset",
|
| 672 |
+
"weights": "lora.safetensors",
|
| 673 |
+
"text_embedding_weights": "embeddings.pti",
|
| 674 |
+
"is_compatible": false,
|
| 675 |
+
"is_pivotal": true,
|
| 676 |
+
"likes": 1,
|
| 677 |
+
"downloads": 0
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"image": "https://huggingface.co/joachimsallstrom/aether-glitch-lora-for-sdxl/resolve/main/2680627.jpeg",
|
| 681 |
+
"repo": "joachimsallstrom/aether-glitch-lora-for-sdxl",
|
| 682 |
+
"title": "Aether VHS Glitch",
|
| 683 |
+
"trigger_word": "vhs glitch",
|
| 684 |
+
"weights": "Aether_Glitch_v1_LoRA.safetensors",
|
| 685 |
+
"is_compatible": true,
|
| 686 |
+
"likes": 1
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"image": "https://huggingface.co/artificialguybr/TshirtDesignRedmond/resolve/main/00097-1339429505.png",
|
| 690 |
+
"repo": "artificialguybr/TshirtDesignRedmond-V2",
|
| 691 |
+
"title": "T-Shirt.Design.Redmond V2",
|
| 692 |
+
"trigger_word": "TshirtDesignAF",
|
| 693 |
+
"weights": "TShirtDesignRedmondV2-Tshirtdesign-TshirtDesignAF.safetensors",
|
| 694 |
+
"is_compatible": true,
|
| 695 |
+
"likes": 4
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"image": "https://huggingface.co/ostris/ikea-instructions-lora-sdxl/resolve/main/2709929.jpeg",
|
| 699 |
+
"repo": "ostris/ikea-instructions-lora-sdxl",
|
| 700 |
+
"title": "IKEA Instructions",
|
| 701 |
+
"trigger_word": "",
|
| 702 |
+
"weights": "ikea_instructions_xl_v1_5.safetensors",
|
| 703 |
+
"is_compatible": true,
|
| 704 |
+
"likes": 106
|
| 705 |
+
},
|
| 706 |
+
{
|
| 707 |
+
"image": "https://huggingface.co/ostris/super-cereal-sdxl-lora/resolve/main/2879386.jpeg",
|
| 708 |
+
"repo": "ostris/super-cereal-sdxl-lora",
|
| 709 |
+
"title": "Super Cereal",
|
| 710 |
+
"trigger_word": "",
|
| 711 |
+
"weights": "cereal_box_sdxl_v1.safetensors",
|
| 712 |
+
"is_compatible": true,
|
| 713 |
+
"likes": 5
|
| 714 |
+
},
|
| 715 |
+
{
|
| 716 |
+
"image": "https://replicate.delivery/pbxt/CoMBej9GOtyNKqyDHb0fsNSdABpTzOszpjltZGvHsbqif8XjA/out-0.png",
|
| 717 |
+
"repo": "jakedahn/sdxl-isometric-geology",
|
| 718 |
+
"title": "Isometric Geology",
|
| 719 |
+
"trigger_word": "in the style of <s0><s1>",
|
| 720 |
+
"weights": "lora.safetensors",
|
| 721 |
+
"text_embedding_weights": "embeddings.pti",
|
| 722 |
+
"is_compatible": false,
|
| 723 |
+
"is_pivotal": true,
|
| 724 |
+
"likes": 1
|
| 725 |
+
},
|
| 726 |
+
{
|
| 727 |
+
"image": "https://huggingface.co/artificialguybr/analogredmond-v2/resolve/main/00279-913323466.png",
|
| 728 |
+
"repo": "artificialguybr/analogredmond-v2",
|
| 729 |
+
"title": "Analog Photography.Redmond",
|
| 730 |
+
"trigger_word": "AnalogRedmAF",
|
| 731 |
+
"weights": "AnalogRedmondV2-Analog-AnalogRedmAF.safetensors",
|
| 732 |
+
"is_compatible": true,
|
| 733 |
+
"likes": 3
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"image": "https://huggingface.co/stets/nintendo64_cartridge/resolve/main/00002-%5Bnumber%5D-840302403-_%20_lora_n64-000002_1_%20n64%20game%2C%20cartridge%2C%20titled%2C%20chicken%20riding%20a%20bicycle.png",
|
| 737 |
+
"repo": "stets/nintendo64_cartridge",
|
| 738 |
+
"title": "Nintendo 64 Cartridge",
|
| 739 |
+
"weights": "n64-000001.safetensors",
|
| 740 |
+
"trigger_word": "n64",
|
| 741 |
+
"is_compatible": true,
|
| 742 |
+
"likes": 6
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"image": "https://huggingface.co/joachimsallstrom/aether-bubbles-foam-lora-for-sdxl/resolve/main/3056728.jpeg",
|
| 746 |
+
"repo": "joachimsallstrom/aether-bubbles-foam-lora-for-sdxl",
|
| 747 |
+
"title": "Aether Bubbles & Foam",
|
| 748 |
+
"weights": "Aether_Bubbles_And_Foam_v1_SDXL_LoRA.safetensors",
|
| 749 |
+
"trigger_word": "made of bath foam and soap bubbles",
|
| 750 |
+
"is_compatible": true,
|
| 751 |
+
"likes": 2
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"image": "https://huggingface.co/artificialguybr/3DRedmond-V1/resolve/main/images/00064-2498532539.png",
|
| 755 |
+
"repo": "artificialguybr/3DRedmond-V1",
|
| 756 |
+
"title": "3D.Redmond",
|
| 757 |
+
"weights": "3DRedmond-3DRenderStyle-3DRenderAF.safetensors",
|
| 758 |
+
"trigger_word": "3D Render Style, 3DRenderAF",
|
| 759 |
+
"is_compatible": true,
|
| 760 |
+
"likes": 5
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"image": "https://i.imgur.com/cAx2FL1.jpg",
|
| 764 |
+
"repo": "CiroN2022/tape-people",
|
| 765 |
+
"title": "Covered in Tape",
|
| 766 |
+
"weights": "Tape_people.safetensors",
|
| 767 |
+
"trigger_word": "covered of tape, caution tape, keep out",
|
| 768 |
+
"is_compatible": true,
|
| 769 |
+
"likes": 2
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"image": "https://huggingface.co/WizWhite/the-wizard-s-vintage-romance-novel/resolve/main/5033837.jpeg",
|
| 773 |
+
"title": "WizWhite/the-wizard-s-vintage-romance-novel",
|
| 774 |
+
"repo": "WizWhite/the-wizard-s-vintage-romance-novel",
|
| 775 |
+
"trigger_word": "Book cover of a vintage romance novel",
|
| 776 |
+
"weights": "wizards_vintage_romance.safetensors",
|
| 777 |
+
"is_compatible": true,
|
| 778 |
+
"likes": 1,
|
| 779 |
+
"downloads": 86
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"image": "https://huggingface.co/WizWhite/gildenface-xl-headshot-lora/resolve/main/3277226.jpeg",
|
| 783 |
+
"title": "WizWhite/gildenface-xl-headshot-lora",
|
| 784 |
+
"repo": "WizWhite/gildenface-xl-headshot-lora",
|
| 785 |
+
"trigger_word": "Gildenface portrait photo",
|
| 786 |
+
"weights": "GildenfaceXL_Headshot_LoRA_v1.safetensors",
|
| 787 |
+
"is_compatible": true,
|
| 788 |
+
"likes": 1,
|
| 789 |
+
"downloads": 104
|
| 790 |
+
},
|
| 791 |
+
{
|
| 792 |
+
"image": "https://huggingface.co/WizWhite/wizard-s-vintage-board-games/resolve/main/4390221.jpeg",
|
| 793 |
+
"title": "WizWhite/wizard-s-vintage-board-games",
|
| 794 |
+
"repo": "WizWhite/wizard-s-vintage-board-games",
|
| 795 |
+
"trigger_word": "Vintage board game box",
|
| 796 |
+
"weights": "Wizards_Vintage_Board_Game.safetensors",
|
| 797 |
+
"is_compatible": true,
|
| 798 |
+
"likes": 2,
|
| 799 |
+
"downloads": 105
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"image": "https://huggingface.co/WizWhite/gustav-vasa-1496-1560-historical-king-of-sweden/resolve/main/4712224.jpeg",
|
| 803 |
+
"title": "WizWhite/gustav-vasa-1496-1560-historical-king-of-sweden",
|
| 804 |
+
"repo": "WizWhite/gustav-vasa-1496-1560-historical-king-of-sweden",
|
| 805 |
+
"trigger_word": "GVASA",
|
| 806 |
+
"weights": "GUSTAV_VASA-000002.safetensors",
|
| 807 |
+
"is_compatible": true,
|
| 808 |
+
"likes": 3,
|
| 809 |
+
"downloads": 77
|
| 810 |
+
},
|
| 811 |
+
{
|
| 812 |
+
"image": "https://huggingface.co/WizWhite/the-wizard-s-vintage-romance-novel/resolve/main/5033837.jpeg",
|
| 813 |
+
"title": "WizWhite/the-wizard-s-vintage-romance-novel",
|
| 814 |
+
"repo": "WizWhite/the-wizard-s-vintage-romance-novel",
|
| 815 |
+
"trigger_word": "Book cover of a vintage romance novel",
|
| 816 |
+
"weights": "wizards_vintage_romance.safetensors",
|
| 817 |
+
"is_compatible": true,
|
| 818 |
+
"likes": 1,
|
| 819 |
+
"downloads": 86
|
| 820 |
+
},
|
| 821 |
+
{
|
| 822 |
+
"image": "https://huggingface.co/Norod78/yet-another-sdxl-tattoo-lora/resolve/main/3334836.jpeg",
|
| 823 |
+
"title": "Norod78/yet-another-sdxl-tattoo-lora",
|
| 824 |
+
"repo": "Norod78/yet-another-sdxl-tattoo-lora",
|
| 825 |
+
"trigger_word": "tattoo",
|
| 826 |
+
"weights": "SDXL-tattoo-Lora.safetensors",
|
| 827 |
+
"is_compatible": true,
|
| 828 |
+
"likes": 3,
|
| 829 |
+
"downloads": 205
|
| 830 |
+
},
|
| 831 |
+
{
|
| 832 |
+
"image": "https://huggingface.co/EgadZoundsGadzooks/macos9-3dwallpapers-lora/resolve/main/images/66bf4d45-bae9-4d80-824b-4cdd35e6a42e.jpeg",
|
| 833 |
+
"title": "EgadZoundsGadzooks/macos9-3dwallpapers-lora",
|
| 834 |
+
"repo": "EgadZoundsGadzooks/macos9-3dwallpapers-lora",
|
| 835 |
+
"trigger_word": "simplistic repeating 3D pattern of simplified 3D objects",
|
| 836 |
+
"weights": "Mac OS 9 - 3D Wallpapers v1.0.safetensors",
|
| 837 |
+
"is_compatible": true,
|
| 838 |
+
"likes": 0,
|
| 839 |
+
"downloads": 176
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"image": "https://huggingface.co/artificialguybr/CuteCartoonRedmond-V2/resolve/main/00418-1769284661.png",
|
| 843 |
+
"title": "artificialguybr/CuteCartoonRedmond-V2",
|
| 844 |
+
"repo": "artificialguybr/CuteCartoonRedmond-V2",
|
| 845 |
+
"trigger_word": "CuteCartoonAF, Cute Cartoon",
|
| 846 |
+
"weights": "CuteCartoonRedmond-CuteCartoon-CuteCartoonAF.safetensors",
|
| 847 |
+
"is_compatible": true,
|
| 848 |
+
"likes": 6,
|
| 849 |
+
"downloads": 3640
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"image": "https://huggingface.co/Norod78/SDXL-YarnArtStyle-LoRA/resolve/main/images/00016-20240102204306-7790-Rick%20Sanchez%20Yarn%20art%20style%20%20_lora_SDXL_Yarn_Art_Style_1.0_.jpg",
|
| 853 |
+
"title": "Norod78/SDXL-YarnArtStyle-LoRA",
|
| 854 |
+
"repo": "Norod78/SDXL-YarnArtStyle-LoRA",
|
| 855 |
+
"trigger_word": "Yarn art style",
|
| 856 |
+
"weights": "SDXL_Yarn_Art_Style.safetensors",
|
| 857 |
+
"is_compatible": true,
|
| 858 |
+
"likes": 33,
|
| 859 |
+
"downloads": 2382
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"image": "https://huggingface.co/blink7630/storyboard-sketch/resolve/main/2947992.jpeg",
|
| 863 |
+
"title": "blink7630/storyboard-sketch",
|
| 864 |
+
"repo": "blink7630/storyboard-sketch",
|
| 865 |
+
"trigger_word": "storyboard sketch of",
|
| 866 |
+
"weights": "Storyboard_sketch.safetensors",
|
| 867 |
+
"is_compatible": true,
|
| 868 |
+
"likes": 38,
|
| 869 |
+
"downloads": 1853
|
| 870 |
+
},
|
| 871 |
+
{
|
| 872 |
+
"image": "https://huggingface.co/artificialguybr/amigurami-redmond-amigurami-crochet-sd-xl-lora/resolve/main/7859340.jpeg",
|
| 873 |
+
"title": "artificialguybr/amigurami-redmond-amigurami-crochet-sd-xl-lora",
|
| 874 |
+
"repo": "artificialguybr/amigurami-redmond-amigurami-crochet-sd-xl-lora",
|
| 875 |
+
"trigger_word": "Amigurami",
|
| 876 |
+
"weights": "AmiguramiRedmond-Crochet-Amigurumi.safetensors",
|
| 877 |
+
"is_compatible": true,
|
| 878 |
+
"likes": 7,
|
| 879 |
+
"downloads": 609
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"image": "https://huggingface.co/Changchoichang2104/StableDiffusionXL-Waltz-with-Bashir-style/resolve/main/images/a22ec06b-031c-454e-8fac-6a2f7dacddff.jpeg",
|
| 883 |
+
"title": "Changchoichang2104/StableDiffusionXL-Waltz-with-Bashir-style",
|
| 884 |
+
"repo": "Changchoichang2104/StableDiffusionXL-Waltz-with-Bashir-style",
|
| 885 |
+
"trigger_word": null,
|
| 886 |
+
"weights": "waltz-with-bashir-style-000010.safetensors",
|
| 887 |
+
"is_compatible": true,
|
| 888 |
+
"likes": 1,
|
| 889 |
+
"downloads": 298
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"image": "https://huggingface.co/e-n-v-y/envy-oil-pastel-xl-01/resolve/main/3630371.jpeg",
|
| 893 |
+
"title": "e-n-v-y/envy-oil-pastel-xl-01",
|
| 894 |
+
"repo": "e-n-v-y/envy-oil-pastel-xl-01",
|
| 895 |
+
"trigger_word": "oil pastel",
|
| 896 |
+
"weights": "EnvyOilPastelXL01.safetensors",
|
| 897 |
+
"is_compatible": true,
|
| 898 |
+
"likes": 3,
|
| 899 |
+
"downloads": 597
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"image": "https://huggingface.co/e-n-v-y/envy-ink-swirl-xl-01/resolve/main/4676624.jpeg",
|
| 903 |
+
"title": "e-n-v-y/envy-ink-swirl-xl-01",
|
| 904 |
+
"repo": "e-n-v-y/envy-ink-swirl-xl-01",
|
| 905 |
+
"trigger_word": "swirling ink",
|
| 906 |
+
"weights": "EnvyInkSwirlXL01.safetensors",
|
| 907 |
+
"is_compatible": true,
|
| 908 |
+
"likes": 2,
|
| 909 |
+
"downloads": 77
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"image": "https://huggingface.co/e-n-v-y/envy-anime-watercolor-xl-01/resolve/main/4361796.jpeg",
|
| 913 |
+
"title": "e-n-v-y/envy-anime-watercolor-xl-01",
|
| 914 |
+
"repo": "e-n-v-y/envy-anime-watercolor-xl-01",
|
| 915 |
+
"trigger_word": "watercolor",
|
| 916 |
+
"weights": "EnvyAnimeWatercolorXL01.safetensors",
|
| 917 |
+
"is_compatible": true,
|
| 918 |
+
"likes": 5,
|
| 919 |
+
"downloads": 101
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"image": "https://huggingface.co/e-n-v-y/envy-send-noodles-xl-01/resolve/main/2879347.jpeg",
|
| 923 |
+
"title": "e-n-v-y/envy-send-noodles-xl-01",
|
| 924 |
+
"repo": "e-n-v-y/envy-send-noodles-xl-01",
|
| 925 |
+
"trigger_word": "noodles",
|
| 926 |
+
"weights": "EnvySendNoodlesXL01.safetensors",
|
| 927 |
+
"is_compatible": true,
|
| 928 |
+
"likes": 3,
|
| 929 |
+
"downloads": 81
|
| 930 |
+
},
|
| 931 |
+
{
|
| 932 |
+
"image": "https://huggingface.co/Blib-la/honore_daumier_lora_sdxl/resolve/main/images/00154-480187136.png",
|
| 933 |
+
"title": "Blib-la/honore_daumier_lora_sdxl",
|
| 934 |
+
"repo": "Blib-la/honore_daumier_lora_sdxl",
|
| 935 |
+
"trigger_word": "caricature, lithography by Honor\u00e9 Daumier",
|
| 936 |
+
"weights": "honore_daumier_sdxl_v1.safetensors",
|
| 937 |
+
"is_compatible": true,
|
| 938 |
+
"likes": 3,
|
| 939 |
+
"downloads": 127
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"image": "https://huggingface.co/Blib-la/thomas_rowlandson_lora_sdxl/resolve/main/images/00238-2223492874.png",
|
| 943 |
+
"title": "Blib-la/thomas_rowlandson_lora_sdxl",
|
| 944 |
+
"repo": "Blib-la/thomas_rowlandson_lora_sdxl",
|
| 945 |
+
"trigger_word": "hand painted etching by thomas rowlandson",
|
| 946 |
+
"weights": "thomas_rowlandson_sdxl_v1.safetensors",
|
| 947 |
+
"is_compatible": true,
|
| 948 |
+
"likes": 3,
|
| 949 |
+
"downloads": 156
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"image": "https://huggingface.co/Blib-la/eugene_atget_lora_sdxl/resolve/main/images/00147-693647877.png",
|
| 953 |
+
"title": "Blib-la/eugene_atget_lora_sdxl",
|
| 954 |
+
"repo": "Blib-la/eugene_atget_lora_sdxl",
|
| 955 |
+
"trigger_word": "by eugene atget",
|
| 956 |
+
"weights": "eugene_atget_sdxl_v1.safetensors",
|
| 957 |
+
"is_compatible": true,
|
| 958 |
+
"likes": 3,
|
| 959 |
+
"downloads": 131
|
| 960 |
+
},
|
| 961 |
+
{
|
| 962 |
+
"image": "https://huggingface.co/Blib-la/caricature_lora_sdxl/resolve/main/images/00543-3110114300.png",
|
| 963 |
+
"title": "Blib-la/caricature_lora_sdxl",
|
| 964 |
+
"repo": "Blib-la/caricature_lora_sdxl",
|
| 965 |
+
"trigger_word": null,
|
| 966 |
+
"weights": "caricature_sdxl_v2.safetensors",
|
| 967 |
+
"is_compatible": true,
|
| 968 |
+
"likes": 5,
|
| 969 |
+
"downloads": 227,
|
| 970 |
+
"new": true
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"image": "https://huggingface.co/Blib-la/used_leather_lora_sdxl/resolve/main/images/00089-3023579477.png",
|
| 974 |
+
"title": "Blib-la/used_leather_lora_sdxl",
|
| 975 |
+
"repo": "Blib-la/used_leather_lora_sdxl",
|
| 976 |
+
"trigger_word": "used leather",
|
| 977 |
+
"weights": "used_leather_sdxl_v1.safetensors",
|
| 978 |
+
"is_compatible": true,
|
| 979 |
+
"likes": 9,
|
| 980 |
+
"downloads": 647
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"image": "https://huggingface.co/Norod78/SDXL-Psychemelt-style-LoRA/resolve/main/images/00060-20240218175959-7784-Pikachu%20psychemelt%20style%20_lora_SDXL_Psychemelt_style_LoRA_0.8_.jpg",
|
| 984 |
+
"title": "Norod78/SDXL-Psychemelt-style-LoRA",
|
| 985 |
+
"repo": "Norod78/SDXL-Psychemelt-style-LoRA",
|
| 986 |
+
"trigger_word": "psychemelt style, in an LSD trip psychemelt style",
|
| 987 |
+
"weights": "SDXL_Psychemelt_style_LoRA-000007.safetensors",
|
| 988 |
+
"is_compatible": true,
|
| 989 |
+
"likes": 2,
|
| 990 |
+
"downloads": 140
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"image": "https://huggingface.co/Norod78/fruits-and-vegetables-gone-bad-sdxl-lora/resolve/main/6326319.jpeg",
|
| 994 |
+
"title": "Norod78/fruits-and-vegetables-gone-bad-sdxl-lora",
|
| 995 |
+
"repo": "Norod78/fruits-and-vegetables-gone-bad-sdxl-lora",
|
| 996 |
+
"trigger_word": "FaVGoneBad",
|
| 997 |
+
"weights": "Fruits_and_Vegetables_gone_bad_-_SDXL_LoRA-000007.safetensors",
|
| 998 |
+
"is_compatible": true,
|
| 999 |
+
"likes": 3,
|
| 1000 |
+
"downloads": 128
|
| 1001 |
+
},
|
| 1002 |
+
{
|
| 1003 |
+
"image": "https://huggingface.co/Norod78/SDXL-DollZ-Style-LoRA/resolve/main/images/00045-20240122220020-7827-Pikachu%20DollZ%20style%20_lora_DollZ_style_0.8_.jpg",
|
| 1004 |
+
"title": "Norod78/SDXL-DollZ-Style-LoRA",
|
| 1005 |
+
"repo": "Norod78/SDXL-DollZ-Style-LoRA",
|
| 1006 |
+
"trigger_word": "DollZ style",
|
| 1007 |
+
"weights": "DollZ_style.safetensors",
|
| 1008 |
+
"is_compatible": true,
|
| 1009 |
+
"likes": 1,
|
| 1010 |
+
"downloads": 80
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"image": "https://huggingface.co/Norod78/SDXL-LaundryArt-LoRA-r32/resolve/main/images/00012-20240117133725-7777-A%20crazy%20clown%20LaundryArt%20_lora_LaundryArt_LoRA_1_.jpg",
|
| 1014 |
+
"title": "Norod78/SDXL-LaundryArt-LoRA-r32",
|
| 1015 |
+
"repo": "Norod78/SDXL-LaundryArt-LoRA-r32",
|
| 1016 |
+
"trigger_word": "LaundryArt",
|
| 1017 |
+
"weights": "LaundryArt_LoRA-r32.safetensors",
|
| 1018 |
+
"is_compatible": true,
|
| 1019 |
+
"likes": 2,
|
| 1020 |
+
"downloads": 82,
|
| 1021 |
+
"new": true
|
| 1022 |
+
},
|
| 1023 |
+
{
|
| 1024 |
+
"image": "https://huggingface.co/Norod78/SDXL-HuWoof-LoRA/resolve/main/images/00013-20240113231444-7801-The%20Starry%20Night%20HuWoof%20_lora_SDXL_HuWoof_LoRA_1_.jpeg",
|
| 1025 |
+
"title": "Norod78/SDXL-HuWoof-LoRA",
|
| 1026 |
+
"repo": "Norod78/SDXL-HuWoof-LoRA",
|
| 1027 |
+
"trigger_word": "HuWoof",
|
| 1028 |
+
"weights": "SDXL_HuWoof_LoRA-000004.safetensors",
|
| 1029 |
+
"is_compatible": true,
|
| 1030 |
+
"likes": 1,
|
| 1031 |
+
"downloads": 73
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"image": "https://huggingface.co/Norod78/sdxl-chalkboarddrawing-lora/resolve/main/5329308.jpeg",
|
| 1035 |
+
"title": "Norod78/sdxl-chalkboarddrawing-lora",
|
| 1036 |
+
"repo": "Norod78/sdxl-chalkboarddrawing-lora",
|
| 1037 |
+
"trigger_word": null,
|
| 1038 |
+
"weights": "SDXL_ChalkBoardDrawing_LoRA_r8.safetensors",
|
| 1039 |
+
"is_compatible": true,
|
| 1040 |
+
"likes": 2,
|
| 1041 |
+
"downloads": 200
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"image": "https://huggingface.co/Norod78/SDXL-JojosoStyle-Lora-v2/resolve/main/4002501.jpeg",
|
| 1045 |
+
"title": "Norod78/SDXL-JojosoStyle-Lora-v2",
|
| 1046 |
+
"repo": "Norod78/SDXL-JojosoStyle-Lora-v2",
|
| 1047 |
+
"trigger_word": "Jojosostyle",
|
| 1048 |
+
"weights": "SDXL-JojosoStyle-Lora-v2-r16.safetensors",
|
| 1049 |
+
"is_compatible": true,
|
| 1050 |
+
"likes": 3,
|
| 1051 |
+
"downloads": 88
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"image": "https://huggingface.co/Norod78/sdxl-futurama-style-lora/resolve/main/2705525.jpeg",
|
| 1055 |
+
"title": "Norod78/sdxl-futurama-style-lora",
|
| 1056 |
+
"repo": "Norod78/sdxl-futurama-style-lora",
|
| 1057 |
+
"trigger_word": "FuturamaStyle",
|
| 1058 |
+
"weights": "SDXL-FuturamaStyle-Lora.safetensors",
|
| 1059 |
+
"is_compatible": true,
|
| 1060 |
+
"likes": 1,
|
| 1061 |
+
"downloads": 96
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"image": "https://huggingface.co/nerijs/pixelportraits192-XL-v1.0/resolve/main/images/pixel-0055-1623441747.png",
|
| 1065 |
+
"title": "nerijs/pixelportraits192-XL-v1.0",
|
| 1066 |
+
"repo": "nerijs/pixelportraits192-XL-v1.0",
|
| 1067 |
+
"trigger_word": "",
|
| 1068 |
+
"weights": "pixelportraits192-v1-2151.safetensors",
|
| 1069 |
+
"is_compatible": true,
|
| 1070 |
+
"likes": 2,
|
| 1071 |
+
"downloads": 75,
|
| 1072 |
+
"new": true
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"image":"https://huggingface.co/artificialguybr/ps1redmond-ps1-game-graphics-lora-for-sdxl/resolve/main/5177876.jpeg",
|
| 1076 |
+
"title": "artificialguybr/ps1redmond-ps1-game-graphics-lora-for-sdxl",
|
| 1077 |
+
"repo": "artificialguybr/ps1redmond-ps1-game-graphics-lora-for-sdxl",
|
| 1078 |
+
"trigger_word": "playstation 1 graphics, PS1 Game,",
|
| 1079 |
+
"weights": "PS1Redmond-PS1Game-Playstation1Graphics.safetensors",
|
| 1080 |
+
"is_compatible": true,
|
| 1081 |
+
"likes": 9,
|
| 1082 |
+
"downloads": 4152
|
| 1083 |
+
},
|
| 1084 |
+
{
|
| 1085 |
+
"repo": "multimodalart/handpaintedbrazil",
|
| 1086 |
+
"title": "multimodalart/handpaintedbrazil",
|
| 1087 |
+
"image": "https://huggingface.co/multimodalart/handpaintedbrazil/resolve/main/image-6.png",
|
| 1088 |
+
"trigger_word": "in the style of <s0><s1>",
|
| 1089 |
+
"weights": "pytorch_lora_weights.safetensors",
|
| 1090 |
+
"is_compatible": true,
|
| 1091 |
+
"likes": 9,
|
| 1092 |
+
"downloads": 155
|
| 1093 |
+
}
|
| 1094 |
+
]
|
packages.txt
CHANGED
|
@@ -1 +1,2 @@
|
|
| 1 |
ffmpeg
|
|
|
|
|
|
| 1 |
ffmpeg
|
| 2 |
+
libgl1-mesa-glx
|
requirements.txt
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
|
|
|
|
|
| 1 |
torch
|
| 2 |
torchvision
|
| 3 |
torchaudio
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
spaces
|
| 2 |
+
gradio
|
| 3 |
torch
|
| 4 |
torchvision
|
| 5 |
torchaudio
|
| 6 |
+
onnxruntime-gpu
|
| 7 |
+
git+https://github.com/huggingface/diffusers.git
|
| 8 |
+
transformers
|
| 9 |
+
accelerate
|
| 10 |
+
einops
|
| 11 |
+
peft
|
| 12 |
+
mediapipe
|
| 13 |
+
controlnet_aux
|
| 14 |
+
insightface
|
| 15 |
+
omegaconf
|
| 16 |
+
git+https://github.com/TencentARC/PhotoMaker.git
|
| 17 |
+
torchao
|
| 18 |
+
git+https://github.com/xhinker/sd_embed.git
|
| 19 |
+
clip_interrogator
|
| 20 |
+
git+https://github.com/mantrakp04/BasicSR-fix.git
|
| 21 |
+
git+https://github.com/TencentARC/GFPGAN.git
|
| 22 |
+
git+https://github.com/xinntao/Real-ESRGAN.git
|
| 23 |
+
aura_sr
|
src/tasks/images/init_sys.py
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import torch
|
| 3 |
+
from diffusers import (
|
| 4 |
+
DiffusionPipeline,
|
| 5 |
+
AutoencoderKL,
|
| 6 |
+
FluxControlNetModel,
|
| 7 |
+
FluxMultiControlNetModel,
|
| 8 |
+
ControlNetModel,
|
| 9 |
+
AutoPipelineForText2Image,
|
| 10 |
+
)
|
| 11 |
+
from diffusers.pipelines.stable_diffusion import StableDiffusionSafetyChecker
|
| 12 |
+
from huggingface_hub import hf_hub_download
|
| 13 |
+
from transformers import CLIPFeatureExtractor
|
| 14 |
+
from photomaker import FaceAnalysis2
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# Initialize System
|
| 18 |
+
def load_sd():
|
| 19 |
+
# device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 20 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 21 |
+
|
| 22 |
+
# Models
|
| 23 |
+
models = [
|
| 24 |
+
{
|
| 25 |
+
"repo_id": "black-forest-labs/FLUX.1-dev",
|
| 26 |
+
"loader": "flux",
|
| 27 |
+
"compute_type": torch.bfloat16,
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"repo_id": "SG161222/RealVisXL_V4.0",
|
| 31 |
+
"loader": "xl",
|
| 32 |
+
"compute_type": torch.float16,
|
| 33 |
+
}
|
| 34 |
+
]
|
| 35 |
+
|
| 36 |
+
for model in models:
|
| 37 |
+
try:
|
| 38 |
+
model["pipeline"] = AutoPipelineForText2Image.from_pretrained(
|
| 39 |
+
model['repo_id'],
|
| 40 |
+
torch_dtype = model['compute_type'],
|
| 41 |
+
safety_checker = None,
|
| 42 |
+
variant = "fp16"
|
| 43 |
+
).to(device)
|
| 44 |
+
model["pipeline"].enable_model_cpu_offload()
|
| 45 |
+
except:
|
| 46 |
+
model["pipeline"] = AutoPipelineForText2Image.from_pretrained(
|
| 47 |
+
model['repo_id'],
|
| 48 |
+
torch_dtype = model['compute_type'],
|
| 49 |
+
safety_checker = None
|
| 50 |
+
).to(device)
|
| 51 |
+
model["pipeline"].enable_model_cpu_offload()
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
# VAE n Refiner
|
| 55 |
+
sdxl_vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16).to(device)
|
| 56 |
+
refiner = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0", vae=sdxl_vae, torch_dtype=torch.float16, use_safetensors=True, variant="fp16").to(device)
|
| 57 |
+
refiner.enable_model_cpu_offload()
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
# Safety Checker
|
| 61 |
+
safety_checker = StableDiffusionSafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker").to(device)
|
| 62 |
+
feature_extractor = CLIPFeatureExtractor.from_pretrained("openai/clip-vit-base-patch32", from_pt=True)
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
# Controlnets
|
| 66 |
+
controlnet_models = [
|
| 67 |
+
{
|
| 68 |
+
"repo_id": "xinsir/controlnet-depth-sdxl-1.0",
|
| 69 |
+
"name": "depth_xl",
|
| 70 |
+
"layers": ["depth"],
|
| 71 |
+
"loader": "xl",
|
| 72 |
+
"compute_type": torch.float16,
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"repo_id": "xinsir/controlnet-canny-sdxl-1.0",
|
| 76 |
+
"name": "canny_xl",
|
| 77 |
+
"layers": ["canny"],
|
| 78 |
+
"loader": "xl",
|
| 79 |
+
"compute_type": torch.float16,
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"repo_id": "xinsir/controlnet-openpose-sdxl-1.0",
|
| 83 |
+
"name": "openpose_xl",
|
| 84 |
+
"layers": ["pose"],
|
| 85 |
+
"loader": "xl",
|
| 86 |
+
"compute_type": torch.float16,
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"repo_id": "xinsir/controlnet-scribble-sdxl-1.0",
|
| 90 |
+
"name": "scribble_xl",
|
| 91 |
+
"layers": ["scribble"],
|
| 92 |
+
"loader": "xl",
|
| 93 |
+
"compute_type": torch.float16,
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"repo_id": "Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro",
|
| 97 |
+
"name": "flux1_union_pro",
|
| 98 |
+
"layers": ["canny_fl", "tile_fl", "depth_fl", "blur_fl", "pose_fl", "gray_fl", "low_quality_fl"],
|
| 99 |
+
"loader": "flux-multi",
|
| 100 |
+
"compute_type": torch.bfloat16,
|
| 101 |
+
}
|
| 102 |
+
]
|
| 103 |
+
|
| 104 |
+
for controlnet in controlnet_models:
|
| 105 |
+
if controlnet["loader"] == "xl":
|
| 106 |
+
controlnet["controlnet"] = ControlNetModel.from_pretrained(
|
| 107 |
+
controlnet["repo_id"],
|
| 108 |
+
torch_dtype = controlnet['compute_type']
|
| 109 |
+
).to(device)
|
| 110 |
+
elif controlnet["loader"] == "flux-multi":
|
| 111 |
+
controlnet["controlnet"] = FluxMultiControlNetModel([FluxControlNetModel.from_pretrained(
|
| 112 |
+
controlnet["repo_id"],
|
| 113 |
+
torch_dtype = controlnet['compute_type']
|
| 114 |
+
).to(device)])
|
| 115 |
+
#TODO: Add support for flux only controlnet
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
# Face Detection (for PhotoMaker)
|
| 119 |
+
face_detector = FaceAnalysis2(providers=['CUDAExecutionProvider'], allowed_modules=['detection', 'recognition'])
|
| 120 |
+
face_detector.prepare(ctx_id=0, det_size=(640, 640))
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
# PhotoMaker V2 (for SDXL only)
|
| 124 |
+
photomaker_ckpt = hf_hub_download(repo_id="TencentARC/PhotoMaker-V2", filename="photomaker-v2.bin", repo_type="model")
|
| 125 |
+
|
| 126 |
+
return device, models, sdxl_vae, refiner, safety_checker, feature_extractor, controlnet_models, face_detector, photomaker_ckpt
|
| 127 |
+
|
| 128 |
+
device, models, sdxl_vae, refiner, safety_checker, feature_extractor, controlnet_models, face_detector, photomaker_ckpt = load_sd()
|
src/tasks/images/sd.py
ADDED
|
@@ -0,0 +1,327 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gc
|
| 2 |
+
import random
|
| 3 |
+
from typing import List, Optional
|
| 4 |
+
|
| 5 |
+
import torch
|
| 6 |
+
import numpy as np
|
| 7 |
+
from pydantic import BaseModel
|
| 8 |
+
from PIL import Image
|
| 9 |
+
from diffusers import (
|
| 10 |
+
FluxPipeline,
|
| 11 |
+
FluxImg2ImgPipeline,
|
| 12 |
+
FluxInpaintPipeline,
|
| 13 |
+
FluxControlNetPipeline,
|
| 14 |
+
StableDiffusionXLPipeline,
|
| 15 |
+
StableDiffusionXLImg2ImgPipeline,
|
| 16 |
+
StableDiffusionXLInpaintPipeline,
|
| 17 |
+
StableDiffusionXLControlNetPipeline,
|
| 18 |
+
StableDiffusionXLControlNetImg2ImgPipeline,
|
| 19 |
+
StableDiffusionXLControlNetInpaintPipeline,
|
| 20 |
+
AutoPipelineForText2Image,
|
| 21 |
+
AutoPipelineForImage2Image,
|
| 22 |
+
AutoPipelineForInpainting,
|
| 23 |
+
)
|
| 24 |
+
from diffusers.schedulers import *
|
| 25 |
+
from huggingface_hub import hf_hub_download
|
| 26 |
+
from safetensors.torch import load_file
|
| 27 |
+
from controlnet_aux.processor import Processor
|
| 28 |
+
from photomaker import (
|
| 29 |
+
PhotoMakerStableDiffusionXLPipeline,
|
| 30 |
+
PhotoMakerStableDiffusionXLControlNetPipeline,
|
| 31 |
+
analyze_faces
|
| 32 |
+
)
|
| 33 |
+
from sd_embed.embedding_funcs import get_weighted_text_embeddings_sdxl, get_weighted_text_embeddings_flux1
|
| 34 |
+
|
| 35 |
+
from .init_sys import device, models, refiner, safety_checker, feature_extractor, controlnet_models, face_detector
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
# Models
|
| 39 |
+
class ControlNetReq(BaseModel):
|
| 40 |
+
controlnets: List[str] # ["canny", "tile", "depth"]
|
| 41 |
+
control_images: List[Image.Image]
|
| 42 |
+
controlnet_conditioning_scale: List[float]
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
class SDReq(BaseModel):
|
| 46 |
+
model: str = ""
|
| 47 |
+
prompt: str = ""
|
| 48 |
+
negative_prompt: Optional[str] = "black-forest-labs/FLUX.1-dev"
|
| 49 |
+
fast_generation: Optional[bool] = True
|
| 50 |
+
loras: Optional[list] = []
|
| 51 |
+
embeddings: Optional[list] = []
|
| 52 |
+
resize_mode: Optional[str] = "resize_and_fill" # resize_only, crop_and_resize, resize_and_fill
|
| 53 |
+
scheduler = Optional[str] = "euler_fl"
|
| 54 |
+
height: int = 1024
|
| 55 |
+
width: int = 1024
|
| 56 |
+
num_images_per_prompt: int = 1
|
| 57 |
+
num_inference_steps: int = 8
|
| 58 |
+
guidance_scale: float = 3.5
|
| 59 |
+
seed: Optional[int] = 0
|
| 60 |
+
refiner: bool = False
|
| 61 |
+
vae: bool = True
|
| 62 |
+
controlnet_config: Optional[ControlNetReq] = None
|
| 63 |
+
photomaker_images: Optional[List[Image.Image]] = None
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
class SDImg2ImgReq(SDReq):
|
| 67 |
+
image: Image.Image
|
| 68 |
+
strength: float = 1.0
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
class SDInpaintReq(SDImg2ImgReq):
|
| 72 |
+
mask_image: Image.Image
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
# Helper functions
|
| 76 |
+
def get_controlnet(controlnet_config: ControlNetReq):
|
| 77 |
+
control_mode = []
|
| 78 |
+
controlnet = []
|
| 79 |
+
|
| 80 |
+
for m in controlnet_models:
|
| 81 |
+
for c in controlnet_config.controlnets:
|
| 82 |
+
if c in m["layers"]:
|
| 83 |
+
control_mode.append(m["layers"].index(c))
|
| 84 |
+
controlnet.append(m["controlnet"])
|
| 85 |
+
|
| 86 |
+
return controlnet, control_mode
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def get_pipe(request: SDReq | SDImg2ImgReq | SDInpaintReq):
|
| 90 |
+
for m in models:
|
| 91 |
+
if m["repo_id"] == request.model:
|
| 92 |
+
pipeline = m['pipeline']
|
| 93 |
+
controlnet, control_mode = get_controlnet(request.controlnet_config) if request.controlnet_config else (None, None)
|
| 94 |
+
|
| 95 |
+
pipe_args = {
|
| 96 |
+
"pipeline": pipeline,
|
| 97 |
+
"control_mode": control_mode,
|
| 98 |
+
}
|
| 99 |
+
if request.controlnet_config:
|
| 100 |
+
pipe_args["controlnet"] = controlnet
|
| 101 |
+
|
| 102 |
+
if isinstance(request, SDReq):
|
| 103 |
+
pipe_args['pipeline'] = AutoPipelineForText2Image.from_pipe(**pipe_args)
|
| 104 |
+
elif isinstance(request, SDImg2ImgReq):
|
| 105 |
+
pipe_args['pipeline'] = AutoPipelineForImage2Image.from_pipe(**pipe_args)
|
| 106 |
+
elif isinstance(request, SDInpaintReq):
|
| 107 |
+
pipe_args['pipeline'] = AutoPipelineForInpainting.from_pipe(**pipe_args)
|
| 108 |
+
else:
|
| 109 |
+
raise ValueError(f"Unknown request type: {type(request)}")
|
| 110 |
+
|
| 111 |
+
return pipe_args
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
def load_scheduler(pipeline, scheduler):
|
| 115 |
+
schedulers = {
|
| 116 |
+
"dpmpp_2m": (DPMSolverMultistepScheduler, {}),
|
| 117 |
+
"dpmpp_2m_k": (DPMSolverMultistepScheduler, {"use_karras_sigmas": True}),
|
| 118 |
+
"dpmpp_2m_sde": (DPMSolverMultistepScheduler, {"algorithm_type": "sde-dpmsolver++"}),
|
| 119 |
+
"dpmpp_2m_sde_k": (DPMSolverMultistepScheduler, {"algorithm_type": "sde-dpmsolver++", "use_karras_sigmas": True}),
|
| 120 |
+
"dpmpp_sde": (DPMSolverSinglestepScheduler, {}),
|
| 121 |
+
"dpmpp_sde_k": (DPMSolverSinglestepScheduler, {"use_karras_sigmas": True}),
|
| 122 |
+
"dpm2": (KDPM2DiscreteScheduler, {}),
|
| 123 |
+
"dpm2_k": (KDPM2DiscreteScheduler, {"use_karras_sigmas": True}),
|
| 124 |
+
"dpm2_a": (KDPM2AncestralDiscreteScheduler, {}),
|
| 125 |
+
"dpm2_a_k": (KDPM2AncestralDiscreteScheduler, {"use_karras_sigmas": True}),
|
| 126 |
+
"euler": (EulerDiscreteScheduler, {}),
|
| 127 |
+
"euler_a": (EulerAncestralDiscreteScheduler, {}),
|
| 128 |
+
"heun": (HeunDiscreteScheduler, {}),
|
| 129 |
+
"lms": (LMSDiscreteScheduler, {}),
|
| 130 |
+
"lms_k": (LMSDiscreteScheduler, {"use_karras_sigmas": True}),
|
| 131 |
+
"deis": (DEISMultistepScheduler, {}),
|
| 132 |
+
"unipc": (UniPCMultistepScheduler, {}),
|
| 133 |
+
"fm_euler": (FlowMatchEulerDiscreteScheduler, {}),
|
| 134 |
+
}
|
| 135 |
+
scheduler_class, kwargs = schedulers.get(scheduler, (None, {}))
|
| 136 |
+
|
| 137 |
+
if scheduler_class is not None:
|
| 138 |
+
scheduler = scheduler_class.from_config(pipeline.scheduler.config, **kwargs)
|
| 139 |
+
else:
|
| 140 |
+
raise ValueError(f"Unknown scheduler: {scheduler}")
|
| 141 |
+
|
| 142 |
+
return scheduler
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
def load_loras(pipeline, loras, fast_generation):
|
| 146 |
+
for i, lora in enumerate(loras):
|
| 147 |
+
pipeline.load_lora_weights(lora['repo_id'], adapter_name=f"lora_{i}")
|
| 148 |
+
adapter_names = [f"lora_{i}" for i in range(len(loras))]
|
| 149 |
+
adapter_weights = [lora['weight'] for lora in loras]
|
| 150 |
+
|
| 151 |
+
if fast_generation:
|
| 152 |
+
hyper_lora = hf_hub_download(
|
| 153 |
+
"ByteDance/Hyper-SD",
|
| 154 |
+
"Hyper-FLUX.1-dev-8steps-lora.safetensors" if isinstance(pipeline, FluxPipeline) else "Hyper-SDXL-2steps-lora.safetensors"
|
| 155 |
+
)
|
| 156 |
+
hyper_weight = 0.125 if isinstance(pipeline, FluxPipeline) else 1.0
|
| 157 |
+
pipeline.load_lora_weights(hyper_lora, adapter_name="hyper_lora")
|
| 158 |
+
adapter_names.append("hyper_lora")
|
| 159 |
+
adapter_weights.append(hyper_weight)
|
| 160 |
+
|
| 161 |
+
pipeline.set_adapters(adapter_names, adapter_weights)
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
def load_xl_embeddings(pipeline, embeddings):
|
| 165 |
+
for embedding in embeddings:
|
| 166 |
+
state_dict = load_file(hf_hub_download(embedding['repo_id']))
|
| 167 |
+
pipeline.load_textual_inversion(state_dict['clip_g'], token=embedding['token'], text_encoder=pipeline.text_encoder_2, tokenizer=pipeline.tokenizer_2)
|
| 168 |
+
pipeline.load_textual_inversion(state_dict["clip_l"], token=embedding['token'], text_encoder=pipeline.text_encoder, tokenizer=pipeline.tokenizer)
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
def resize_images(images: List[Image.Image], height: int, width: int, resize_mode: str):
|
| 172 |
+
for image in images:
|
| 173 |
+
if resize_mode == "resize_only":
|
| 174 |
+
image = image.resize((width, height))
|
| 175 |
+
elif resize_mode == "crop_and_resize":
|
| 176 |
+
image = image.crop((0, 0, width, height))
|
| 177 |
+
elif resize_mode == "resize_and_fill":
|
| 178 |
+
image = image.resize((width, height), Image.Resampling.LANCZOS)
|
| 179 |
+
|
| 180 |
+
return images
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
def get_controlnet_images(controlnets: List[str], control_images: List[Image.Image], height: int, width: int, resize_mode: str):
|
| 184 |
+
response_images = []
|
| 185 |
+
control_images = resize_images(control_images, height, width, resize_mode)
|
| 186 |
+
for controlnet, image in zip(controlnets, control_images):
|
| 187 |
+
if controlnet == "canny" or controlnet == "canny_xs" or controlnet == "canny_fl":
|
| 188 |
+
processor = Processor('canny')
|
| 189 |
+
elif controlnet == "depth" or controlnet == "depth_xs" or controlnet == "depth_fl":
|
| 190 |
+
processor = Processor('depth_midas')
|
| 191 |
+
elif controlnet == "pose" or controlnet == "pose_fl":
|
| 192 |
+
processor = Processor('openpose_full')
|
| 193 |
+
elif controlnet == "scribble":
|
| 194 |
+
processor = Processor('scribble')
|
| 195 |
+
else:
|
| 196 |
+
raise ValueError(f"Invalid Controlnet: {controlnet}")
|
| 197 |
+
|
| 198 |
+
response_images.append(processor(image, to_pil=True))
|
| 199 |
+
|
| 200 |
+
return response_images
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
def check_image_safety(images: List[Image.Image]):
|
| 204 |
+
safety_checker_input = feature_extractor(images, return_tensors="pt").to("cuda")
|
| 205 |
+
has_nsfw_concepts = safety_checker(
|
| 206 |
+
images=[images],
|
| 207 |
+
clip_input=safety_checker_input.pixel_values.to("cuda"),
|
| 208 |
+
)
|
| 209 |
+
|
| 210 |
+
return has_nsfw_concepts[1]
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
def get_prompt_attention(pipeline, prompt, negative_prompt):
|
| 214 |
+
if isinstance(pipeline, (FluxPipeline, FluxImg2ImgPipeline, FluxInpaintPipeline, FluxControlNetPipeline)):
|
| 215 |
+
prompt_embeds, pooled_prompt_embeds = get_weighted_text_embeddings_flux1(pipeline, prompt)
|
| 216 |
+
return prompt_embeds, None, pooled_prompt_embeds, None
|
| 217 |
+
elif isinstance(pipeline, StableDiffusionXLPipeline):
|
| 218 |
+
prompt_embeds, prompt_neg_embeds, pooled_prompt_embeds, negative_pooled_prompt_embeds = get_weighted_text_embeddings_sdxl(pipeline, prompt, negative_prompt)
|
| 219 |
+
return prompt_embeds, prompt_neg_embeds, pooled_prompt_embeds, negative_pooled_prompt_embeds
|
| 220 |
+
else:
|
| 221 |
+
raise ValueError(f"Invalid pipeline type: {type(pipeline)}")
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
def get_photomaker_images(photomaker_images: List[Image.Image], height: int, width: int, resize_mode: str):
|
| 225 |
+
image_input_ids = []
|
| 226 |
+
image_id_embeds = []
|
| 227 |
+
photomaker_images = resize_images(photomaker_images, height, width, resize_mode)
|
| 228 |
+
|
| 229 |
+
for image in photomaker_images:
|
| 230 |
+
image_input_ids.append(img)
|
| 231 |
+
img = np.array(image)[:, :, ::-1]
|
| 232 |
+
faces = analyze_faces(face_detector, image)
|
| 233 |
+
if len(faces) > 0:
|
| 234 |
+
image_id_embeds.append(torch.from_numpy(faces[0]['embeddings']))
|
| 235 |
+
else:
|
| 236 |
+
raise ValueError("No face detected in the image")
|
| 237 |
+
|
| 238 |
+
return image_input_ids, image_id_embeds
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
def cleanup(pipeline, loras = None, embeddings = None):
|
| 242 |
+
if loras:
|
| 243 |
+
pipeline.disable_lora()
|
| 244 |
+
pipeline.unload_lora_weights()
|
| 245 |
+
if embeddings:
|
| 246 |
+
pipeline.unload_textual_inversion()
|
| 247 |
+
gc.collect()
|
| 248 |
+
torch.cuda.empty_cache()
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
# Gen function
|
| 252 |
+
def gen_img(
|
| 253 |
+
request: SDReq | SDImg2ImgReq | SDInpaintReq
|
| 254 |
+
):
|
| 255 |
+
pipeline_args = get_pipe(request)
|
| 256 |
+
pipeline = pipeline_args['pipeline']
|
| 257 |
+
try:
|
| 258 |
+
pipeline.scheduler = load_scheduler(pipeline, request.scheduler)
|
| 259 |
+
|
| 260 |
+
load_loras(pipeline, request.loras, request.fast_generation)
|
| 261 |
+
load_xl_embeddings(pipeline, request.embeddings)
|
| 262 |
+
|
| 263 |
+
control_images = get_controlnet_images(request.controlnet_config.controlnets, request.controlnet_config.control_images, request.height, request.width, request.resize_mode) if request.controlnet_config else None
|
| 264 |
+
photomaker_images, photomaker_id_embeds = get_photomaker_images(request.photomaker_images, request.height, request.width) if request.photomaker_images else (None, None)
|
| 265 |
+
|
| 266 |
+
positive_prompt_embeds, negative_prompt_embeds, positive_prompt_pooled, negative_prompt_pooled = get_prompt_attention(pipeline, request.prompt, request.negative_prompt)
|
| 267 |
+
|
| 268 |
+
# Common args
|
| 269 |
+
args = {
|
| 270 |
+
'prompt_embeds': positive_prompt_embeds,
|
| 271 |
+
'pooled_prompt_embeds': positive_prompt_pooled,
|
| 272 |
+
'height': request.height,
|
| 273 |
+
'width': request.width,
|
| 274 |
+
'num_images_per_prompt': request.num_images_per_prompt,
|
| 275 |
+
'num_inference_steps': request.num_inference_steps,
|
| 276 |
+
'guidance_scale': request.guidance_scale,
|
| 277 |
+
'generator': [torch.Generator(device=device).manual_seed(request.seed + i) if not request.seed is any([None, 0, -1]) else torch.Generator(device=device).manual_seed(random.randint(0, 2**32 - 1)) for i in range(request.num_images_per_prompt)],
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
if isinstance(pipeline, any([StableDiffusionXLPipeline, StableDiffusionXLImg2ImgPipeline, StableDiffusionXLInpaintPipeline,
|
| 281 |
+
StableDiffusionXLControlNetPipeline, StableDiffusionXLControlNetImg2ImgPipeline, StableDiffusionXLControlNetInpaintPipeline])):
|
| 282 |
+
args['clip_skip'] = request.clip_skip
|
| 283 |
+
args['negative_prompt_embeds'] = negative_prompt_embeds
|
| 284 |
+
args['negative_pooled_prompt_embeds'] = negative_prompt_pooled
|
| 285 |
+
|
| 286 |
+
if isinstance(pipeline, FluxControlNetPipeline) and request.controlnet_config:
|
| 287 |
+
args['control_mode'] = pipeline_args['control_mode']
|
| 288 |
+
args['control_image'] = control_images
|
| 289 |
+
args['controlnet_conditioning_scale'] = request.controlnet_conditioning_scale
|
| 290 |
+
|
| 291 |
+
if not isinstance(pipeline, FluxControlNetPipeline) and request.controlnet_config:
|
| 292 |
+
args['controlnet_conditioning_scale'] = request.controlnet_conditioning_scale
|
| 293 |
+
|
| 294 |
+
if isinstance(request, SDReq):
|
| 295 |
+
args['image'] = control_images
|
| 296 |
+
elif isinstance(request, (SDImg2ImgReq, SDInpaintReq)):
|
| 297 |
+
args['control_image'] = control_images
|
| 298 |
+
|
| 299 |
+
if request.photomaker_images and isinstance(pipeline, any([PhotoMakerStableDiffusionXLPipeline, PhotoMakerStableDiffusionXLControlNetPipeline])):
|
| 300 |
+
args['input_id_images'] = photomaker_images
|
| 301 |
+
args['input_id_embeds'] = photomaker_id_embeds
|
| 302 |
+
args['start_merge_step'] = 10
|
| 303 |
+
|
| 304 |
+
if isinstance(request, SDImg2ImgReq):
|
| 305 |
+
args['image'] = resize_images([request.image], request.height, request.width, request.resize_mode)
|
| 306 |
+
args['strength'] = request.strength
|
| 307 |
+
elif isinstance(request, SDInpaintReq):
|
| 308 |
+
args['image'] = resize_images([request.image], request.height, request.width, request.resize_mode)
|
| 309 |
+
args['mask_image'] = resize_images([request.mask_image], request.height, request.width, request.resize_mode)
|
| 310 |
+
args['strength'] = request.strength
|
| 311 |
+
|
| 312 |
+
images = pipeline(**args).images
|
| 313 |
+
|
| 314 |
+
if request.refiner:
|
| 315 |
+
images = refiner(
|
| 316 |
+
prompt=request.prompt,
|
| 317 |
+
num_inference_steps=40,
|
| 318 |
+
denoising_start=0.7,
|
| 319 |
+
image=images.images
|
| 320 |
+
).images
|
| 321 |
+
|
| 322 |
+
cleanup(pipeline, request.loras, request.embeddings)
|
| 323 |
+
|
| 324 |
+
return images
|
| 325 |
+
except Exception as e:
|
| 326 |
+
cleanup(pipeline, request.loras, request.embeddings)
|
| 327 |
+
raise ValueError(f"Error generating image: {e}") from e
|
src/ui/images.py
CHANGED
|
@@ -1,14 +1,10 @@
|
|
| 1 |
-
import os
|
| 2 |
-
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
-
from .tabs import
|
| 6 |
-
flux_tab,
|
| 7 |
-
)
|
| 8 |
|
| 9 |
def image_tab():
|
| 10 |
with gr.Tabs():
|
| 11 |
-
with gr.Tab(
|
| 12 |
flux_tab()
|
| 13 |
-
with gr.Tab(
|
| 14 |
-
gr.Label("
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
from .tabs import flux_tab
|
|
|
|
|
|
|
| 4 |
|
| 5 |
def image_tab():
|
| 6 |
with gr.Tabs():
|
| 7 |
+
with gr.Tab("Flux"):
|
| 8 |
flux_tab()
|
| 9 |
+
with gr.Tab("SDXL"):
|
| 10 |
+
gr.Label("To be implemented")
|
src/ui/tabs/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
from .images.
|
|
|
|
| 1 |
+
from .images.flux import flux_tab
|
src/ui/tabs/images/flux.py
ADDED
|
@@ -0,0 +1,496 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
import random
|
| 3 |
+
from typing import List
|
| 4 |
+
|
| 5 |
+
import spaces
|
| 6 |
+
import gradio as gr
|
| 7 |
+
from huggingface_hub import ModelCard
|
| 8 |
+
|
| 9 |
+
from tasks.images.sd import gen_img, ControlNetReq, SDReq, SDImg2ImgReq, SDInpaintReq
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
models = ["black-forest-labs/FLUX.1-dev"]
|
| 13 |
+
loras = json.loads("data/images/lora/flux.json")
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def flux_tab():
|
| 17 |
+
"""
|
| 18 |
+
Create the image tab for Generative Image Generation Models
|
| 19 |
+
|
| 20 |
+
Args:
|
| 21 |
+
models: list
|
| 22 |
+
A list containing the models repository paths
|
| 23 |
+
gap_iol, gap_la, gap_le, gap_eio, gap_io: Optional[List[dict]]
|
| 24 |
+
A list of dictionaries containing the title and component for the custom gradio component
|
| 25 |
+
Example:
|
| 26 |
+
def gr_comp():
|
| 27 |
+
gr.Label("Hello World")
|
| 28 |
+
|
| 29 |
+
[
|
| 30 |
+
{
|
| 31 |
+
'title': "Title",
|
| 32 |
+
'component': gr_comp()
|
| 33 |
+
}
|
| 34 |
+
]
|
| 35 |
+
loras: list
|
| 36 |
+
A list of dictionaries containing the image and title for the Loras Gallery
|
| 37 |
+
Generally a loaded json file from the data folder
|
| 38 |
+
|
| 39 |
+
"""
|
| 40 |
+
def process_gaps(gaps: List[dict]):
|
| 41 |
+
for gap in gaps:
|
| 42 |
+
with gr.Accordion(gap['title']):
|
| 43 |
+
gap['component']
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
with gr.Row():
|
| 47 |
+
with gr.Column():
|
| 48 |
+
with gr.Group() as image_options:
|
| 49 |
+
model = gr.Dropdown(label="Models", choices=models, value=models[0], interactive=True)
|
| 50 |
+
prompt = gr.Textbox(lines=5, label="Prompt")
|
| 51 |
+
negative_prompt = gr.Textbox(label="Negative Prompt")
|
| 52 |
+
fast_generation = gr.Checkbox(label="Fast Generation (Hyper-SD) 🧪")
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
with gr.Accordion("Loras", open=True): # Lora Gallery
|
| 56 |
+
lora_gallery = gr.Gallery(
|
| 57 |
+
label="Gallery",
|
| 58 |
+
value=[(lora['image'], lora['title']) for lora in loras],
|
| 59 |
+
allow_preview=False,
|
| 60 |
+
columns=[3],
|
| 61 |
+
rows=[2],
|
| 62 |
+
type="pil",
|
| 63 |
+
)
|
| 64 |
+
|
| 65 |
+
with gr.Group():
|
| 66 |
+
with gr.Column():
|
| 67 |
+
with gr.Row():
|
| 68 |
+
custom_lora = gr.Textbox(label="Custom Lora", info="Enter a Huggingface repo path")
|
| 69 |
+
selected_lora = gr.Textbox(label="Selected Lora", info="Choose from the gallery or enter a custom LoRA")
|
| 70 |
+
|
| 71 |
+
custom_lora_info = gr.HTML(visible=False)
|
| 72 |
+
add_lora = gr.Button(value="Add LoRA")
|
| 73 |
+
|
| 74 |
+
enabled_loras = gr.State(value=[])
|
| 75 |
+
with gr.Group():
|
| 76 |
+
with gr.Row():
|
| 77 |
+
for i in range(6): # only support max 6 loras due to inference time
|
| 78 |
+
with gr.Column():
|
| 79 |
+
with gr.Column(scale=2):
|
| 80 |
+
globals()[f"lora_slider_{i}"] = gr.Slider(label=f"LoRA {i+1}", minimum=0, maximum=1, step=0.01, value=0.8, visible=False, interactive=True)
|
| 81 |
+
with gr.Column():
|
| 82 |
+
globals()[f"lora_remove_{i}"] = gr.Button(value="Remove LoRA", visible=False)
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
with gr.Accordion("Embeddings", open=False): # Embeddings
|
| 86 |
+
gr.Label("To be implemented")
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
with gr.Accordion("Image Options"): # Image Options
|
| 90 |
+
with gr.Tabs():
|
| 91 |
+
image_options = {
|
| 92 |
+
"img2img": "Upload Image",
|
| 93 |
+
"inpaint": "Upload Image",
|
| 94 |
+
"canny": "Upload Image",
|
| 95 |
+
"pose": "Upload Image",
|
| 96 |
+
"depth": "Upload Image",
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
for image_option, label in image_options.items():
|
| 100 |
+
with gr.Tab(image_option):
|
| 101 |
+
if not image_option in ['inpaint', 'scribble']:
|
| 102 |
+
globals()[f"{image_option}_image"] = gr.Image(label=label, type="pil")
|
| 103 |
+
elif image_option in ['inpaint', 'scribble']:
|
| 104 |
+
globals()[f"{image_option}_image"] = gr.ImageEditor(
|
| 105 |
+
label=label,
|
| 106 |
+
image_mode='RGB',
|
| 107 |
+
layers=False,
|
| 108 |
+
brush=gr.Brush(colors=["#FFFFFF"], color_mode="fixed") if image_option == 'inpaint' else gr.Brush(),
|
| 109 |
+
interactive=True,
|
| 110 |
+
type="pil",
|
| 111 |
+
)
|
| 112 |
+
|
| 113 |
+
# Image Strength (Co-relates to controlnet strength, strength for img2img n inpaint)
|
| 114 |
+
globals()[f"{image_option}_strength"] = gr.Slider(label="Strength", minimum=0, maximum=1, step=0.01, value=1.0, interactive=True)
|
| 115 |
+
|
| 116 |
+
resize_mode = gr.Radio(
|
| 117 |
+
label="Resize Mode",
|
| 118 |
+
choices=["crop and resize", "resize only", "resize and fill"],
|
| 119 |
+
value="resize and fill",
|
| 120 |
+
interactive=True
|
| 121 |
+
)
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
with gr.Column():
|
| 125 |
+
with gr.Group():
|
| 126 |
+
output_images = gr.Gallery(
|
| 127 |
+
label="Output Images",
|
| 128 |
+
value=[],
|
| 129 |
+
allow_preview=True,
|
| 130 |
+
type="pil",
|
| 131 |
+
interactive=True,
|
| 132 |
+
)
|
| 133 |
+
generate_images = gr.Button(value="Generate Images", variant="primary")
|
| 134 |
+
|
| 135 |
+
with gr.Accordion("Advance Settings", open=True):
|
| 136 |
+
with gr.Row():
|
| 137 |
+
scheduler = gr.Dropdown(
|
| 138 |
+
label="Scheduler",
|
| 139 |
+
choices = [
|
| 140 |
+
"fm_euler"
|
| 141 |
+
],
|
| 142 |
+
value="fm_euler",
|
| 143 |
+
interactive=True
|
| 144 |
+
)
|
| 145 |
+
|
| 146 |
+
with gr.Row():
|
| 147 |
+
for column in range(2):
|
| 148 |
+
with gr.Column():
|
| 149 |
+
options = [
|
| 150 |
+
("Height", "image_height", 64, 1024, 64, 1024, True),
|
| 151 |
+
("Width", "image_width", 64, 1024, 64, 1024, True),
|
| 152 |
+
("Num Images Per Prompt", "image_num_images_per_prompt", 1, 4, 1, 1, True),
|
| 153 |
+
("Num Inference Steps", "image_num_inference_steps", 1, 100, 1, 20, True),
|
| 154 |
+
("Clip Skip", "image_clip_skip", 0, 2, 1, 2, False),
|
| 155 |
+
("Guidance Scale", "image_guidance_scale", 0, 20, 0.5, 3.5, True),
|
| 156 |
+
("Seed", "image_seed", 0, 100000, 1, random.randint(0, 100000), True),
|
| 157 |
+
]
|
| 158 |
+
for label, var_name, min_val, max_val, step, value, visible in options[column::2]:
|
| 159 |
+
globals()[var_name] = gr.Slider(label=label, minimum=min_val, maximum=max_val, step=step, value=value, visible=visible, interactive=True)
|
| 160 |
+
|
| 161 |
+
with gr.Row():
|
| 162 |
+
refiner = gr.Checkbox(
|
| 163 |
+
label="Refiner 🧪",
|
| 164 |
+
value=False,
|
| 165 |
+
)
|
| 166 |
+
vae = gr.Checkbox(
|
| 167 |
+
label="VAE",
|
| 168 |
+
value=True,
|
| 169 |
+
)
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
# Events
|
| 173 |
+
# Base Options
|
| 174 |
+
fast_generation.change(update_fast_generation, [model, fast_generation], [image_guildance_scale, image_num_inference_steps]) # Fast Generation # type: ignore
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
# Lora Gallery
|
| 178 |
+
lora_gallery.select(selected_lora_from_gallery, None, selected_lora)
|
| 179 |
+
custom_lora.change(update_selected_lora, custom_lora, [custom_lora, selected_lora])
|
| 180 |
+
add_lora.click(add_to_enabled_loras, [model, selected_lora, enabled_loras], [selected_lora, custom_lora_info, enabled_loras])
|
| 181 |
+
enabled_loras.change(update_lora_sliders, enabled_loras, [lora_slider_0, lora_slider_1, lora_slider_2, lora_slider_3, lora_slider_4, lora_slider_5, lora_remove_0, lora_remove_1, lora_remove_2, lora_remove_3, lora_remove_4, lora_remove_5]) # type: ignore
|
| 182 |
+
|
| 183 |
+
for i in range(6):
|
| 184 |
+
globals()[f"lora_remove_{i}"].click(
|
| 185 |
+
lambda enabled_loras, index=i: remove_from_enabled_loras(enabled_loras, index),
|
| 186 |
+
[enabled_loras],
|
| 187 |
+
[enabled_loras]
|
| 188 |
+
)
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
# Generate Image
|
| 192 |
+
generate_images.click(
|
| 193 |
+
generate_image, # type: ignore
|
| 194 |
+
[
|
| 195 |
+
model, prompt, negative_prompt, fast_generation, enabled_loras,
|
| 196 |
+
lora_slider_0, lora_slider_1, lora_slider_2, lora_slider_3, lora_slider_4, lora_slider_5, # type: ignore
|
| 197 |
+
img2img_image, inpaint_image, canny_image, pose_image, depth_image, # type: ignore
|
| 198 |
+
img2img_strength, inpaint_strength, canny_strength, pose_strength, depth_strength, # type: ignore
|
| 199 |
+
resize_mode,
|
| 200 |
+
scheduler, image_height, image_width, image_num_images_per_prompt, # type: ignore
|
| 201 |
+
image_num_inference_steps, image_guidance_scale, image_seed, # type: ignore
|
| 202 |
+
refiner, vae
|
| 203 |
+
],
|
| 204 |
+
[output_images]
|
| 205 |
+
)
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
# Functions
|
| 209 |
+
def update_fast_generation(model, fast_generation):
|
| 210 |
+
if fast_generation:
|
| 211 |
+
return (
|
| 212 |
+
gr.update(
|
| 213 |
+
value=3.5
|
| 214 |
+
),
|
| 215 |
+
gr.update(
|
| 216 |
+
value=8
|
| 217 |
+
)
|
| 218 |
+
)
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
def selected_lora_from_gallery(evt: gr.SelectData):
|
| 222 |
+
return (
|
| 223 |
+
gr.update(
|
| 224 |
+
value=evt.index
|
| 225 |
+
)
|
| 226 |
+
)
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
def update_selected_lora(custom_lora):
|
| 230 |
+
link = custom_lora.split("/")
|
| 231 |
+
|
| 232 |
+
if len(link) == 2:
|
| 233 |
+
model_card = ModelCard.load(custom_lora)
|
| 234 |
+
trigger_word = model_card.data.get("instance_prompt", "")
|
| 235 |
+
image_url = f"""https://huggingface.co/{custom_lora}/resolve/main/{model_card.data.get("widget", [{}])[0].get("output", {}).get("url", None)}"""
|
| 236 |
+
|
| 237 |
+
custom_lora_info_css = """
|
| 238 |
+
<style>
|
| 239 |
+
.custom-lora-info {
|
| 240 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
| 241 |
+
background: linear-gradient(135deg, #4a90e2, #7b61ff);
|
| 242 |
+
color: white;
|
| 243 |
+
padding: 16px;
|
| 244 |
+
border-radius: 8px;
|
| 245 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 246 |
+
margin: 16px 0;
|
| 247 |
+
}
|
| 248 |
+
.custom-lora-header {
|
| 249 |
+
font-size: 18px;
|
| 250 |
+
font-weight: 600;
|
| 251 |
+
margin-bottom: 12px;
|
| 252 |
+
}
|
| 253 |
+
.custom-lora-content {
|
| 254 |
+
display: flex;
|
| 255 |
+
align-items: center;
|
| 256 |
+
background-color: rgba(255, 255, 255, 0.1);
|
| 257 |
+
border-radius: 6px;
|
| 258 |
+
padding: 12px;
|
| 259 |
+
}
|
| 260 |
+
.custom-lora-image {
|
| 261 |
+
width: 80px;
|
| 262 |
+
height: 80px;
|
| 263 |
+
object-fit: cover;
|
| 264 |
+
border-radius: 6px;
|
| 265 |
+
margin-right: 16px;
|
| 266 |
+
}
|
| 267 |
+
.custom-lora-text h3 {
|
| 268 |
+
margin: 0 0 8px 0;
|
| 269 |
+
font-size: 16px;
|
| 270 |
+
font-weight: 600;
|
| 271 |
+
}
|
| 272 |
+
.custom-lora-text small {
|
| 273 |
+
font-size: 14px;
|
| 274 |
+
opacity: 0.9;
|
| 275 |
+
}
|
| 276 |
+
.custom-trigger-word {
|
| 277 |
+
background-color: rgba(255, 255, 255, 0.2);
|
| 278 |
+
padding: 2px 6px;
|
| 279 |
+
border-radius: 4px;
|
| 280 |
+
font-weight: 600;
|
| 281 |
+
}
|
| 282 |
+
</style>
|
| 283 |
+
"""
|
| 284 |
+
|
| 285 |
+
custom_lora_info_html = f"""
|
| 286 |
+
<div class="custom-lora-info">
|
| 287 |
+
<div class="custom-lora-header">Custom LoRA: {custom_lora}</div>
|
| 288 |
+
<div class="custom-lora-content">
|
| 289 |
+
<img class="custom-lora-image" src="{image_url}" alt="LoRA preview">
|
| 290 |
+
<div class="custom-lora-text">
|
| 291 |
+
<h3>{link[1].replace("-", " ").replace("_", " ")}</h3>
|
| 292 |
+
<small>{"Using: <span class='custom-trigger-word'>"+trigger_word+"</span> as the trigger word" if trigger_word else "No trigger word found. If there's a trigger word, include it in your prompt"}</small>
|
| 293 |
+
</div>
|
| 294 |
+
</div>
|
| 295 |
+
</div>
|
| 296 |
+
"""
|
| 297 |
+
|
| 298 |
+
custom_lora_info_html = f"{custom_lora_info_css}{custom_lora_info_html}"
|
| 299 |
+
|
| 300 |
+
return (
|
| 301 |
+
gr.update( # selected_lora
|
| 302 |
+
value=custom_lora,
|
| 303 |
+
),
|
| 304 |
+
gr.update( # custom_lora_info
|
| 305 |
+
value=custom_lora_info_html,
|
| 306 |
+
visible=True
|
| 307 |
+
)
|
| 308 |
+
)
|
| 309 |
+
|
| 310 |
+
else:
|
| 311 |
+
return (
|
| 312 |
+
gr.update( # selected_lora
|
| 313 |
+
value=custom_lora,
|
| 314 |
+
),
|
| 315 |
+
gr.update( # custom_lora_info
|
| 316 |
+
value=custom_lora_info_html if len(link) == 0 else "",
|
| 317 |
+
visible=False
|
| 318 |
+
)
|
| 319 |
+
)
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
def add_to_enabled_loras(model, selected_lora, enabled_loras):
|
| 323 |
+
lora_data = loras
|
| 324 |
+
try:
|
| 325 |
+
selected_lora = int(selected_lora)
|
| 326 |
+
|
| 327 |
+
if 0 <= selected_lora: # is the index of the lora in the gallery
|
| 328 |
+
lora_info = lora_data[selected_lora]
|
| 329 |
+
enabled_loras.append({
|
| 330 |
+
"repo_id": lora_info["repo"],
|
| 331 |
+
"trigger_word": lora_info["trigger_word"]
|
| 332 |
+
})
|
| 333 |
+
except ValueError:
|
| 334 |
+
link = selected_lora.split("/")
|
| 335 |
+
if len(link) == 2:
|
| 336 |
+
model_card = ModelCard.load(selected_lora)
|
| 337 |
+
trigger_word = model_card.data.get("instance_prompt", "")
|
| 338 |
+
enabled_loras.append({
|
| 339 |
+
"repo_id": selected_lora,
|
| 340 |
+
"trigger_word": trigger_word
|
| 341 |
+
})
|
| 342 |
+
|
| 343 |
+
return (
|
| 344 |
+
gr.update( # selected_lora
|
| 345 |
+
value=""
|
| 346 |
+
),
|
| 347 |
+
gr.update( # custom_lora_info
|
| 348 |
+
value="",
|
| 349 |
+
visible=False
|
| 350 |
+
),
|
| 351 |
+
gr.update( # enabled_loras
|
| 352 |
+
value=enabled_loras
|
| 353 |
+
)
|
| 354 |
+
)
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
def update_lora_sliders(enabled_loras):
|
| 358 |
+
sliders = []
|
| 359 |
+
remove_buttons = []
|
| 360 |
+
|
| 361 |
+
for lora in enabled_loras:
|
| 362 |
+
sliders.append(
|
| 363 |
+
gr.update(
|
| 364 |
+
label=lora.get("repo_id", ""),
|
| 365 |
+
info=f"Trigger Word: {lora.get('trigger_word', '')}",
|
| 366 |
+
visible=True,
|
| 367 |
+
interactive=True
|
| 368 |
+
)
|
| 369 |
+
)
|
| 370 |
+
remove_buttons.append(
|
| 371 |
+
gr.update(
|
| 372 |
+
visible=True,
|
| 373 |
+
interactive=True
|
| 374 |
+
)
|
| 375 |
+
)
|
| 376 |
+
|
| 377 |
+
if len(sliders) < 6:
|
| 378 |
+
for i in range(len(sliders), 6):
|
| 379 |
+
sliders.append(
|
| 380 |
+
gr.update(
|
| 381 |
+
visible=False
|
| 382 |
+
)
|
| 383 |
+
)
|
| 384 |
+
remove_buttons.append(
|
| 385 |
+
gr.update(
|
| 386 |
+
visible=False
|
| 387 |
+
)
|
| 388 |
+
)
|
| 389 |
+
|
| 390 |
+
return *sliders, *remove_buttons
|
| 391 |
+
|
| 392 |
+
|
| 393 |
+
def remove_from_enabled_loras(enabled_loras, index):
|
| 394 |
+
enabled_loras.pop(index)
|
| 395 |
+
return (
|
| 396 |
+
gr.update(
|
| 397 |
+
value=enabled_loras
|
| 398 |
+
)
|
| 399 |
+
)
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
@spaces.GPU
|
| 403 |
+
def generate_image(
|
| 404 |
+
model, prompt, negative_prompt, fast_generation, enabled_loras,
|
| 405 |
+
lora_slider_0, lora_slider_1, lora_slider_2, lora_slider_3, lora_slider_4, lora_slider_5,
|
| 406 |
+
img2img_image, inpaint_image, canny_image, pose_image, depth_image,
|
| 407 |
+
img2img_strength, inpaint_strength, canny_strength, pose_strength, depth_strength,
|
| 408 |
+
resize_mode,
|
| 409 |
+
scheduler, image_height, image_width, image_num_images_per_prompt,
|
| 410 |
+
image_num_inference_steps, image_guidance_scale, image_seed,
|
| 411 |
+
refiner, vae
|
| 412 |
+
):
|
| 413 |
+
base_args = {
|
| 414 |
+
"model": model,
|
| 415 |
+
"prompt": prompt,
|
| 416 |
+
"negative_prompt": negative_prompt,
|
| 417 |
+
"fast_generation": fast_generation,
|
| 418 |
+
"loras": None,
|
| 419 |
+
"resize_mode": resize_mode,
|
| 420 |
+
"scheduler": scheduler,
|
| 421 |
+
"height": int(image_height),
|
| 422 |
+
"width": int(image_width),
|
| 423 |
+
"num_images_per_prompt": float(image_num_images_per_prompt),
|
| 424 |
+
"num_inference_steps": float(image_num_inference_steps),
|
| 425 |
+
"guidance_scale": float(image_guidance_scale),
|
| 426 |
+
"seed": int(image_seed),
|
| 427 |
+
"refiner": refiner,
|
| 428 |
+
"vae": vae,
|
| 429 |
+
"controlnet_config": None,
|
| 430 |
+
}
|
| 431 |
+
base_args = SDReq(**base_args)
|
| 432 |
+
|
| 433 |
+
if len(enabled_loras) > 0:
|
| 434 |
+
base_args.loras = []
|
| 435 |
+
for enabled_lora, lora_slider in zip(enabled_loras, [lora_slider_0, lora_slider_1, lora_slider_2, lora_slider_3, lora_slider_4, lora_slider_5]):
|
| 436 |
+
if enabled_lora.get("repo_id", None):
|
| 437 |
+
base_args.loras.append(
|
| 438 |
+
{
|
| 439 |
+
"repo_id": enabled_lora["repo_id"],
|
| 440 |
+
"weight": lora_slider
|
| 441 |
+
}
|
| 442 |
+
)
|
| 443 |
+
|
| 444 |
+
image = None
|
| 445 |
+
mask_image = None
|
| 446 |
+
strength = None
|
| 447 |
+
|
| 448 |
+
if img2img_image:
|
| 449 |
+
image = img2img_image
|
| 450 |
+
strength = float(img2img_strength)
|
| 451 |
+
|
| 452 |
+
base_args = SDImg2ImgReq(
|
| 453 |
+
**base_args.__dict__,
|
| 454 |
+
image=image,
|
| 455 |
+
strength=strength
|
| 456 |
+
)
|
| 457 |
+
elif inpaint_image:
|
| 458 |
+
image = inpaint_image['background'] if not all(pixel == (0, 0, 0) for pixel in list(inpaint_image['background'].getdata())) else None
|
| 459 |
+
mask_image = inpaint_image['layers'][0] if image else None
|
| 460 |
+
strength = float(inpaint_strength)
|
| 461 |
+
|
| 462 |
+
base_args = SDInpaintReq(
|
| 463 |
+
**base_args.__dict__,
|
| 464 |
+
image=image,
|
| 465 |
+
mask_image=mask_image,
|
| 466 |
+
strength=strength
|
| 467 |
+
)
|
| 468 |
+
elif any([canny_image, pose_image, depth_image]):
|
| 469 |
+
base_args.controlnet_config = ControlNetReq(
|
| 470 |
+
controlnets=[],
|
| 471 |
+
control_images=[],
|
| 472 |
+
controlnet_conditioning_scale=[]
|
| 473 |
+
)
|
| 474 |
+
|
| 475 |
+
if canny_image:
|
| 476 |
+
base_args.controlnet_config.controlnets.append("canny_fl")
|
| 477 |
+
base_args.controlnet_config.control_images.append(canny_image)
|
| 478 |
+
base_args.controlnet_config.controlnet_conditioning_scale.append(float(canny_strength))
|
| 479 |
+
if pose_image:
|
| 480 |
+
base_args.controlnet_config.controlnets.append("pose_fl")
|
| 481 |
+
base_args.controlnet_config.control_images.append(pose_image)
|
| 482 |
+
base_args.controlnet_config.controlnet_conditioning_scale.append(float(pose_strength))
|
| 483 |
+
if depth_image:
|
| 484 |
+
base_args.controlnet_config.controlnets.append("depth_fl")
|
| 485 |
+
base_args.controlnet_config.control_images.append(depth_image)
|
| 486 |
+
base_args.controlnet_config.controlnet_conditioning_scale.append(float(depth_strength))
|
| 487 |
+
else:
|
| 488 |
+
base_args = SDReq(**base_args.__dict__)
|
| 489 |
+
|
| 490 |
+
images = gen_img(base_args)
|
| 491 |
+
|
| 492 |
+
return (
|
| 493 |
+
gr.update(
|
| 494 |
+
value=images
|
| 495 |
+
)
|
| 496 |
+
)
|
src/ui/tabs/images/flux_tab.py
DELETED
|
@@ -1,10 +0,0 @@
|
|
| 1 |
-
import gradio as gr
|
| 2 |
-
|
| 3 |
-
def flux_tab():
|
| 4 |
-
with gr.Row():
|
| 5 |
-
with gr.Column():
|
| 6 |
-
prompt = gr.Textbox(lines=5, label="Prompt")
|
| 7 |
-
|
| 8 |
-
with gr.Column():
|
| 9 |
-
with gr.Group():
|
| 10 |
-
output_image = gr.Image()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|