Files changed (11) hide show
  1. .gitattributes +8 -0
  2. app.py +26 -3
  3. character_1.png +3 -0
  4. character_2.png +3 -0
  5. light_1.png +3 -0
  6. light_2.png +3 -0
  7. light_3.jpeg +0 -0
  8. light_4.png +3 -0
  9. light_5.png +3 -0
  10. light_6.png +3 -0
  11. place_1.png +3 -0
.gitattributes CHANGED
@@ -38,3 +38,11 @@ grumpy.png filter=lfs diff=lfs merge=lfs -text
38
  wednesday.png filter=lfs diff=lfs merge=lfs -text
39
  monkey.jpg filter=lfs diff=lfs merge=lfs -text
40
  tool_of_the_sea.png filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
38
  wednesday.png filter=lfs diff=lfs merge=lfs -text
39
  monkey.jpg filter=lfs diff=lfs merge=lfs -text
40
  tool_of_the_sea.png filter=lfs diff=lfs merge=lfs -text
41
+ character_1.png filter=lfs diff=lfs merge=lfs -text
42
+ character_2.png filter=lfs diff=lfs merge=lfs -text
43
+ light_1.png filter=lfs diff=lfs merge=lfs -text
44
+ light_2.png filter=lfs diff=lfs merge=lfs -text
45
+ light_4.png filter=lfs diff=lfs merge=lfs -text
46
+ light_5.png filter=lfs diff=lfs merge=lfs -text
47
+ light_6.png filter=lfs diff=lfs merge=lfs -text
48
+ place_1.png filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -201,7 +201,6 @@ with gr.Blocks() as demo:
201
  gr.Markdown("## 💡 Qwen Image Edit — Light Migration")
202
  gr.Markdown("""
203
  Transfer lighting and color tones from a reference image to your source image ✨
204
-
205
  Using [dx8152's Qwen-Edit-2509-Light-Migration LoRA](https://huggingface.co/dx8152/Qwen-Edit-2509-Light-Migration)
206
  and [Phr00t/Qwen-Image-Edit-Rapid-AIO](https://huggingface.co/Phr00t/Qwen-Image-Edit-Rapid-AIO/tree/main) for 4-step inference 💨
207
  """)
@@ -271,8 +270,32 @@ with gr.Blocks() as demo:
271
 
272
  with gr.Column():
273
  result = gr.Image(label="Output Image", interactive=False)
274
- output_seed = gr.Number(label="Seed Used", interactive=False)
275
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
276
  inputs = [
277
  image, light_source, prompt,
278
  seed, randomize_seed, true_guidance_scale,
 
201
  gr.Markdown("## 💡 Qwen Image Edit — Light Migration")
202
  gr.Markdown("""
203
  Transfer lighting and color tones from a reference image to your source image ✨
 
204
  Using [dx8152's Qwen-Edit-2509-Light-Migration LoRA](https://huggingface.co/dx8152/Qwen-Edit-2509-Light-Migration)
205
  and [Phr00t/Qwen-Image-Edit-Rapid-AIO](https://huggingface.co/Phr00t/Qwen-Image-Edit-Rapid-AIO/tree/main) for 4-step inference 💨
206
  """)
 
270
 
271
  with gr.Column():
272
  result = gr.Image(label="Output Image", interactive=False)
273
+ output_seed = gr.Number(label="Seed Used", interactive=False, visible=False)
274
+
275
+ gr.Examples(
276
+ examples=[
277
+ # Character 1 with 3 different lights
278
+ ["character_1.png", "light_1.png"],
279
+ ["character_1.png", "light_3.jpeg"],
280
+ ["character_1.png", "light_5.png"],
281
+ # Character 2 with 3 different lights
282
+ ["character_2.png", "light_2.png"],
283
+ ["character_2.png", "light_4.png"],
284
+ ["character_2.png", "light_6.png"],
285
+ # Place 1 with 3 different lights
286
+ ["place_1.png", "light_1.png"],
287
+ ["place_1.png", "light_4.png"],
288
+ ["place_1.png", "light_6.png"],
289
+ ],
290
+ inputs=[
291
+ image, light_source
292
+ ],
293
+ outputs=outputs,
294
+ fn=infer_light_migration,
295
+ cache_examples=True,
296
+ cache_mode="lazy",
297
+ elem_id="examples"
298
+ )
299
  inputs = [
300
  image, light_source, prompt,
301
  seed, randomize_seed, true_guidance_scale,
character_1.png ADDED

Git LFS Details

  • SHA256: 7e144fab25d112fd014789ccca1dc35d9dce437999eea7dd6cf1af4d8593d736
  • Pointer size: 131 Bytes
  • Size of remote file: 920 kB
character_2.png ADDED

Git LFS Details

  • SHA256: 83a1152bf3a6909bb6c4e122504fdbb5b2221f946e408f923847a88992cbdb5b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.46 MB
light_1.png ADDED

Git LFS Details

  • SHA256: 4d2ebbcf51e19a6c950fe4b0f49499439d65821aac0ae1a0ebc899357ce7d82d
  • Pointer size: 131 Bytes
  • Size of remote file: 517 kB
light_2.png ADDED

Git LFS Details

  • SHA256: 4280a0020579a9299e65458e5434cacc86798cf6408ed6e1f2d6143550ac4649
  • Pointer size: 132 Bytes
  • Size of remote file: 1.01 MB
light_3.jpeg ADDED
light_4.png ADDED

Git LFS Details

  • SHA256: 5edc56d13288590c160b2f8d6c51b346ee33c5662e84b99bb2b0ebfd10b5bbfc
  • Pointer size: 132 Bytes
  • Size of remote file: 2.79 MB
light_5.png ADDED

Git LFS Details

  • SHA256: 420260f824aeba1df887249682ab99be29f8ecd4b509be926344044568b31fe4
  • Pointer size: 131 Bytes
  • Size of remote file: 594 kB
light_6.png ADDED

Git LFS Details

  • SHA256: e3026029e3db5356b1707402715a693cf92b434298b938af6e1211bff38edc29
  • Pointer size: 132 Bytes
  • Size of remote file: 1.25 MB
place_1.png ADDED

Git LFS Details

  • SHA256: e51b5a0df75f155ffcc599f6a36a6520408417cb41478e2b50fa3a4522ac8acf
  • Pointer size: 132 Bytes
  • Size of remote file: 1.12 MB