Spaces:
Running
on
Zero
Running
on
Zero
set accelerator device to cuda
Browse files- gradio_ui.py +1 -0
gradio_ui.py
CHANGED
@@ -199,6 +199,7 @@ def process_image(image_path: str,
|
|
199 |
# Accelerator Setting
|
200 |
accelerator = Accelerator(
|
201 |
mixed_precision=mixed_precision,
|
|
|
202 |
)
|
203 |
|
204 |
weight_dtype = torch.float32
|
|
|
199 |
# Accelerator Setting
|
200 |
accelerator = Accelerator(
|
201 |
mixed_precision=mixed_precision,
|
202 |
+
device="cuda"
|
203 |
)
|
204 |
|
205 |
weight_dtype = torch.float32
|