Spaces:
Runtime error
Runtime error
Lykon/dreamshaper-8
Browse files
app.py
CHANGED
@@ -8,10 +8,10 @@ from PIL import Image
|
|
8 |
from diffusers import AutoPipelineForImage2Image
|
9 |
from diffusers.utils import load_image
|
10 |
import math
|
11 |
-
adapter_id = "latent-consistency/lcm-lora-
|
12 |
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
-
pipe = AutoPipelineForImage2Image.from_pretrained("Lykon/dreamshaper-
|
15 |
pipe = pipe.to(device)
|
16 |
pipe.load_lora_weights(adapter_id)
|
17 |
pipe.fuse_lora()
|
|
|
8 |
from diffusers import AutoPipelineForImage2Image
|
9 |
from diffusers.utils import load_image
|
10 |
import math
|
11 |
+
adapter_id = "latent-consistency/lcm-lora-sdv1-5"
|
12 |
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
+
pipe = AutoPipelineForImage2Image.from_pretrained("Lykon/dreamshaper-8", torch_dtype=torch.float16) if torch.cuda.is_available() else AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo")
|
15 |
pipe = pipe.to(device)
|
16 |
pipe.load_lora_weights(adapter_id)
|
17 |
pipe.fuse_lora()
|