GiorgioV commited on
Commit
5a5af89
·
verified ·
1 Parent(s): f8493fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -130,8 +130,8 @@ pipe.load_lora_weights("tlennon-ie/qwen-edit-skin",
130
  pipe.load_lora_weights("lovis93/next-scene-qwen-image-lora-2509",
131
  weight_name="next-scene_lora-v2-3000.safetensors",
132
  adapter_name="next-scene")
133
- pipe.load_lora_weights("GiorgioV/Qwen-image-adv",
134
- weight_name="qwen-image_nsfw_adv_v1.0.safetensors",
135
  adapter_name="upscale-image")
136
 
137
 
@@ -174,7 +174,7 @@ def infer(
174
  raise gr.Error("Please upload an image to edit.")
175
 
176
  if lora_adapter == "Photo-to-Anime":
177
- pipe.set_adapters(["anime"], adapter_weights=[1.0])
178
  elif lora_adapter == "Multiple-Angles":
179
  pipe.set_adapters(["multiple-angles"], adapter_weights=[1.0])
180
  elif lora_adapter == "Light-Restoration":
@@ -218,7 +218,7 @@ def infer(
218
  def infer_example(input_image, prompt, lora_adapter):
219
  input_pil = input_image.convert("RGB")
220
  guidance_scale = 1.0
221
- steps = 4
222
  result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps)
223
  return result, seed
224
 
 
130
  pipe.load_lora_weights("lovis93/next-scene-qwen-image-lora-2509",
131
  weight_name="next-scene_lora-v2-3000.safetensors",
132
  adapter_name="next-scene")
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
 
 
174
  raise gr.Error("Please upload an image to edit.")
175
 
176
  if lora_adapter == "Photo-to-Anime":
177
+ pipe.set_adapters(["anime"], adapter_weights=[0.5])
178
  elif lora_adapter == "Multiple-Angles":
179
  pipe.set_adapters(["multiple-angles"], adapter_weights=[1.0])
180
  elif lora_adapter == "Light-Restoration":
 
218
  def infer_example(input_image, prompt, lora_adapter):
219
  input_pil = input_image.convert("RGB")
220
  guidance_scale = 1.0
221
+ steps = 5
222
  result, seed = infer(input_pil, prompt, lora_adapter, 0, True, guidance_scale, steps)
223
  return result, seed
224