Skip to content
This repository was archived by the owner on Jul 2, 2021. It is now read-only.

Use official hosting #633

Merged
merged 14 commits into from
Jun 1, 2018
4 changes: 2 additions & 2 deletions chainercv/experimental/links/model/fcis/fcis_resnet101.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class FCISResNet101(FCIS):
_models = {
'sbd': {
'param': {'n_fg_class': 20},
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.6/fcis_resnet101_sbd_trained_2018_04_14.npz',
'url': 'https://chainercv-models.preferred.jp/'
'fcis_resnet101_sbd_trained_2018_04_14.npz',
'cv2': True
}
}
Expand Down
4 changes: 2 additions & 2 deletions chainercv/experimental/links/model/pspnet/pspnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ class PSPNetResNet101(PSPNet):
_models = {
'cityscapes': {
'param': {'n_class': 19, 'input_size': (713, 713)},
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.6/pspnet_resnet101_cityscapes_convert_2018_05_22.npz'
'url': 'https://chainercv-models.preferred.jp/'
'pspnet_resnet101_cityscapes_converted_2018_05_22.npz'
}
}

Expand Down
9 changes: 4 additions & 5 deletions chainercv/links/model/faster_rcnn/faster_rcnn_vgg.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,14 @@ class FasterRCNNVGG16(FasterRCNN):
_models = {
'voc07': {
'param': {'n_fg_class': 20},
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.4/'
'faster_rcnn_vgg16_voc07_trained_2017_08_06.npz',
'url': 'https://chainercv-models.preferred.jp/'
'faster_rcnn_vgg16_voc07_trained_2018_06_01.npz',
'cv2': True
},
'voc0712': {
'param': {'n_fg_class': 20},
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.4/faster_rcnn_vgg16_voc0712_trained_2017_07_21.npz',
'url': 'https://chainercv-models.preferred.jp/'
'faster_rcnn_vgg16_voc0712_trained_2017_07_21.npz',
'cv2': True
},
}
Expand Down
15 changes: 6 additions & 9 deletions chainercv/links/model/resnet/resnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,27 +112,24 @@ class ResNet(PickableSequentialChain):
'imagenet': {
'param': {'n_class': 1000, 'mean': _imagenet_mean},
'overwritable': {'mean'},
'url': 'https://github.com/yuyu2172/share-weights/'
'releases/download/0.0.6/'
'resnet50_imagenet_convert_2018_03_07.npz'
'url': 'https://chainercv-models.preferred.jp/'
'resnet50_imagenet_converted_2018_03_07.npz'
},
},
101: {
'imagenet': {
'param': {'n_class': 1000, 'mean': _imagenet_mean},
'overwritable': {'mean'},
'url': 'https://github.com/yuyu2172/share-weights/'
'releases/download/0.0.6/'
'resnet101_imagenet_convert_2018_03_07.npz'
'url': 'https://chainercv-models.preferred.jp/'
'resnet101_imagenet_converted_2018_03_07.npz'
},
},
152: {
'imagenet': {
'param': {'n_class': 1000, 'mean': _imagenet_mean},
'overwritable': {'mean'},
'url': 'https://github.com/yuyu2172/share-weights/'
'releases/download/0.0.6/'
'resnet152_imagenet_convert_2018_03_07.npz'
'url': 'https://chainercv-models.preferred.jp/'
'resnet152_imagenet_converted_2018_03_07.npz'
},
}
}
Expand Down
4 changes: 2 additions & 2 deletions chainercv/links/model/segnet/segnet_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class SegNetBasic(chainer.Chain):
_models = {
'camvid': {
'param': {'n_class': 11},
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.2/segnet_camvid_2017_05_28.npz'
'url': 'https://chainercv-models.preferred.jp/'
'segnet_camvid_trained_2017_05_28.npz'
}
}

Expand Down
16 changes: 8 additions & 8 deletions chainercv/links/model/ssd/ssd_vgg16.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,13 @@ class SSD300(SSD):
_models = {
'voc0712': {
'param': {'n_fg_class': 20},
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.3/ssd300_voc0712_2017_06_06.npz',
'url': 'https://chainercv-models.preferred.jp/'
'ssd300_voc0712_converted_2017_06_06.npz',
'cv2': True
},
'imagenet': {
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.3/ssd_vgg16_imagenet_2017_06_09.npz',
'url': 'https://chainercv-models.preferred.jp/'
'ssd_vgg16_imagenet_converted_2017_06_09.npz',
'cv2': True
},
}
Expand Down Expand Up @@ -315,13 +315,13 @@ class SSD512(SSD):
_models = {
'voc0712': {
'param': {'n_fg_class': 20},
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.3/ssd512_voc0712_2017_06_06.npz',
'url': 'https://chainercv-models.preferred.jp/'
'ssd512_voc0712_converted_2017_06_06.npz',
'cv2': True
},
'imagenet': {
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.3/ssd_vgg16_imagenet_2017_06_09.npz',
'url': 'https://chainercv-models.preferred.jp/'
'ssd_vgg16_imagenet_converted_2017_06_09.npz',
'cv2': True
},
}
Expand Down
4 changes: 2 additions & 2 deletions chainercv/links/model/vgg/vgg16.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ class VGG16(PickableSequentialChain):
'imagenet': {
'param': {'n_class': 1000, 'mean': _imagenet_mean},
'overwritable': ('mean',),
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.4/vgg16_imagenet_convert_2017_07_18.npz'
'url': 'https://chainercv-models.preferred.jp/'
'vgg16_imagenet_converted_2017_07_18.npz'
}
}

Expand Down
4 changes: 2 additions & 2 deletions chainercv/links/model/yolo/yolo_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ class YOLOv2(YOLOBase):
_models = {
'voc0712': {
'param': {'n_fg_class': 20},
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.6/yolo_v2_voc0712_2018_05_03.npz',
'url': 'https://chainercv-models.preferred.jp/'
'yolo_v2_voc0712_converted_2018_05_03.npz',
'cv2': True
},
}
Expand Down
4 changes: 2 additions & 2 deletions chainercv/links/model/yolo/yolo_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ class YOLOv3(YOLOBase):
_models = {
'voc0712': {
'param': {'n_fg_class': 20},
'url': 'https://github.com/yuyu2172/share-weights/releases/'
'download/0.0.6/yolo_v3_voc0712_2018_05_01.npz',
'url': 'https://chainercv-models.preferred.jp/'
'yolo_v3_voc0712_converted_2018_05_01.npz',
'cv2': True
},
}
Expand Down
4 changes: 2 additions & 2 deletions examples/ssd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ $ mpi4exec -n <#gpu> python train_multi.py [--model ssd300|ssd512] [--batchsize
```

You can download weights that were trained by ChainerCV.
- [SSD300](https://github.com/yuyu2172/share-weights/releases/download/0.0.4/ssd300_voc0712_trained_2017_08_08.npz)
- [SSD512](https://github.com/yuyu2172/share-weights/releases/download/0.0.4/ssd512_voc0712_trained_batchsize_24_2017_08_08.npz)
- [SSD300](https://chainercv-models.preferred.jp/ssd300_voc0712_trained_2017_08_08.npz)
- [SSD512](https://chainercv-models.preferred.jp/ssd512_voc0712_trained_2017_08_08.npz)

## References
1. Wei Liu et al. "SSD: Single shot multibox detector" ECCV 2016.
Expand Down
9 changes: 3 additions & 6 deletions tests/evaluations_tests/test_eval_detection_voc.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,12 @@ class TestEvalDetectionVOCAP(unittest.TestCase):

@classmethod
def setUpClass(cls):
base_url = 'https://github.com/yuyu2172/' \
'share-weights/releases/download/0.0.3'
base_url = 'https://chainercv-models.preferred.jp/tests'

cls.dataset = np.load(request.urlretrieve(os.path.join(
base_url,
'voc_detection_dataset_2007_test_truncated_2017_06_06.npz'))[0])
base_url, 'eval_detection_voc_dataset_2017_06_06.npz'))[0])
cls.result = np.load(request.urlretrieve(os.path.join(
base_url,
'voc_detection_result_2007_test_truncated_2017_06_06.npz'))[0])
base_url, 'eval_detection_voc_result_2017_06_06.npz'))[0])

def test_eval_detection_voc(self):
pred_bboxes = self.result['bboxes']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,15 @@ class TestEvalInstanceSegmentationVOCAP(unittest.TestCase):

@classmethod
def setUpClass(cls):
base_url = 'https://github.com/yuyu2172/' \
'share-weights/releases/download/0.0.6'
base_url = 'https://chainercv-models.preferred.jp/tests'

cls.dataset = np.load(request.urlretrieve(os.path.join(
base_url,
'voc_instance_segmentation_dataset_test_2018_04_04.npz'))[0],
'eval_instance_segmentation_voc_dataset_2018_04_04.npz'))[0],
encoding='latin1')
cls.result = np.load(request.urlretrieve(os.path.join(
base_url,
'voc_instance_segmentation_result_test_2018_04_04.npz'))[0],
'eval_instance_segmentation_voc_result_2018_04_04.npz'))[0],
encoding='latin1')

def test_eval_instance_segmentation_voc(self):
Expand Down