Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from diffusers import DiffusionPipeline, StableDiffusionXLPipeline, EDMEulerSche
|
|
10 |
from huggingface_hub import hf_hub_download, InferenceClient
|
11 |
|
12 |
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
13 |
-
pipe = StableDiffusionXLPipeline.from_pretrained("
|
14 |
pipe.load_lora_weights("KingNish/Better-Image-XL-Lora", weight_name="example-03.safetensors", adapter_name="lora")
|
15 |
pipe.set_adapters("lora")
|
16 |
pipe.to("cuda")
|
@@ -92,7 +92,6 @@ def king(type ,
|
|
92 |
generator = torch.Generator().manual_seed(seed)
|
93 |
if fast:
|
94 |
pipes=pipe_fast
|
95 |
-
steps=int(steps/4)
|
96 |
else:
|
97 |
pipes=pipe
|
98 |
image = pipes( prompt = instruction,
|
|
|
10 |
from huggingface_hub import hf_hub_download, InferenceClient
|
11 |
|
12 |
vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
|
13 |
+
pipe = StableDiffusionXLPipeline.from_pretrained("SG161222/RealVisXL_V4.0", torch_dtype=torch.float16, vae=vae)
|
14 |
pipe.load_lora_weights("KingNish/Better-Image-XL-Lora", weight_name="example-03.safetensors", adapter_name="lora")
|
15 |
pipe.set_adapters("lora")
|
16 |
pipe.to("cuda")
|
|
|
92 |
generator = torch.Generator().manual_seed(seed)
|
93 |
if fast:
|
94 |
pipes=pipe_fast
|
|
|
95 |
else:
|
96 |
pipes=pipe
|
97 |
image = pipes( prompt = instruction,
|