Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,8 @@ set_seed(666)
|
|
| 44 |
def main(share=True):
|
| 45 |
print("Initializing Pixel-Perfect Depth Demo...")
|
| 46 |
|
| 47 |
-
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
|
| 48 |
default_steps = 10
|
| 49 |
model = PixelPerfectDepth(sampling_steps=default_steps)
|
| 50 |
ckpt_path = hf_hub_download(
|
|
|
|
| 44 |
def main(share=True):
|
| 45 |
print("Initializing Pixel-Perfect Depth Demo...")
|
| 46 |
|
| 47 |
+
# DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 48 |
+
DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 49 |
default_steps = 10
|
| 50 |
model = PixelPerfectDepth(sampling_steps=default_steps)
|
| 51 |
ckpt_path = hf_hub_download(
|