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

Improve caffe2npz in example/ssd #263

Merged
merged 6 commits into from
Jun 12, 2017

Conversation

Hakuyume
Copy link
Member

@Hakuyume Hakuyume commented Jun 10, 2017

New version shows how the layers are converted (BGR -> RGB, xy -> yx).

loading weights from VGG_VOC0712_SSD_300x300_iter_120000.caffemodel ...
conv1_1 -> extractor/conv1_1 (BGR -> RGB)
conv1_2 -> extractor/conv1_2
conv2_1 -> extractor/conv2_1
conv2_2 -> extractor/conv2_2
conv3_1 -> extractor/conv3_1
conv3_2 -> extractor/conv3_2
conv3_3 -> extractor/conv3_3
conv4_1 -> extractor/conv4_1
conv4_2 -> extractor/conv4_2
conv4_3 -> extractor/conv4_3
conv5_1 -> extractor/conv5_1
conv5_2 -> extractor/conv5_2
conv5_3 -> extractor/conv5_3
fc6 -> extractor/conv6
fc7 -> extractor/conv7
conv6_1 -> extractor/conv8_1
conv6_2 -> extractor/conv8_2
conv7_1 -> extractor/conv9_1
conv7_2 -> extractor/conv9_2
conv8_1 -> extractor/conv10_1
conv8_2 -> extractor/conv10_2
conv9_1 -> extractor/conv11_1
conv9_2 -> extractor/conv11_2
conv4_3_norm -> extractor/norm4
conv4_3_norm_mbox_loc -> multibox/loc/0 (xy -> yx)
conv4_3_norm_mbox_conf -> multibox/conf/0
fc7_mbox_loc -> multibox/loc/1 (xy -> yx)
fc7_mbox_conf -> multibox/conf/1
conv6_2_mbox_loc -> multibox/loc/2 (xy -> yx)
conv6_2_mbox_conf -> multibox/conf/2
conv7_2_mbox_loc -> multibox/loc/3 (xy -> yx)
conv7_2_mbox_conf -> multibox/conf/3
conv8_2_mbox_loc -> multibox/loc/4 (xy -> yx)
conv8_2_mbox_conf -> multibox/conf/4
conv9_2_mbox_loc -> multibox/loc/5 (xy -> yx)
conv9_2_mbox_conf -> multibox/conf/5

@yuyu2172
Copy link
Member

yuyu2172 commented Jun 11, 2017

It raised an error when I run the script on Python2.

AttributeError: 'module' object has no attribute 'fullmatch'

@yuyu2172 yuyu2172 added this to the v0.6 milestone Jun 11, 2017
@Hakuyume
Copy link
Member Author

Sorry, fullmatch doesn't exist in python2. I will replace it with match.

@yuyu2172
Copy link
Member

LGTM.
It worked on Python2.

@yuyu2172 yuyu2172 merged commit f37afd7 into chainer:master Jun 12, 2017
@Hakuyume Hakuyume deleted the improve-ssd-caffe2npz branch June 13, 2017 23:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants