multimodalart HF Staff commited on
Commit
a480577
·
verified ·
1 Parent(s): d759633

Light Migration

Browse files
Files changed (1) hide show
  1. app.py +25 -2
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
  """)
@@ -272,7 +271,31 @@ with gr.Blocks() as demo:
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
  """)
 
271
  with gr.Column():
272
  result = gr.Image(label="Output Image", interactive=False)
273
  output_seed = gr.Number(label="Seed Used", interactive=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,