Spaces:
Runtime error
Runtime error
RohitGandikota
commited on
Commit
Β·
a92cf2d
1
Parent(s):
9419ae5
testing cuda inference
Browse files
app.py
CHANGED
|
@@ -37,8 +37,8 @@ class Demo:
|
|
| 37 |
|
| 38 |
self.training = False
|
| 39 |
self.generating = False
|
| 40 |
-
self.device = '
|
| 41 |
-
self.weight_dtype = torch.
|
| 42 |
self.pipe = StableDiffusionXLPipeline.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=self.weight_dtype).to(self.device)
|
| 43 |
|
| 44 |
with gr.Blocks() as demo:
|
|
|
|
| 37 |
|
| 38 |
self.training = False
|
| 39 |
self.generating = False
|
| 40 |
+
self.device = 'cuda'
|
| 41 |
+
self.weight_dtype = torch.float16
|
| 42 |
self.pipe = StableDiffusionXLPipeline.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=self.weight_dtype).to(self.device)
|
| 43 |
|
| 44 |
with gr.Blocks() as demo:
|