Spaces:
Runtime error
Runtime error
modify app
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ transform = transforms.Compose([
|
|
| 23 |
transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]),
|
| 24 |
])
|
| 25 |
model = AutoModel.from_pretrained('ybelkada/focusondepth', trust_remote_code=True)
|
| 26 |
-
model.load_state_dict(torch.load('./focusondepth/FocusOnDepth_vit_base_patch16_384.p', map_location=torch.device('cpu'))['model_state_dict'])
|
| 27 |
|
| 28 |
@torch.no_grad()
|
| 29 |
def inference(input_image):
|
|
|
|
| 23 |
transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]),
|
| 24 |
])
|
| 25 |
model = AutoModel.from_pretrained('ybelkada/focusondepth', trust_remote_code=True)
|
| 26 |
+
# model.load_state_dict(torch.load('./focusondepth/FocusOnDepth_vit_base_patch16_384.p', map_location=torch.device('cpu'))['model_state_dict'])
|
| 27 |
|
| 28 |
@torch.no_grad()
|
| 29 |
def inference(input_image):
|