sohojoe commited on
Commit
7989328
1 Parent(s): daef565

revert torch_size so is 16 on cuda

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- torch_size = torch.float32
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",