ohjho commited on
Commit
a90faa2
1 Parent(s): b240372

fource reload

Browse files
Files changed (1) hide show
  1. DPT.py +1 -1
DPT.py CHANGED
@@ -11,7 +11,7 @@ MODEL_DICT = {
11
 
12
  def load_model(model_type = 'DPT_Large'):
13
  assert model_type in MODEL_DICT.keys(), f'{model_type} is not a valid model_type: {MODEL_DICT.keys()}'
14
- midas = torch.hub.load("intel-isl/MiDaS", model_type)
15
 
16
  device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
17
  print(f'---DPT will use device: {device}')
11
 
12
  def load_model(model_type = 'DPT_Large'):
13
  assert model_type in MODEL_DICT.keys(), f'{model_type} is not a valid model_type: {MODEL_DICT.keys()}'
14
+ midas = torch.hub.load("intel-isl/MiDaS", model_type, force_reload=True)
15
 
16
  device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
17
  print(f'---DPT will use device: {device}')