Skip to content

Commit 1afb562

Browse files
committed
update links
1 parent a2e113c commit 1afb562

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ People used to deploy one model to all platforms, but this is not good. To fully
6969
![](assets/specialization.jpg)
7070
![](assets/specialized_archs.png)
7171

72-
We provide a [visualization](https://github.com/han-cai/files/tree/master/proxylessnas/visualization.mp4) of search process. Please refer to our [paper](https://arxiv.org/abs/1812.00332) for more results.
72+
We provide a [visualization](assets/visualization.mp4) of search process. Please refer to our [paper](https://arxiv.org/abs/1812.00332) for more results.
7373

7474
# How to use / evaluate
7575
* Use

proxyless_nas/model_zoo.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,27 @@ def proxyless_base(pretrained=True, net_config=None, net_weight=None):
3333

3434
proxyless_cpu = partial(
3535
proxyless_base,
36-
net_config="https://github.com/han-cai/files/blob/master/proxylessnas/proxyless_cpu.config",
37-
net_weight="https://github.com/han-cai/files/blob/master/proxylessnas/proxyless_cpu.pth"
36+
net_config="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_cpu.config",
37+
net_weight="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_cpu.pth"
3838
)
3939

4040
proxyless_gpu = partial(
4141
proxyless_base,
42-
net_config="https://github.com/han-cai/files/blob/master/proxylessnas/proxyless_gpu.config",
43-
net_weight="https://github.com/han-cai/files/blob/master/proxylessnas/proxyless_gpu.pth")
42+
net_config="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_gpu.config",
43+
net_weight="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_gpu.pth")
4444

4545
proxyless_mobile = partial(
4646
proxyless_base,
47-
net_config="https://github.com/han-cai/files/blob/master/proxylessnas/proxyless_mobile.config",
48-
net_weight="https://github.com/han-cai/files/blob/master/proxylessnas/proxyless_mobile.pth")
47+
net_config="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_mobile.config",
48+
net_weight="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_mobile.pth")
4949

5050
proxyless_mobile_14 = partial(
5151
proxyless_base,
52-
net_config="https://github.com/han-cai/files/blob/master/proxylessnas/proxyless_mobile_14.config",
53-
net_weight="https://github.com/han-cai/files/blob/master/proxylessnas/proxyless_mobile_14.pth")
52+
net_config="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_mobile_14.config",
53+
net_weight="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_mobile_14.pth")
5454

5555
proxyless_cifar = partial(
5656
proxyless_base,
57-
net_config="https://github.com/han-cai/files/blob/master/proxylessnas/proxyless_cifar.config",
58-
net_weight="https://github.com/han-cai/files/blob/master/proxylessnas/proxyless_cifar.pth"
57+
net_config="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_cifar.config",
58+
net_weight="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_cifar.pth"
5959
)

proxyless_nas_tensorflow/tf_model_zoo.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ def proxyless_base(pretrained=True, net_config=None, net_weight=None):
2424

2525
proxyless_cpu = partial(
2626
proxyless_base,
27-
net_config="https://github.com/han-cai/files/tree/master/proxylessnas/proxyless_cpu.config",
28-
net_weight="https://github.com/han-cai/files/tree/master/proxylessnas/proxyless_cpu.tfinit")
27+
net_config="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_cpu.config",
28+
net_weight="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_cpu.tfinit")
2929

3030
proxyless_gpu = partial(
3131
proxyless_base,
32-
net_config="https://github.com/han-cai/files/tree/master/proxylessnas/proxyless_gpu.config",
33-
net_weight="https://github.com/han-cai/files/tree/master/proxylessnas/proxyless_gpu.tfinit")
32+
net_config="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_gpu.config",
33+
net_weight="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_gpu.tfinit")
3434

3535
proxyless_mobile = partial(
3636
proxyless_base,
37-
net_config="https://github.com/han-cai/files/tree/master/proxylessnas/proxyless_mobile.config",
38-
net_weight="https://github.com/han-cai/files/tree/master/proxylessnas/proxyless_mobile.tfinit")
37+
net_config="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_mobile.config",
38+
net_weight="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_mobile.tfinit")
3939

4040
proxyless_mobile_14 = partial(
4141
proxyless_base,
42-
net_config="https://github.com/han-cai/files/tree/master/proxylessnas/proxyless_mobile_14.config",
43-
net_weight="https://github.com/han-cai/files/tree/master/proxylessnas/proxyless_mobile_14.tfinit")
42+
net_config="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_mobile_14.config",
43+
net_weight="https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/proxyless_mobile_14.tfinit")

search/imagenet_run_exp.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
# build net from args
105105
if 'proxyless' in args.net:
106106
from models.normal_nets.proxyless_nets import proxyless_base
107-
net_config_url = 'https://github.com/han-cai/files/tree/master/proxylessnas/%s.config' % args.net
107+
net_config_url = 'https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/%s.config' % args.net
108108
net = proxyless_base(
109109
net_config=net_config_url, n_classes=run_config.data_provider.n_classes,
110110
bn_param=(args.bn_momentum, args.bn_eps), dropout_rate=args.dropout,
@@ -133,7 +133,7 @@
133133
run_manager.net.module.load_state_dict(checkpoint)
134134
elif 'proxyless' in args.net and not args.train:
135135
from utils.latency_estimator import download_url
136-
pretrained_weight_url = 'https://github.com/han-cai/files/tree/master/proxylessnas/%s.pth' % args.net
136+
pretrained_weight_url = 'https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/%s.pth' % args.net
137137
print('Load pretrained weights from %s' % pretrained_weight_url)
138138
init_path = download_url(pretrained_weight_url)
139139
init = torch.load(init_path, map_location='cpu')

search/utils/latency_estimator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def download_url(url, model_dir='~/.torch/proxyless_nas', overwrite=False):
2727

2828

2929
class LatencyEstimator(object):
30-
def __init__(self, url='https://github.com/han-cai/files/tree/master/proxylessnas/mobile_trim.yaml'):
30+
def __init__(self, url='https://raw.githubusercontent.com/han-cai/files/master/proxylessnas/mobile_trim.yaml'):
3131
fname = download_url(url, overwrite=True)
3232

3333
with open(fname, 'r') as fp:

0 commit comments

Comments
 (0)