zhanghang1989 / PyTorch-Encoding

A CV toolkit for my papers.
https://hangzhang.org/PyTorch-Encoding/
MIT License
2.04k stars 452 forks source link

Getting Bad Zip file error! #295

Closed user432 closed 4 years ago

user432 commented 4 years ago

I am trying to work with the ResNest 101, and am getting this error. Is there any problem from my end? Or is this a problem of the wasabi url?

Model file /root/.encoding/models/resnest101-966fb78c.pth is not found. Downloading. Downloading /root/.encoding/models/resnest101-966fb78c.zip from https://s3.us-west-1.wasabisys.com/encoding/models/resnest101-966fb78c.zip... Traceback (most recent call last): File "train.py", line 270, in trainer = Trainer(args) File "train.py", line 155, in init base_size=args.base_size, crop_size=args.crop_size) File "/opt/conda/envs/enc_cu10/lib/python3.6/site-packages/torch_encoding-1.2.1b20200708-py3.6.egg/encoding/models/sseg/init.py", line 20, in get_segmentation_model return modelsname.lower() File "/opt/conda/envs/enc_cu10/lib/python3.6/site-packages/torch_encoding-1.2.1b20200708-py3.6.egg/encoding/models/sseg/deeplab.py", line 148, in get_deeplab model = DeepLabV3(datasets[dataset.lower()].NUM_CLASS, backbone=backbone, root=root, kwargs) File "/opt/conda/envs/enc_cu10/lib/python3.6/site-packages/torch_encoding-1.2.1b20200708-py3.6.egg/encoding/models/sseg/deeplab.py", line 40, in init super(DeepLabV3, self).init(nclass, backbone, aux, se_loss, norm_layer=norm_layer, kwargs) File "/opt/conda/envs/enc_cu10/lib/python3.6/site-packages/torch_encoding-1.2.1b20200708-py3.6.egg/encoding/models/sseg/base.py", line 71, in init *args, kwargs) File "/opt/conda/envs/enc_cu10/lib/python3.6/site-packages/torch_encoding-1.2.1b20200708-py3.6.egg/encoding/models/sseg/base.py", line 51, in get_backbone net = models[name](kwargs) File "/opt/conda/envs/enc_cu10/lib/python3.6/site-packages/torch_encoding-1.2.1b20200708-py3.6.egg/encoding/models/backbone/resnest.py", line 36, in resnest101 get_model_file('resnest101', root=root)), strict=True) File "/opt/conda/envs/enc_cu10/lib/python3.6/site-packages/torch_encoding-1.2.1b20200708-py3.6.egg/encoding/models/model_store.py", line 106, in get_model_file with zipfile.ZipFile(zip_file_path) as zf: File "/opt/conda/envs/enc_cu10/lib/python3.6/zipfile.py", line 1131, in init self._RealGetContents() File "/opt/conda/envs/enc_cu10/lib/python3.6/zipfile.py", line 1198, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file