32 bit on cuda
Browse files
app.py
CHANGED
@@ -197,8 +197,8 @@ def on_embeddings_changed_update_plot(embeddings_b64):
|
|
197 |
width=embeddings.shape[0])
|
198 |
|
199 |
device = torch.device("mps" if torch.backends.mps.is_available() else "cuda:0" if torch.cuda.is_available() else "cpu")
|
200 |
-
torch_size = torch.float16 if device == ('cuda') else torch.float32
|
201 |
-
|
202 |
pipe = StableDiffusionPipeline.from_pretrained(
|
203 |
model_id,
|
204 |
custom_pipeline="pipeline.py",
|
|
|
197 |
width=embeddings.shape[0])
|
198 |
|
199 |
device = torch.device("mps" if torch.backends.mps.is_available() else "cuda:0" if torch.cuda.is_available() else "cpu")
|
200 |
+
# torch_size = torch.float16 if device == ('cuda') else torch.float32
|
201 |
+
torch_size = torch.float32
|
202 |
pipe = StableDiffusionPipeline.from_pretrained(
|
203 |
model_id,
|
204 |
custom_pipeline="pipeline.py",
|