Spaces:
Runtime error
Runtime error
lora removed
Browse files
app.py
CHANGED
|
@@ -11,8 +11,6 @@ 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.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=True, algorithm_type="sde-dpmsolver++")
|
| 17 |
pipe.to("cuda")
|
| 18 |
|
|
@@ -112,7 +110,7 @@ def king(type ,
|
|
| 112 |
else:
|
| 113 |
image = pipe_fast( prompt = instruction,
|
| 114 |
negative_prompt=negative_prompt,
|
| 115 |
-
guidance_scale =
|
| 116 |
num_inference_steps = steps,
|
| 117 |
width = width, height = height,
|
| 118 |
generator = generator, output_type="latent",
|
|
|
|
| 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.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config, use_karras_sigmas=True, algorithm_type="sde-dpmsolver++")
|
| 15 |
pipe.to("cuda")
|
| 16 |
|
|
|
|
| 110 |
else:
|
| 111 |
image = pipe_fast( prompt = instruction,
|
| 112 |
negative_prompt=negative_prompt,
|
| 113 |
+
guidance_scale = guidance_scale,
|
| 114 |
num_inference_steps = steps,
|
| 115 |
width = width, height = height,
|
| 116 |
generator = generator, output_type="latent",
|