Update easy_run.py
Browse files- easy_run.py +2 -2
easy_run.py
CHANGED
|
@@ -5,9 +5,9 @@ from lcm_scheduler import LCMScheduler
|
|
| 5 |
import hf_image_uploader as hiu
|
| 6 |
import torch
|
| 7 |
|
| 8 |
-
scheduler = LCMScheduler.from_pretrained("
|
| 9 |
|
| 10 |
-
pipe = LatentConsistencyModelPipeline.from_pretrained("
|
| 11 |
pipe.to("cuda", dtype=torch.float16)
|
| 12 |
|
| 13 |
prompt = "a red horse"
|
|
|
|
| 5 |
import hf_image_uploader as hiu
|
| 6 |
import torch
|
| 7 |
|
| 8 |
+
scheduler = LCMScheduler.from_pretrained("charliebaby2023/p_y", subfolder="scheduler")
|
| 9 |
|
| 10 |
+
pipe = LatentConsistencyModelPipeline.from_pretrained("charliebaby2023/p_y", scheduler=scheduler)
|
| 11 |
pipe.to("cuda", dtype=torch.float16)
|
| 12 |
|
| 13 |
prompt = "a red horse"
|