Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,8 +51,8 @@ css = """
|
|
| 51 |
|
| 52 |
set_seed(666)
|
| 53 |
|
| 54 |
-
|
| 55 |
-
DEVICE = torch.device("cuda")
|
| 56 |
|
| 57 |
default_steps = 20
|
| 58 |
model = PixelPerfectDepth(sampling_steps=default_steps)
|
|
|
|
| 51 |
|
| 52 |
set_seed(666)
|
| 53 |
|
| 54 |
+
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 55 |
+
# DEVICE = torch.device("cuda")
|
| 56 |
|
| 57 |
default_steps = 20
|
| 58 |
model = PixelPerfectDepth(sampling_steps=default_steps)
|