Spaces:
Runtime error
Runtime error
Lykon/dreamshaper-xl-lightning
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from DeepCache import DeepCacheSDHelper
|
|
13 |
adapter_id = "latent-consistency/lcm-lora-sdv1-5"
|
14 |
|
15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
16 |
-
pipe = OVStableDiffusionImg2ImgPipeline.from_pretrained("Lykon/dreamshaper-xl-
|
17 |
pipe = pipe.to(device)
|
18 |
# helper = DeepCacheSDHelper(pipe=pipe)
|
19 |
# helper.set_params(
|
|
|
13 |
adapter_id = "latent-consistency/lcm-lora-sdv1-5"
|
14 |
|
15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
16 |
+
pipe = OVStableDiffusionImg2ImgPipeline.from_pretrained("Lykon/dreamshaper-xl-lightning", torch_dtype=torch.float16, export=True) if torch.cuda.is_available() else AutoPipelineForImage2Image.from_pretrained("stabilityai/sdxl-turbo")
|
17 |
pipe = pipe.to(device)
|
18 |
# helper = DeepCacheSDHelper(pipe=pipe)
|
19 |
# helper.set_params(
|