Spaces:
Running
on
Zero
Running
on
Zero
Update the base model id
Browse files
app.py
CHANGED
@@ -34,11 +34,11 @@ Also, `number` should be an integer in [0, 9].
|
|
34 |
|
35 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
36 |
|
37 |
-
model_id = "
|
38 |
if device.type == "cpu":
|
39 |
pipe = MultiResPipeline.from_pretrained(model_id)
|
40 |
else:
|
41 |
-
pipe = MultiResPipeline.from_pretrained(model_id, torch_dtype=torch.float16
|
42 |
pipe.scheduler = DPMSolverMultistepScheduler(
|
43 |
beta_start=0.00085,
|
44 |
beta_end=0.012,
|
|
|
34 |
|
35 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
36 |
|
37 |
+
model_id = "ashllay/stable-diffusion-v1-5-archive"
|
38 |
if device.type == "cpu":
|
39 |
pipe = MultiResPipeline.from_pretrained(model_id)
|
40 |
else:
|
41 |
+
pipe = MultiResPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
42 |
pipe.scheduler = DPMSolverMultistepScheduler(
|
43 |
beta_start=0.00085,
|
44 |
beta_end=0.012,
|