aatifjiwani / rgb-footprint-extract

A Semantic Segmentation Network for Urban-Scale Building Footprint Extraction Using RGB Satellite Imagery
https://arxiv.org/abs/2104.01263
MIT License
65 stars 22 forks source link

URLError about class Tensor in evaluate file #21

Closed walking-shadow closed 11 months ago

walking-shadow commented 2 years ago

Hi, I met a error called URLError when I use the class of evaluate file and the information shows below: File "inference.py", line 84, in main tester = Tester(args) File "/root/autodl-tmp/models/deeplab/evaluate.py", line 47, in init self.model = DeepLab( File "/root/autodl-tmp/models/deeplab/modeling/deeplab.py", line 22, in init self.backbone = build_backbone(backbone, output_stride, BatchNorm) File "/root/autodl-tmp/models/deeplab/modeling/backbone/init.py", line 11, in build_backbone return drn.drn_c_42(BatchNorm) File "/root/autodl-tmp/models/deeplab/modeling/backbone/drn.py", line 324, in drn_c_42 pretrained = model_zoo.load_url(model_urls['drn-c-42']) File "/root/miniconda3/lib/python3.8/site-packages/torch/hub.py", line 727, in load_state_dict_from_url download_url_to_file(url, cached_file, hash_prefix, progress=progress) File "/root/miniconda3/lib/python3.8/site-packages/torch/hub.py", line 593, in download_url_to_file u = urlopen(req) File "/root/miniconda3/lib/python3.8/urllib/request.py", line 222, in urlopen return opener.open(url, data, timeout) File "/root/miniconda3/lib/python3.8/urllib/request.py", line 525, in open response = self._open(req, data) File "/root/miniconda3/lib/python3.8/urllib/request.py", line 542, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "/root/miniconda3/lib/python3.8/urllib/request.py", line 502, in _call_chain result = func(*args) File "/root/miniconda3/lib/python3.8/urllib/request.py", line 1383, in http_open return self.do_open(http.client.HTTPConnection, req) File "/root/miniconda3/lib/python3.8/urllib/request.py", line 1357, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [Errno 113] No route to host> It turns out to be that the pretrain of DRN couldn't be download from http://dl.yf.io/drn/, and I can't open this url, do you have any solutions?

aatifjiwani commented 11 months ago

This issue should hopefully be fixed, the server must've went down when you tried downloading.