prithivMLmods commited on
Commit
f5fe2c2
·
verified ·
1 Parent(s): 0860988

update app

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -121,9 +121,9 @@ pipe.load_lora_weights("dx8152/Qwen-Image-Edit-2509-Light_restoration",
121
  pipe.load_lora_weights("dx8152/Qwen-Image-Edit-2509-Relight",
122
  weight_name="Qwen-Edit-Relight.safetensors",
123
  adapter_name="relight")
124
- pipe.load_lora_weights("eigen-ai-labs/eigen-banana-qwen-image-edit",
125
- weight_name="eigen-banana-qwen-image-edit-fp16-lora.safetensors",
126
- adapter_name="eigen-banana")
127
  pipe.load_lora_weights("tlennon-ie/qwen-edit-skin",
128
  weight_name="qwen-edit-skin_1.1_000002750.safetensors",
129
  adapter_name="edit-skin")
@@ -177,8 +177,8 @@ def infer(
177
  pipe.set_adapters(["light-restoration"], adapter_weights=[1.0])
178
  elif lora_adapter == "Relight":
179
  pipe.set_adapters(["relight"], adapter_weights=[1.0])
180
- elif lora_adapter == "Eigen-Banana":
181
- pipe.set_adapters(["eigen-banana"], adapter_weights=[1.0])
182
  elif lora_adapter == "Edit-Skin":
183
  pipe.set_adapters(["edit-skin"], adapter_weights=[1.0])
184
  elif lora_adapter == "Next-Scene":
@@ -248,7 +248,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
248
  with gr.Row():
249
  lora_adapter = gr.Dropdown(
250
  label="Choose Editing Style",
251
- choices=["Photo-to-Anime", "Multiple-Angles", "Light-Restoration", "Relight", "Next-Scene", "Edit-Skin", "Eigen-Banana"],
252
  value="Photo-to-Anime"
253
  )
254
  with gr.Accordion("Advanced Settings", open=False, visible=False):
@@ -263,11 +263,12 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
263
  ["examples/5.jpg", "Remove shadows and relight the image using soft lighting.", "Light-Restoration"],
264
  ["examples/4.jpg", "Use a subtle golden-hour filter with smooth light diffusion.", "Relight"],
265
  ["examples/2.jpeg", "Rotate the camera 45 degrees to the left.", "Multiple-Angles"],
 
 
266
  ["examples/2.jpeg", "Switch the camera to a top-down right corner view.", "Multiple-Angles"],
267
  ["examples/9.jpg", "The camera moves slightly forward as sunlight breaks through the clouds, casting a soft glow around the character's silhouette in the mist. Realistic cinematic style, atmospheric depth.", "Next-Scene"],
268
  ["examples/8.jpg", "Make the subjects skin details more prominent and natural.", "Edit-Skin"],
269
  ["examples/6.jpg", "Switch the camera to a bottom-up view.", "Multiple-Angles"],
270
- ["examples/7.jpg", "Apply a vintage film aesthetic to the image, featuring a subtle desaturation of colors with a warm, golden-hour tone, introduce a fine and natural-looking film grain across the entire scene, gently reduce overall contrast for a softer appearance, and add a very faint, dark vignette to the edges to mimic an aged photographic print.", "Eigen-Banana"],
271
  ["examples/6.jpg", "Rotate the camera 180 degrees upside down.", "Multiple-Angles"],
272
  ["examples/4.jpg", "Rotate the camera 45 degrees to the right.", "Multiple-Angles"],
273
  ["examples/4.jpg", "Switch the camera to a top-down view.", "Multiple-Angles"],
 
121
  pipe.load_lora_weights("dx8152/Qwen-Image-Edit-2509-Relight",
122
  weight_name="Qwen-Edit-Relight.safetensors",
123
  adapter_name="relight")
124
+ pipe.load_lora_weights("dx8152/Qwen-Edit-2509-Multi-Angle-Lighting",
125
+ weight_name="多角度灯光-251116.safetensors",
126
+ adapter_name="multi-angle-lighting")
127
  pipe.load_lora_weights("tlennon-ie/qwen-edit-skin",
128
  weight_name="qwen-edit-skin_1.1_000002750.safetensors",
129
  adapter_name="edit-skin")
 
177
  pipe.set_adapters(["light-restoration"], adapter_weights=[1.0])
178
  elif lora_adapter == "Relight":
179
  pipe.set_adapters(["relight"], adapter_weights=[1.0])
180
+ elif lora_adapter == "Multi-Angle-Lighting":
181
+ pipe.set_adapters(["multi-angle-lighting"], adapter_weights=[1.0])
182
  elif lora_adapter == "Edit-Skin":
183
  pipe.set_adapters(["edit-skin"], adapter_weights=[1.0])
184
  elif lora_adapter == "Next-Scene":
 
248
  with gr.Row():
249
  lora_adapter = gr.Dropdown(
250
  label="Choose Editing Style",
251
+ choices=["Photo-to-Anime", "Multiple-Angles", "Light-Restoration", "Multi-Angle-Lighting", "Relight", "Next-Scene", "Edit-Skin"],
252
  value="Photo-to-Anime"
253
  )
254
  with gr.Accordion("Advanced Settings", open=False, visible=False):
 
263
  ["examples/5.jpg", "Remove shadows and relight the image using soft lighting.", "Light-Restoration"],
264
  ["examples/4.jpg", "Use a subtle golden-hour filter with smooth light diffusion.", "Relight"],
265
  ["examples/2.jpeg", "Rotate the camera 45 degrees to the left.", "Multiple-Angles"],
266
+ ["examples/7.jpg", "Light source from the rear left", "Multi-Angle-Lighting"],
267
+ ["examples/7.jpg", "Light source from the above", "Multi-Angle-Lighting"],
268
  ["examples/2.jpeg", "Switch the camera to a top-down right corner view.", "Multiple-Angles"],
269
  ["examples/9.jpg", "The camera moves slightly forward as sunlight breaks through the clouds, casting a soft glow around the character's silhouette in the mist. Realistic cinematic style, atmospheric depth.", "Next-Scene"],
270
  ["examples/8.jpg", "Make the subjects skin details more prominent and natural.", "Edit-Skin"],
271
  ["examples/6.jpg", "Switch the camera to a bottom-up view.", "Multiple-Angles"],
 
272
  ["examples/6.jpg", "Rotate the camera 180 degrees upside down.", "Multiple-Angles"],
273
  ["examples/4.jpg", "Rotate the camera 45 degrees to the right.", "Multiple-Angles"],
274
  ["examples/4.jpg", "Switch the camera to a top-down view.", "Multiple-Angles"],