Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ from diffusers import DiffusionPipeline
|
|
15 |
model_id = "OpenVINO/LCM_Dreamshaper_v7-int8-ov"
|
16 |
#pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False, safety_checker=safety_checker)
|
17 |
pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False)
|
18 |
-
pipeline.
|
19 |
|
20 |
batch_size, num_images, height, width = 1, 1, 512, 512
|
21 |
pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
|
|
|
15 |
model_id = "OpenVINO/LCM_Dreamshaper_v7-int8-ov"
|
16 |
#pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False, safety_checker=safety_checker)
|
17 |
pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False)
|
18 |
+
pipeline.load_tf_weights("EvilEngine/easynegative")
|
19 |
|
20 |
batch_size, num_images, height, width = 1, 1, 512, 512
|
21 |
pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
|