Spaces:
Running
on
Zero
Running
on
Zero
Remove device assign
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ is_attention_slicing_enabled = True
|
|
52 |
|
53 |
# Load model
|
54 |
dtype = torch.float16
|
55 |
-
device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
|
56 |
scheduler = DDIMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False, set_alpha_to_one=False)
|
57 |
|
58 |
model_path = "stabilityai/stable-diffusion-xl-base-1.0"
|
|
|
52 |
|
53 |
# Load model
|
54 |
dtype = torch.float16
|
55 |
+
# device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
|
56 |
scheduler = DDIMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False, set_alpha_to_one=False)
|
57 |
|
58 |
model_path = "stabilityai/stable-diffusion-xl-base-1.0"
|