Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,6 +17,7 @@ vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype
|
|
| 17 |
|
| 18 |
repo = "fluently/Fluently-XL-Final"
|
| 19 |
pipe = StableDiffusionXLPipeline.from_pretrained(repo, torch_dtype=torch.float16, vae=vae)
|
|
|
|
| 20 |
pipe.load_lora_weights("KingNish/Better-Image-XL-Lora", weight_name="example-03.safetensors", adapter_name="lora")
|
| 21 |
pipe.set_adapters("lora")
|
| 22 |
pipe.to("cuda")
|
|
@@ -34,7 +35,7 @@ To optimize image results:
|
|
| 34 |
"""
|
| 35 |
|
| 36 |
# Image Editor
|
| 37 |
-
pipe_edit =
|
| 38 |
pipe_edit.scheduler = EulerAncestralDiscreteScheduler(pipe_edit.scheduler.config)
|
| 39 |
|
| 40 |
# Generator
|
|
|
|
| 17 |
|
| 18 |
repo = "fluently/Fluently-XL-Final"
|
| 19 |
pipe = StableDiffusionXLPipeline.from_pretrained(repo, torch_dtype=torch.float16, vae=vae)
|
| 20 |
+
pipe.scheduler = EulerAncestralDiscreteScheduler(pipe.scheduler.config)
|
| 21 |
pipe.load_lora_weights("KingNish/Better-Image-XL-Lora", weight_name="example-03.safetensors", adapter_name="lora")
|
| 22 |
pipe.set_adapters("lora")
|
| 23 |
pipe.to("cuda")
|
|
|
|
| 35 |
"""
|
| 36 |
|
| 37 |
# Image Editor
|
| 38 |
+
pipe_edit = StableDiffusionXLInstructPix2PixPipeline.from_pretrained( "vinesmsuic/magicbrush-jul7", torch_dtype=torch.float16, vae=vae ).to("cuda")
|
| 39 |
pipe_edit.scheduler = EulerAncestralDiscreteScheduler(pipe_edit.scheduler.config)
|
| 40 |
|
| 41 |
# Generator
|