zhanghang1989 / zhanghang1989/PyTorch-Encoding

Is the pretrained resnet50s not available

Open
#393 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2k
Forks
448
PR merge metrics
No merged PRs in 30d

Description

Hi, please see the outputs,

(myconda) root@6bdd6e0be92e:/home# python 1.py
Model file /root/.encoding/models/resnet50s-a75c83cf.pth is not found. Downloading.
Downloading /root/.encoding/models/resnet50s-a75c83cf.zip from https://s3.us-west-1.wasabisys.com/encoding/models/resnet50s-a75c83cf.zip...
Traceback (most recent call last):
File "1.py", line 5, in
model = encoding.models.get_model('EncNet_ResNet50s_ADE', pretrained=True)
File "/root/miniconda3/envs/myconda/lib/python3.8/site-packages/encoding/models/model_zoo.py", line 76, in get_model
net = modelsname
File "/root/miniconda3/envs/myconda/lib/python3.8/site-packages/encoding/models/sseg/encnet.py", line 224, in get_encnet_resnet50_ade
return get_encnet('ade20k', 'resnet50s', pretrained, root=root, aux=True,
File "/root/miniconda3/envs/myconda/lib/python3.8/site-packages/encoding/models/sseg/encnet.py", line 140, in get_encnet
model = EncNet(datasets[dataset.lower()].NUM_CLASS, backbone=backbone, root=root, **kwargs)
File "/root/miniconda3/envs/myconda/lib/python3.8/site-packages/encoding/models/sseg/encnet.py", line 23, in init
super(EncNet, self).init(nclass, backbone, aux, se_loss,
File "/root/miniconda3/envs/myconda/lib/python3.8/site-packages/encoding/models/sseg/base.py", line 69, in init
self.pretrained = get_backbone(backbone, pretrained=True, dilated=dilated,
File "/root/miniconda3/envs/myconda/lib/python3.8/site-packages/encoding/models/sseg/base.py", line 51, in get_backbone
net = modelsname
File "/root/miniconda3/envs/myconda/lib/python3.8/site-packages/encoding/models/backbone/resnet_variants.py", line 21, in resnet50s
get_model_file('resnet50s', root=root)), strict=False)
File "/root/miniconda3/envs/myconda/lib/python3.8/site-packages/encoding/models/model_store.py", line 103, in get_model_file
download(_url_format.format(repo_url=repo_url, file_name=file_name),
File "/root/miniconda3/envs/myconda/lib/python3.8/site-packages/encoding/utils/files.py", line 61, in download
raise RuntimeError("Failed downloading url %s"%url)
RuntimeError: Failed downloading url https://s3.us-west-1.wasabisys.com/encoding/models/resnet50s-a75c83cf.zip
(myconda) root@6bdd6e0be92e:/home#

In 1.py,

import torch
import encoding

model = encoding.models.get_model('EncNet_ResNet50s_ADE', pretrained=True)

I copied the address 'https://s3.us-west-1.wasabisys.com/encoding/models/resnet50s-a75c83cf.zip' to Chrome, but got some errors,

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>5A72D647102416C4</RequestId>
<HostId>VeStwX8UZcelD8oGsM5QhLK5jJ7ho3wYRdKC21cJic/6M3QkouwKmpWuyFeSfAOj4XeYtLXCsfqe</HostId>
</Error>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at encoding/models/model_store.py and the get_model entry point shown in the traceback, then trace the download URL used for resnet50s. Verify whether the referenced model archive is available and determine what repository change is needed. Done means the pretrained EncNet_ResNet50s_ADE example can download its model without the reported AccessDenied or failed-download error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.