From 9735747a78e71eb4e88c883094872dbed565b3e1 Mon Sep 17 00:00:00 2001 From: rhymmor Date: Wed, 5 Apr 2017 12:16:14 +0700 Subject: [PATCH 1/3] added VGG16 model --- package/.cm/alias-a-caffemodel-vgg16 | 1 + package/.cm/alias-u-9511d37475281f84 | 1 + package/caffemodel-vgg16/.cm/desc.json | 1 + package/caffemodel-vgg16/.cm/info.json | 15 + package/caffemodel-vgg16/.cm/meta.json | 54 ++++ package/caffemodel-vgg16/deploy.prototxt | 345 +++++++++++++++++++++++ 6 files changed, 417 insertions(+) create mode 100644 package/.cm/alias-a-caffemodel-vgg16 create mode 100644 package/.cm/alias-u-9511d37475281f84 create mode 100644 package/caffemodel-vgg16/.cm/desc.json create mode 100644 package/caffemodel-vgg16/.cm/info.json create mode 100644 package/caffemodel-vgg16/.cm/meta.json create mode 100644 package/caffemodel-vgg16/deploy.prototxt diff --git a/package/.cm/alias-a-caffemodel-vgg16 b/package/.cm/alias-a-caffemodel-vgg16 new file mode 100644 index 0000000..4ece645 --- /dev/null +++ b/package/.cm/alias-a-caffemodel-vgg16 @@ -0,0 +1 @@ +9511d37475281f84 diff --git a/package/.cm/alias-u-9511d37475281f84 b/package/.cm/alias-u-9511d37475281f84 new file mode 100644 index 0000000..2d8d1b4 --- /dev/null +++ b/package/.cm/alias-u-9511d37475281f84 @@ -0,0 +1 @@ +caffemodel-vgg16 diff --git a/package/caffemodel-vgg16/.cm/desc.json b/package/caffemodel-vgg16/.cm/desc.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/package/caffemodel-vgg16/.cm/desc.json @@ -0,0 +1 @@ +{} diff --git a/package/caffemodel-vgg16/.cm/info.json b/package/caffemodel-vgg16/.cm/info.json new file mode 100644 index 0000000..e5be5dd --- /dev/null +++ b/package/caffemodel-vgg16/.cm/info.json @@ -0,0 +1,15 @@ +{ + "backup_data_uid": "9511d37475281f84", + "backup_module_uid": "1dc07ee0f4742028", + "backup_module_uoa": "package", + "control": { + "engine": "CK", + "iso_datetime": "2017-04-05T11:13:13.009661", + "version": [ + "1", + "8", + "7" + ] + }, + "data_name": "caffemodel-vgg16" +} diff --git a/package/caffemodel-vgg16/.cm/meta.json b/package/caffemodel-vgg16/.cm/meta.json new file mode 100644 index 0000000..d80a300 --- /dev/null +++ b/package/caffemodel-vgg16/.cm/meta.json @@ -0,0 +1,54 @@ +{ + "check_exit_status": "yes", + "customize": { + "extra_dir": "", + "file_with_weights": "VGG_ILSVRC_16_layers.caffemodel", + "force_ask_path": "yes", + "install_env": { + "MODEL_FILE": "VGG_ILSVRC_16_layers.caffemodel", + "MODEL_HASH_CALCULATOR": "sha1sum", + "MODEL_HASH_REF": "9363e1f6d65f7dba68c4f27a1e62105cdf6c4e24", + "MODEL_URL": "http://www.robots.ox.ac.uk/~vgg/software/very_deep/caffe/VGG_ILSVRC_16_layers.caffemodel" + }, + "no_os_in_suggested_path": "yes", + "no_ver_in_suggested_path": "yes", + "params": { + "deploy": { + "substitute": { + "batch_size": 10 + }, + "template": "deploy.prototxt" + } + }, + "skip_file_check": "yes", + "version": "deploy" + }, + "end_full_path": { + "linux": "VGG_ILSVRC_16_layers.caffemodel", + "win": "VGG_ILSVRC_16_layers.caffemodel" + }, + "only_for_host_os_tags": [ + "windows", + "linux" + ], + "only_for_target_os_tags": [ + "windows", + "linux" + ], + "package_extra_name": " (vgg, vgg16)", + "process_script": "download", + "soft_uoa": "e2400aabc11d6cd1", + "suggested_path": "caffemodel-vgg16", + "tags": [ + "caffe", + "weights", + "caffemodel", + "vgg", + "vgg16" + ], + "use_scripts_from_another_entry": { + "data_uoa": "download-caffemodel", + "module_uoa": "script", + "repo_uoa": "ck-caffe" + } +} diff --git a/package/caffemodel-vgg16/deploy.prototxt b/package/caffemodel-vgg16/deploy.prototxt new file mode 100644 index 0000000..0067c9b --- /dev/null +++ b/package/caffemodel-vgg16/deploy.prototxt @@ -0,0 +1,345 @@ +name: "VGG_ILSVRC_16_layers" +input: "data" +input_dim: 10 +input_dim: 3 +input_dim: 224 +input_dim: 224 +layers { + bottom: "data" + top: "conv1_1" + name: "conv1_1" + type: CONVOLUTION + convolution_param { + num_output: 64 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv1_1" + top: "conv1_1" + name: "relu1_1" + type: RELU +} +layers { + bottom: "conv1_1" + top: "conv1_2" + name: "conv1_2" + type: CONVOLUTION + convolution_param { + num_output: 64 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv1_2" + top: "conv1_2" + name: "relu1_2" + type: RELU +} +layers { + bottom: "conv1_2" + top: "pool1" + name: "pool1" + type: POOLING + pooling_param { + pool: MAX + kernel_size: 2 + stride: 2 + } +} +layers { + bottom: "pool1" + top: "conv2_1" + name: "conv2_1" + type: CONVOLUTION + convolution_param { + num_output: 128 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv2_1" + top: "conv2_1" + name: "relu2_1" + type: RELU +} +layers { + bottom: "conv2_1" + top: "conv2_2" + name: "conv2_2" + type: CONVOLUTION + convolution_param { + num_output: 128 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv2_2" + top: "conv2_2" + name: "relu2_2" + type: RELU +} +layers { + bottom: "conv2_2" + top: "pool2" + name: "pool2" + type: POOLING + pooling_param { + pool: MAX + kernel_size: 2 + stride: 2 + } +} +layers { + bottom: "pool2" + top: "conv3_1" + name: "conv3_1" + type: CONVOLUTION + convolution_param { + num_output: 256 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv3_1" + top: "conv3_1" + name: "relu3_1" + type: RELU +} +layers { + bottom: "conv3_1" + top: "conv3_2" + name: "conv3_2" + type: CONVOLUTION + convolution_param { + num_output: 256 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv3_2" + top: "conv3_2" + name: "relu3_2" + type: RELU +} +layers { + bottom: "conv3_2" + top: "conv3_3" + name: "conv3_3" + type: CONVOLUTION + convolution_param { + num_output: 256 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv3_3" + top: "conv3_3" + name: "relu3_3" + type: RELU +} +layers { + bottom: "conv3_3" + top: "pool3" + name: "pool3" + type: POOLING + pooling_param { + pool: MAX + kernel_size: 2 + stride: 2 + } +} +layers { + bottom: "pool3" + top: "conv4_1" + name: "conv4_1" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv4_1" + top: "conv4_1" + name: "relu4_1" + type: RELU +} +layers { + bottom: "conv4_1" + top: "conv4_2" + name: "conv4_2" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv4_2" + top: "conv4_2" + name: "relu4_2" + type: RELU +} +layers { + bottom: "conv4_2" + top: "conv4_3" + name: "conv4_3" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv4_3" + top: "conv4_3" + name: "relu4_3" + type: RELU +} +layers { + bottom: "conv4_3" + top: "pool4" + name: "pool4" + type: POOLING + pooling_param { + pool: MAX + kernel_size: 2 + stride: 2 + } +} +layers { + bottom: "pool4" + top: "conv5_1" + name: "conv5_1" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv5_1" + top: "conv5_1" + name: "relu5_1" + type: RELU +} +layers { + bottom: "conv5_1" + top: "conv5_2" + name: "conv5_2" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv5_2" + top: "conv5_2" + name: "relu5_2" + type: RELU +} +layers { + bottom: "conv5_2" + top: "conv5_3" + name: "conv5_3" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv5_3" + top: "conv5_3" + name: "relu5_3" + type: RELU +} +layers { + bottom: "conv5_3" + top: "pool5" + name: "pool5" + type: POOLING + pooling_param { + pool: MAX + kernel_size: 2 + stride: 2 + } +} +layers { + bottom: "pool5" + top: "fc6" + name: "fc6" + type: INNER_PRODUCT + inner_product_param { + num_output: 4096 + } +} +layers { + bottom: "fc6" + top: "fc6" + name: "relu6" + type: RELU +} +layers { + bottom: "fc6" + top: "fc6" + name: "drop6" + type: DROPOUT + dropout_param { + dropout_ratio: 0.5 + } +} +layers { + bottom: "fc6" + top: "fc7" + name: "fc7" + type: INNER_PRODUCT + inner_product_param { + num_output: 4096 + } +} +layers { + bottom: "fc7" + top: "fc7" + name: "relu7" + type: RELU +} +layers { + bottom: "fc7" + top: "fc7" + name: "drop7" + type: DROPOUT + dropout_param { + dropout_ratio: 0.5 + } +} +layers { + bottom: "fc7" + top: "fc8" + name: "fc8" + type: INNER_PRODUCT + inner_product_param { + num_output: 1000 + } +} +layers { + bottom: "fc8" + top: "prob" + name: "prob" + type: SOFTMAX +} From 50b65ac4e41f451d36d9d6aa60770297103186c3 Mon Sep 17 00:00:00 2001 From: rhymmor Date: Wed, 5 Apr 2017 12:16:28 +0700 Subject: [PATCH 2/3] added VGG19 model --- package/.cm/alias-a-caffemodel-vgg19 | 1 + package/.cm/alias-u-70d16f21cc47d6a6 | 1 + package/caffemodel-vgg19/.cm/desc.json | 1 + package/caffemodel-vgg19/.cm/info.json | 15 + package/caffemodel-vgg19/.cm/meta.json | 54 ++++ package/caffemodel-vgg19/deploy.prototxt | 396 +++++++++++++++++++++++ 6 files changed, 468 insertions(+) create mode 100644 package/.cm/alias-a-caffemodel-vgg19 create mode 100644 package/.cm/alias-u-70d16f21cc47d6a6 create mode 100644 package/caffemodel-vgg19/.cm/desc.json create mode 100644 package/caffemodel-vgg19/.cm/info.json create mode 100644 package/caffemodel-vgg19/.cm/meta.json create mode 100644 package/caffemodel-vgg19/deploy.prototxt diff --git a/package/.cm/alias-a-caffemodel-vgg19 b/package/.cm/alias-a-caffemodel-vgg19 new file mode 100644 index 0000000..f775025 --- /dev/null +++ b/package/.cm/alias-a-caffemodel-vgg19 @@ -0,0 +1 @@ +70d16f21cc47d6a6 diff --git a/package/.cm/alias-u-70d16f21cc47d6a6 b/package/.cm/alias-u-70d16f21cc47d6a6 new file mode 100644 index 0000000..edd1403 --- /dev/null +++ b/package/.cm/alias-u-70d16f21cc47d6a6 @@ -0,0 +1 @@ +caffemodel-vgg19 diff --git a/package/caffemodel-vgg19/.cm/desc.json b/package/caffemodel-vgg19/.cm/desc.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/package/caffemodel-vgg19/.cm/desc.json @@ -0,0 +1 @@ +{} diff --git a/package/caffemodel-vgg19/.cm/info.json b/package/caffemodel-vgg19/.cm/info.json new file mode 100644 index 0000000..153a1ac --- /dev/null +++ b/package/caffemodel-vgg19/.cm/info.json @@ -0,0 +1,15 @@ +{ + "backup_data_uid": "70d16f21cc47d6a6", + "backup_module_uid": "1dc07ee0f4742028", + "backup_module_uoa": "package", + "control": { + "engine": "CK", + "iso_datetime": "2017-04-05T11:56:15.458578", + "version": [ + "1", + "8", + "7" + ] + }, + "data_name": "caffemodel-vgg19" +} diff --git a/package/caffemodel-vgg19/.cm/meta.json b/package/caffemodel-vgg19/.cm/meta.json new file mode 100644 index 0000000..48ffe02 --- /dev/null +++ b/package/caffemodel-vgg19/.cm/meta.json @@ -0,0 +1,54 @@ +{ + "check_exit_status": "yes", + "customize": { + "extra_dir": "", + "file_with_weights": "VGG_ILSVRC_19_layers.caffemodel", + "force_ask_path": "yes", + "install_env": { + "MODEL_FILE": "VGG_ILSVRC_19_layers.caffemodel", + "MODEL_HASH_CALCULATOR": "sha1sum", + "MODEL_HASH_REF": "", + "MODEL_URL": "http://www.robots.ox.ac.uk/~vgg/software/very_deep/caffe/VGG_ILSVRC_19_layers.caffemodel" + }, + "no_os_in_suggested_path": "yes", + "no_ver_in_suggested_path": "yes", + "params": { + "deploy": { + "substitute": { + "batch_size": 10 + }, + "template": "deploy.prototxt" + } + }, + "skip_file_check": "yes", + "version": "deploy" + }, + "end_full_path": { + "linux": "VGG_ILSVRC_19_layers.caffemodel", + "win": "VGG_ILSVRC_19_layers.caffemodel" + }, + "only_for_host_os_tags": [ + "windows", + "linux" + ], + "only_for_target_os_tags": [ + "windows", + "linux" + ], + "package_extra_name": " (vgg, vgg19)", + "process_script": "download", + "soft_uoa": "e2400aabc11d6cd1", + "suggested_path": "caffemodel-vgg19", + "tags": [ + "caffe", + "weights", + "caffemodel", + "vgg", + "vgg19" + ], + "use_scripts_from_another_entry": { + "data_uoa": "download-caffemodel", + "module_uoa": "script", + "repo_uoa": "ck-caffe" + } +} diff --git a/package/caffemodel-vgg19/deploy.prototxt b/package/caffemodel-vgg19/deploy.prototxt new file mode 100644 index 0000000..f02f876 --- /dev/null +++ b/package/caffemodel-vgg19/deploy.prototxt @@ -0,0 +1,396 @@ +name: "VGG_ILSVRC_19_layers" +input: "data" +input_dim: 10 +input_dim: 3 +input_dim: 224 +input_dim: 224 +layers { + bottom: "data" + top: "conv1_1" + name: "conv1_1" + type: CONVOLUTION + convolution_param { + num_output: 64 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv1_1" + top: "conv1_1" + name: "relu1_1" + type: RELU +} +layers { + bottom: "conv1_1" + top: "conv1_2" + name: "conv1_2" + type: CONVOLUTION + convolution_param { + num_output: 64 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv1_2" + top: "conv1_2" + name: "relu1_2" + type: RELU +} +layers { + bottom: "conv1_2" + top: "pool1" + name: "pool1" + type: POOLING + pooling_param { + pool: MAX + kernel_size: 2 + stride: 2 + } +} +layers { + bottom: "pool1" + top: "conv2_1" + name: "conv2_1" + type: CONVOLUTION + convolution_param { + num_output: 128 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv2_1" + top: "conv2_1" + name: "relu2_1" + type: RELU +} +layers { + bottom: "conv2_1" + top: "conv2_2" + name: "conv2_2" + type: CONVOLUTION + convolution_param { + num_output: 128 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv2_2" + top: "conv2_2" + name: "relu2_2" + type: RELU +} +layers { + bottom: "conv2_2" + top: "pool2" + name: "pool2" + type: POOLING + pooling_param { + pool: MAX + kernel_size: 2 + stride: 2 + } +} +layers { + bottom: "pool2" + top: "conv3_1" + name: "conv3_1" + type: CONVOLUTION + convolution_param { + num_output: 256 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv3_1" + top: "conv3_1" + name: "relu3_1" + type: RELU +} +layers { + bottom: "conv3_1" + top: "conv3_2" + name: "conv3_2" + type: CONVOLUTION + convolution_param { + num_output: 256 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv3_2" + top: "conv3_2" + name: "relu3_2" + type: RELU +} +layers { + bottom: "conv3_2" + top: "conv3_3" + name: "conv3_3" + type: CONVOLUTION + convolution_param { + num_output: 256 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv3_3" + top: "conv3_3" + name: "relu3_3" + type: RELU +} +layers { + bottom: "conv3_3" + top: "conv3_4" + name: "conv3_4" + type: CONVOLUTION + convolution_param { + num_output: 256 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv3_4" + top: "conv3_4" + name: "relu3_4" + type: RELU +} +layers { + bottom: "conv3_4" + top: "pool3" + name: "pool3" + type: POOLING + pooling_param { + pool: MAX + kernel_size: 2 + stride: 2 + } +} +layers { + bottom: "pool3" + top: "conv4_1" + name: "conv4_1" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv4_1" + top: "conv4_1" + name: "relu4_1" + type: RELU +} +layers { + bottom: "conv4_1" + top: "conv4_2" + name: "conv4_2" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv4_2" + top: "conv4_2" + name: "relu4_2" + type: RELU +} +layers { + bottom: "conv4_2" + top: "conv4_3" + name: "conv4_3" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv4_3" + top: "conv4_3" + name: "relu4_3" + type: RELU +} +layers { + bottom: "conv4_3" + top: "conv4_4" + name: "conv4_4" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv4_4" + top: "conv4_4" + name: "relu4_4" + type: RELU +} +layers { + bottom: "conv4_4" + top: "pool4" + name: "pool4" + type: POOLING + pooling_param { + pool: MAX + kernel_size: 2 + stride: 2 + } +} +layers { + bottom: "pool4" + top: "conv5_1" + name: "conv5_1" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv5_1" + top: "conv5_1" + name: "relu5_1" + type: RELU +} +layers { + bottom: "conv5_1" + top: "conv5_2" + name: "conv5_2" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv5_2" + top: "conv5_2" + name: "relu5_2" + type: RELU +} +layers { + bottom: "conv5_2" + top: "conv5_3" + name: "conv5_3" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv5_3" + top: "conv5_3" + name: "relu5_3" + type: RELU +} +layers { + bottom: "conv5_3" + top: "conv5_4" + name: "conv5_4" + type: CONVOLUTION + convolution_param { + num_output: 512 + pad: 1 + kernel_size: 3 + } +} +layers { + bottom: "conv5_4" + top: "conv5_4" + name: "relu5_4" + type: RELU +} +layers { + bottom: "conv5_4" + top: "pool5" + name: "pool5" + type: POOLING + pooling_param { + pool: MAX + kernel_size: 2 + stride: 2 + } +} +layers { + bottom: "pool5" + top: "fc6" + name: "fc6" + type: INNER_PRODUCT + inner_product_param { + num_output: 4096 + } +} +layers { + bottom: "fc6" + top: "fc6" + name: "relu6" + type: RELU +} +layers { + bottom: "fc6" + top: "fc6" + name: "drop6" + type: DROPOUT + dropout_param { + dropout_ratio: 0.5 + } +} +layers { + bottom: "fc6" + top: "fc7" + name: "fc7" + type: INNER_PRODUCT + inner_product_param { + num_output: 4096 + } +} +layers { + bottom: "fc7" + top: "fc7" + name: "relu7" + type: RELU +} +layers { + bottom: "fc7" + top: "fc7" + name: "drop7" + type: DROPOUT + dropout_param { + dropout_ratio: 0.5 + } +} +layers { + bottom: "fc7" + top: "fc8" + name: "fc8" + type: INNER_PRODUCT + inner_product_param { + num_output: 1000 + } +} +layers { + bottom: "fc8" + top: "prob" + name: "prob" + type: SOFTMAX +} From 76488adcecaf89f9bd63844c9e801070f9e72d14 Mon Sep 17 00:00:00 2001 From: rhymmor Date: Wed, 5 Apr 2017 12:48:36 +0700 Subject: [PATCH 3/3] added missing hash --- package/caffemodel-vgg19/.cm/meta.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/caffemodel-vgg19/.cm/meta.json b/package/caffemodel-vgg19/.cm/meta.json index 48ffe02..a7d704e 100644 --- a/package/caffemodel-vgg19/.cm/meta.json +++ b/package/caffemodel-vgg19/.cm/meta.json @@ -7,7 +7,7 @@ "install_env": { "MODEL_FILE": "VGG_ILSVRC_19_layers.caffemodel", "MODEL_HASH_CALCULATOR": "sha1sum", - "MODEL_HASH_REF": "", + "MODEL_HASH_REF": "239785e7862442717d831f682bb824055e51e9ba", "MODEL_URL": "http://www.robots.ox.ac.uk/~vgg/software/very_deep/caffe/VGG_ILSVRC_19_layers.caffemodel" }, "no_os_in_suggested_path": "yes",