prithivMLmods commited on
Commit
2241b5e
·
verified ·
1 Parent(s): ceed444

update app

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -133,9 +133,6 @@ pipe.load_lora_weights("lovis93/next-scene-qwen-image-lora-2509",
133
  pipe.load_lora_weights("vafipas663/Qwen-Edit-2509-Upscale-LoRA",
134
  weight_name="qwen-edit-enhance_64-v3_000001000.safetensors",
135
  adapter_name="upscale-image")
136
- pipe.load_lora_weights("tarn59/extract_texture_qwen_image_edit_2509",
137
- weight_name="extract_texture_qwen_image_edit_2509.safetensors",
138
- adapter_name="extract-texture")
139
 
140
 
141
  pipe.transformer.set_attn_processor(QwenDoubleStreamAttnProcessorFA3())
@@ -192,8 +189,6 @@ def infer(
192
  pipe.set_adapters(["next-scene"], adapter_weights=[1.0])
193
  elif lora_adapter == "Upscale-Image":
194
  pipe.set_adapters(["upscale-image"], adapter_weights=[1.0])
195
- elif lora_adapter == "Extract-Texture":
196
- pipe.set_adapters(["extract-texture"], adapter_weights=[1.0])
197
 
198
  if randomize_seed:
199
  seed = random.randint(0, MAX_SEED)
@@ -259,7 +254,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
259
  with gr.Row():
260
  lora_adapter = gr.Dropdown(
261
  label="Choose Editing Style",
262
- choices=["Photo-to-Anime", "Multiple-Angles", "Light-Restoration", "Multi-Angle-Lighting", "Upscale-Image", "Relight", "Next-Scene", "Edit-Skin", "Extract-Texture"],
263
  value="Photo-to-Anime"
264
  )
265
  with gr.Accordion("Advanced Settings", open=False, visible=False):
@@ -275,7 +270,6 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
275
  ["examples/4.jpg", "Use a subtle golden-hour filter with smooth light diffusion.", "Relight"],
276
  ["examples/2.jpeg", "Rotate the camera 45 degrees to the left.", "Multiple-Angles"],
277
  ["examples/7.jpg", "Light source from the Right Rear", "Multi-Angle-Lighting"],
278
- ["examples/11.jpeg", "Extract stone texture from the wall. Extract into a texture image.", "Extract-Texture"],
279
  ["examples/10.jpeg", "Upscale the image.", "Upscale-Image"],
280
  ["examples/7.jpg", "Light source from the Below", "Multi-Angle-Lighting"],
281
  ["examples/2.jpeg", "Switch the camera to a top-down right corner view.", "Multiple-Angles"],
 
133
  pipe.load_lora_weights("vafipas663/Qwen-Edit-2509-Upscale-LoRA",
134
  weight_name="qwen-edit-enhance_64-v3_000001000.safetensors",
135
  adapter_name="upscale-image")
 
 
 
136
 
137
 
138
  pipe.transformer.set_attn_processor(QwenDoubleStreamAttnProcessorFA3())
 
189
  pipe.set_adapters(["next-scene"], adapter_weights=[1.0])
190
  elif lora_adapter == "Upscale-Image":
191
  pipe.set_adapters(["upscale-image"], adapter_weights=[1.0])
 
 
192
 
193
  if randomize_seed:
194
  seed = random.randint(0, MAX_SEED)
 
254
  with gr.Row():
255
  lora_adapter = gr.Dropdown(
256
  label="Choose Editing Style",
257
+ choices=["Photo-to-Anime", "Multiple-Angles", "Light-Restoration", "Multi-Angle-Lighting", "Upscale-Image", "Relight", "Next-Scene", "Edit-Skin"],
258
  value="Photo-to-Anime"
259
  )
260
  with gr.Accordion("Advanced Settings", open=False, visible=False):
 
270
  ["examples/4.jpg", "Use a subtle golden-hour filter with smooth light diffusion.", "Relight"],
271
  ["examples/2.jpeg", "Rotate the camera 45 degrees to the left.", "Multiple-Angles"],
272
  ["examples/7.jpg", "Light source from the Right Rear", "Multi-Angle-Lighting"],
 
273
  ["examples/10.jpeg", "Upscale the image.", "Upscale-Image"],
274
  ["examples/7.jpg", "Light source from the Below", "Multi-Angle-Lighting"],
275
  ["examples/2.jpeg", "Switch the camera to a top-down right corner view.", "Multiple-Angles"],