Commit
·
314ec12
1
Parent(s):
9c4f89c
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
5 |
model_base = "https://huggingface.co/Krebzonide/LazyMixPlus/blob/main/lazymixRealAmateur_v30b.safetensors"
|
6 |
lora_model_path = "Krebzonide/3a0s-w68r-4qw1-0"
|
7 |
|
8 |
-
pipe = StableDiffusionPipeline.
|
9 |
pipe.unet.load_attn_procs(lora_model_path) #working, commented to text base model------------------------------------
|
10 |
#pipe.unet.load_attn_procs(lora_model_path, use_auth_token=True) test accessing a private model----------------------
|
11 |
pipe.to("cuda")
|
|
|
5 |
model_base = "https://huggingface.co/Krebzonide/LazyMixPlus/blob/main/lazymixRealAmateur_v30b.safetensors"
|
6 |
lora_model_path = "Krebzonide/3a0s-w68r-4qw1-0"
|
7 |
|
8 |
+
pipe = StableDiffusionPipeline.from_ckpt(model_base, torch_dtype=torch.float16, use_safetensors=True)
|
9 |
pipe.unet.load_attn_procs(lora_model_path) #working, commented to text base model------------------------------------
|
10 |
#pipe.unet.load_attn_procs(lora_model_path, use_auth_token=True) test accessing a private model----------------------
|
11 |
pipe.to("cuda")
|