Error
/usr/local/HRNet-MaskRCNN-Benchmark
Traceback (most recent call last):
File "tools/train_net.py", line 22, in
from maskrcnn_benchmark.utils.checkpoint import DetectronCheckpointer
File "/usr/local/HRNet-MaskRCNN-Benchmark/maskrcnn_benchmark/utils/checkpoint.py", line 10, in
from maskrcnn_benchmark.utils.model_zoo import cache_url
File "/usr/local/HRNet-MaskRCNN-Benchmark/maskrcnn_benchmark/utils/model_zoo.py", line 5, in
from torch.utils.model_zoo import _download_url_to_file
ImportError: cannot import name '_download_url_to_file'
!python tools/train_net.py --config-file "/usr/local/HRNet-MaskRCNN-Benchmark/configs/hrnet/mask_rcnn_hrnet_w18_1x.yaml"
Error /usr/local/HRNet-MaskRCNN-Benchmark Traceback (most recent call last): File "tools/train_net.py", line 22, in
from maskrcnn_benchmark.utils.checkpoint import DetectronCheckpointer
File "/usr/local/HRNet-MaskRCNN-Benchmark/maskrcnn_benchmark/utils/checkpoint.py", line 10, in
from maskrcnn_benchmark.utils.model_zoo import cache_url
File "/usr/local/HRNet-MaskRCNN-Benchmark/maskrcnn_benchmark/utils/model_zoo.py", line 5, in
from torch.utils.model_zoo import _download_url_to_file
ImportError: cannot import name '_download_url_to_file'