akhaliq HF Staff commited on
Commit
1dd0627
·
verified ·
1 Parent(s): c3dc2f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -29,11 +29,13 @@ pipe = QwenImageEditPlusPipeline.from_pretrained("Qwen/Qwen-Image-Edit-2509",
29
  torch_dtype=dtype,
30
  device_map='cuda'),torch_dtype=dtype).to(device)
31
 
32
- pipe.load_lora_weights("autoweeb/Qwen-Image-Edit-2509-Photo-to-Anime",
33
- weight_name="Qwen-Image-Edit-2509-Photo-to-Anime_000001000.safetensors",
34
- adapter_name="anime")
35
- pipe.set_adapters(["anime"], adapter_weights=[1.])
36
- pipe.fuse_lora(adapter_names=["anime"], lora_scale=1.0)
 
 
37
  pipe.unload_lora_weights()
38
 
39
  pipe.transformer.__class__ = QwenImageTransformer2DModel
 
29
  torch_dtype=dtype,
30
  device_map='cuda'),torch_dtype=dtype).to(device)
31
 
32
+
33
+
34
+ pipe.load_lora_weights("rsshekhawat/Qwen-Edit-3DChibi-LoRA",
35
+ weight_name="qwen_3d_chibi_lora_v1_000000820.safetensors",
36
+ adapter_name="chibi")
37
+ pipe.set_adapters(["chibi"], adapter_weights=[1.])
38
+ pipe.fuse_lora(adapter_names=["chibi"], lora_scale=1.0)
39
  pipe.unload_lora_weights()
40
 
41
  pipe.transformer.__class__ = QwenImageTransformer2DModel