prithivMLmods commited on
Commit
e50de81
·
verified ·
1 Parent(s): 0268054

update app

Browse files
Files changed (1) hide show
  1. app.py +1 -9
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("valiantcat/Qwen-Image-Edit-2509-Upscale2K",
137
- # weight_name="qwen_image_edit_2509_upscale.safetensors",
138
- # adapter_name="upscale-image-v2")
139
 
140
  pipe.transformer.set_attn_processor(QwenDoubleStreamAttnProcessorFA3())
141
  MAX_SEED = np.iinfo(np.int32).max
@@ -191,8 +188,6 @@ def infer(
191
  pipe.set_adapters(["next-scene"], adapter_weights=[1.0])
192
  elif lora_adapter == "Upscale-Image":
193
  pipe.set_adapters(["upscale-image"], adapter_weights=[1.0])
194
- # elif lora_adapter == "Upscale-Image-v2":
195
- # pipe.set_adapters(["upscale-image-v2"], adapter_weights=[1.0])
196
 
197
  if randomize_seed:
198
  seed = random.randint(0, MAX_SEED)
@@ -258,9 +253,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
258
  with gr.Row():
259
  lora_adapter = gr.Dropdown(
260
  label="Choose Editing Style",
261
- choices=["Photo-to-Anime", "Multiple-Angles", "Light-Restoration", "Multi-Angle-Lighting", "Upscale-Image", "Relight", "Next-Scene", "Edit-Skin",
262
- # "Upscale-Image-v2"
263
- ],
264
  value="Photo-to-Anime"
265
  )
266
  with gr.Accordion("Advanced Settings", open=False, visible=False):
@@ -275,7 +268,6 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
275
  ["examples/5.jpg", "Remove shadows and relight the image using soft lighting.", "Light-Restoration"],
276
  ["examples/4.jpg", "Use a subtle golden-hour filter with smooth light diffusion.", "Relight"],
277
  ["examples/2.jpeg", "Rotate the camera 45 degrees to the left.", "Multiple-Angles"],
278
- # ["examples/11.jpg", "Upscale this picture to 4K resolution.", "Upscale-Image-v2"],
279
  ["examples/7.jpg", "Light source from the Right Rear", "Multi-Angle-Lighting"],
280
  ["examples/10.jpeg", "Upscale the image.", "Upscale-Image"],
281
  ["examples/7.jpg", "Light source from the Below", "Multi-Angle-Lighting"],
 
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
  pipe.transformer.set_attn_processor(QwenDoubleStreamAttnProcessorFA3())
138
  MAX_SEED = np.iinfo(np.int32).max
 
188
  pipe.set_adapters(["next-scene"], adapter_weights=[1.0])
189
  elif lora_adapter == "Upscale-Image":
190
  pipe.set_adapters(["upscale-image"], adapter_weights=[1.0])
 
 
191
 
192
  if randomize_seed:
193
  seed = random.randint(0, MAX_SEED)
 
253
  with gr.Row():
254
  lora_adapter = gr.Dropdown(
255
  label="Choose Editing Style",
256
+ choices=["Photo-to-Anime", "Multiple-Angles", "Light-Restoration", "Multi-Angle-Lighting", "Upscale-Image", "Relight", "Next-Scene", "Edit-Skin"],
 
 
257
  value="Photo-to-Anime"
258
  )
259
  with gr.Accordion("Advanced Settings", open=False, visible=False):
 
268
  ["examples/5.jpg", "Remove shadows and relight the image using soft lighting.", "Light-Restoration"],
269
  ["examples/4.jpg", "Use a subtle golden-hour filter with smooth light diffusion.", "Relight"],
270
  ["examples/2.jpeg", "Rotate the camera 45 degrees to the left.", "Multiple-Angles"],
 
271
  ["examples/7.jpg", "Light source from the Right Rear", "Multi-Angle-Lighting"],
272
  ["examples/10.jpeg", "Upscale the image.", "Upscale-Image"],
273
  ["examples/7.jpg", "Light source from the Below", "Multi-Angle-Lighting"],