crystal-technologies commited on
Commit
25c355e
·
1 Parent(s): 97ed795

Update maskrcnn_benchmark/utils/model_zoo.py

Browse files
maskrcnn_benchmark/utils/model_zoo.py CHANGED
@@ -3,11 +3,11 @@ import os
3
  import sys
4
 
5
  try:
6
- from torch.hub import _download_url_to_file
7
  from torch.hub import urlparse
8
  from torch.hub import HASH_REGEX
9
  except ImportError:
10
- from torch.utils.model_zoo import _download_url_to_file
11
  from torch.utils.model_zoo import urlparse
12
  from torch.utils.model_zoo import HASH_REGEX
13
 
 
3
  import sys
4
 
5
  try:
6
+ from torch.hub import download_url_to_file
7
  from torch.hub import urlparse
8
  from torch.hub import HASH_REGEX
9
  except ImportError:
10
+ from torch.utils.model_zoo import download_url_to_file
11
  from torch.utils.model_zoo import urlparse
12
  from torch.utils.model_zoo import HASH_REGEX
13