ybelkada commited on
Commit
51bd49e
·
1 Parent(s): 36c7a9e

modify app

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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):