Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -111,40 +111,15 @@ except Exception as e:
|
|
| 111 |
MAX_SEED = np.iinfo(np.int32).max
|
| 112 |
|
| 113 |
ADAPTER_SPECS = {
|
| 114 |
-
"
|
| 115 |
"repo": "prithivMLmods/Qwen-Image-Edit-2511-Object-Adder",
|
| 116 |
"weights": "Qwen-Image-Edit-2511-Object-Adder.safetensors",
|
| 117 |
-
"adapter_name": "
|
| 118 |
},
|
| 119 |
-
"
|
| 120 |
-
"repo": "
|
| 121 |
"weights": "Qwen-Image-Edit-2509-Photo-to-Anime_000001000.safetensors",
|
| 122 |
-
"adapter_name": "
|
| 123 |
-
},
|
| 124 |
-
"Any-Pose": {
|
| 125 |
-
"repo": "lilylilith/AnyPose",
|
| 126 |
-
"weights": "2511-AnyPose-helper-00006000.safetensors",
|
| 127 |
-
"adapter_name": "any-pose"
|
| 128 |
-
},
|
| 129 |
-
"Light-Migration": {
|
| 130 |
-
"repo": "dx8152/Qwen-Edit-2509-Light-Migration",
|
| 131 |
-
"weights": "参考色调.safetensors",
|
| 132 |
-
"adapter_name": "light-migration"
|
| 133 |
-
},
|
| 134 |
-
"Upscaler": {
|
| 135 |
-
"repo": "starsfriday/Qwen-Image-Edit-2511-Upscale2K",
|
| 136 |
-
"weights": "qwen_image_edit_2511_upscale.safetensors",
|
| 137 |
-
"adapter_name": "upscale-2k"
|
| 138 |
-
},
|
| 139 |
-
"Style-Transfer": {
|
| 140 |
-
"repo": "zooeyy/Style-Transfer",
|
| 141 |
-
"weights": "Style Transfer-Alpha-V0.1.safetensors",
|
| 142 |
-
"adapter_name": "style-transfer"
|
| 143 |
-
},
|
| 144 |
-
"Manga-Tone": {
|
| 145 |
-
"repo": "nappa114514/Qwen-Image-Edit-2509-Manga-Tone",
|
| 146 |
-
"weights": "tone001.safetensors",
|
| 147 |
-
"adapter_name": "manga-tone"
|
| 148 |
},
|
| 149 |
}
|
| 150 |
|
|
@@ -330,13 +305,10 @@ with gr.Blocks() as demo:
|
|
| 330 |
|
| 331 |
gr.Examples(
|
| 332 |
examples=[
|
| 333 |
-
[["examples/
|
| 334 |
-
[["examples/
|
| 335 |
-
[["examples/
|
| 336 |
-
[["examples/
|
| 337 |
-
[["examples/ST1.jpg", "examples/ST2.jpg"], "Convert Image 1 to the style of Image 2.", "Style-Transfer"],
|
| 338 |
-
[["examples/L1.jpg", "examples/L2.jpg"], "Refer to the color tone, remove the original lighting from Image 1, and relight Image 1 based on the lighting and color tone of Image 2.", "Light-Migration"],
|
| 339 |
-
[["examples/P1.jpg", "examples/P2.jpg"], "Make the person in image 1 do the exact same pose of the person in image 2. Changing the style and background of the image of the person in image 1 is undesirable, so don't do it.", "Any-Pose"],
|
| 340 |
],
|
| 341 |
inputs=[images, prompt, lora_adapter],
|
| 342 |
outputs=[output_image, seed],
|
|
|
|
| 111 |
MAX_SEED = np.iinfo(np.int32).max
|
| 112 |
|
| 113 |
ADAPTER_SPECS = {
|
| 114 |
+
"Qwen-Image-Edit-2511-Object-Adder": {
|
| 115 |
"repo": "prithivMLmods/Qwen-Image-Edit-2511-Object-Adder",
|
| 116 |
"weights": "Qwen-Image-Edit-2511-Object-Adder.safetensors",
|
| 117 |
+
"adapter_name": "object-adder"
|
| 118 |
},
|
| 119 |
+
"Qwen-Image-Edit-2511-Object-Remover": {
|
| 120 |
+
"repo": "prithivMLmods/Qwen-Image-Edit-2511-Object-Remover",
|
| 121 |
"weights": "Qwen-Image-Edit-2509-Photo-to-Anime_000001000.safetensors",
|
| 122 |
+
"adapter_name": "object-remover"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
},
|
| 124 |
}
|
| 125 |
|
|
|
|
| 305 |
|
| 306 |
gr.Examples(
|
| 307 |
examples=[
|
| 308 |
+
[["examples/A.jpg"], "Add the slim rectangular transparent frame sunglasses to the image while preserving the background lighting and surrounding elements maintaining realism and original details.", "Qwen-Image-Edit-2511-Object-Adder"],
|
| 309 |
+
[["examples/B.jpeg"], "Remove the necklace and goggles from the image while preserving the background and remaining elements, maintaining realism and original details.", "Qwen-Image-Edit-2511-Object-Remover"],
|
| 310 |
+
[["examples/C.jpg"], "Add the leather cowboy cap to the image while preserving the background lighting and surrounding elements maintaining realism and original details.", "Qwen-Image-Edit-2511-Object-Adder"],
|
| 311 |
+
[["examples/D.jpg"], "Add the batman logo to the image while preserving the background lighting and surrounding elements maintaining realism and original details.", "Qwen-Image-Edit-2511-Object-Adder"],
|
|
|
|
|
|
|
|
|
|
| 312 |
],
|
| 313 |
inputs=[images, prompt, lora_adapter],
|
| 314 |
outputs=[output_image, seed],
|