Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import torch.nn.utils.prune as prune
|
|
7 |
|
8 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
9 |
|
10 |
-
model = DPTForDepthEstimation.from_pretrained("Intel/dpt-swinv2-tiny-
|
11 |
model.eval()
|
12 |
|
13 |
# Apply global unstructured pruning
|
|
|
7 |
|
8 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
9 |
|
10 |
+
model = DPTForDepthEstimation.from_pretrained("Intel/dpt-swinv2-tiny-256", torch_dtype=torch.float16)
|
11 |
model.eval()
|
12 |
|
13 |
# Apply global unstructured pruning
|