diff --git a/demos/data/xception/xception.json b/demos/data/xception/xception.json new file mode 100644 index 0000000..acb6a54 --- /dev/null +++ b/demos/data/xception/xception.json @@ -0,0 +1 @@ +{"class_name": "Model", "config": {"input_layers": [["input_1", 0, 0]], "layers": [{"class_name": "InputLayer", "config": {"batch_input_shape": [null, 299, 299, 3], "sparse": false, "input_dtype": "float32", "name": "input_1"}, "name": "input_1", "inbound_nodes": []}, {"class_name": "Convolution2D", "config": {"W_constraint": null, "bias": false, "init": "glorot_uniform", "subsample": [2, 2], "dim_ordering": "tf", "nb_row": 3, "W_regularizer": null, "nb_filter": 32, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block1_conv1", "border_mode": "valid", "b_regularizer": null, "activity_regularizer": null, "b_constraint": null}, "name": "block1_conv1", "inbound_nodes": [[["input_1", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block1_conv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block1_conv1_bn", "inbound_nodes": [[["block1_conv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block1_conv1_act"}, "name": "block1_conv1_act", "inbound_nodes": [[["block1_conv1_bn", 0, 0]]]}, {"class_name": "Convolution2D", "config": {"W_constraint": null, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "W_regularizer": null, "nb_filter": 64, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block1_conv2", "border_mode": "valid", "b_regularizer": null, "activity_regularizer": null, "b_constraint": null}, "name": "block1_conv2", "inbound_nodes": [[["block1_conv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block1_conv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block1_conv2_bn", "inbound_nodes": [[["block1_conv2", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block1_conv2_act"}, "name": "block1_conv2_act", "inbound_nodes": [[["block1_conv2_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 128, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block2_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block2_sepconv1", "inbound_nodes": [[["block1_conv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block2_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block2_sepconv1_bn", "inbound_nodes": [[["block2_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block2_sepconv2_act"}, "name": "block2_sepconv2_act", "inbound_nodes": [[["block2_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 128, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block2_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block2_sepconv2", "inbound_nodes": [[["block2_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block2_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block2_sepconv2_bn", "inbound_nodes": [[["block2_sepconv2", 0, 0]]]}, {"class_name": "Convolution2D", "config": {"W_constraint": null, "bias": false, "init": "glorot_uniform", "subsample": [2, 2], "dim_ordering": "tf", "nb_row": 1, "W_regularizer": null, "nb_filter": 128, "activation": "linear", "trainable": true, "nb_col": 1, "name": "convolution2d_1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null, "b_constraint": null}, "name": "convolution2d_1", "inbound_nodes": [[["block1_conv2_act", 0, 0]]]}, {"class_name": "MaxPooling2D", "config": {"trainable": true, "pool_size": [3, 3], "dim_ordering": "tf", "border_mode": "same", "name": "block2_pool", "strides": [2, 2]}, "name": "block2_pool", "inbound_nodes": [[["block2_sepconv2_bn", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "batchnormalization_1", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "batchnormalization_1", "inbound_nodes": [[["convolution2d_1", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_1", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_1", "inbound_nodes": [[["block2_pool", 0, 0], ["batchnormalization_1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block3_sepconv1_act"}, "name": "block3_sepconv1_act", "inbound_nodes": [[["merge_1", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 256, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block3_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block3_sepconv1", "inbound_nodes": [[["block3_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block3_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block3_sepconv1_bn", "inbound_nodes": [[["block3_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block3_sepconv2_act"}, "name": "block3_sepconv2_act", "inbound_nodes": [[["block3_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 256, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block3_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block3_sepconv2", "inbound_nodes": [[["block3_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block3_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block3_sepconv2_bn", "inbound_nodes": [[["block3_sepconv2", 0, 0]]]}, {"class_name": "Convolution2D", "config": {"W_constraint": null, "bias": false, "init": "glorot_uniform", "subsample": [2, 2], "dim_ordering": "tf", "nb_row": 1, "W_regularizer": null, "nb_filter": 256, "activation": "linear", "trainable": true, "nb_col": 1, "name": "convolution2d_2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null, "b_constraint": null}, "name": "convolution2d_2", "inbound_nodes": [[["merge_1", 0, 0]]]}, {"class_name": "MaxPooling2D", "config": {"trainable": true, "pool_size": [3, 3], "dim_ordering": "tf", "border_mode": "same", "name": "block3_pool", "strides": [2, 2]}, "name": "block3_pool", "inbound_nodes": [[["block3_sepconv2_bn", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "batchnormalization_2", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "batchnormalization_2", "inbound_nodes": [[["convolution2d_2", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_2", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_2", "inbound_nodes": [[["block3_pool", 0, 0], ["batchnormalization_2", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block4_sepconv1_act"}, "name": "block4_sepconv1_act", "inbound_nodes": [[["merge_2", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block4_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block4_sepconv1", "inbound_nodes": [[["block4_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block4_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block4_sepconv1_bn", "inbound_nodes": [[["block4_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block4_sepconv2_act"}, "name": "block4_sepconv2_act", "inbound_nodes": [[["block4_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block4_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block4_sepconv2", "inbound_nodes": [[["block4_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block4_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block4_sepconv2_bn", "inbound_nodes": [[["block4_sepconv2", 0, 0]]]}, {"class_name": "Convolution2D", "config": {"W_constraint": null, "bias": false, "init": "glorot_uniform", "subsample": [2, 2], "dim_ordering": "tf", "nb_row": 1, "W_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 1, "name": "convolution2d_3", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null, "b_constraint": null}, "name": "convolution2d_3", "inbound_nodes": [[["merge_2", 0, 0]]]}, {"class_name": "MaxPooling2D", "config": {"trainable": true, "pool_size": [3, 3], "dim_ordering": "tf", "border_mode": "same", "name": "block4_pool", "strides": [2, 2]}, "name": "block4_pool", "inbound_nodes": [[["block4_sepconv2_bn", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "batchnormalization_3", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "batchnormalization_3", "inbound_nodes": [[["convolution2d_3", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_3", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_3", "inbound_nodes": [[["block4_pool", 0, 0], ["batchnormalization_3", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block5_sepconv1_act"}, "name": "block5_sepconv1_act", "inbound_nodes": [[["merge_3", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block5_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block5_sepconv1", "inbound_nodes": [[["block5_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block5_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block5_sepconv1_bn", "inbound_nodes": [[["block5_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block5_sepconv2_act"}, "name": "block5_sepconv2_act", "inbound_nodes": [[["block5_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block5_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block5_sepconv2", "inbound_nodes": [[["block5_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block5_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block5_sepconv2_bn", "inbound_nodes": [[["block5_sepconv2", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block5_sepconv3_act"}, "name": "block5_sepconv3_act", "inbound_nodes": [[["block5_sepconv2_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block5_sepconv3", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block5_sepconv3", "inbound_nodes": [[["block5_sepconv3_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block5_sepconv3_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block5_sepconv3_bn", "inbound_nodes": [[["block5_sepconv3", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_4", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_4", "inbound_nodes": [[["block5_sepconv3_bn", 0, 0], ["merge_3", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block6_sepconv1_act"}, "name": "block6_sepconv1_act", "inbound_nodes": [[["merge_4", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block6_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block6_sepconv1", "inbound_nodes": [[["block6_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block6_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block6_sepconv1_bn", "inbound_nodes": [[["block6_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block6_sepconv2_act"}, "name": "block6_sepconv2_act", "inbound_nodes": [[["block6_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block6_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block6_sepconv2", "inbound_nodes": [[["block6_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block6_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block6_sepconv2_bn", "inbound_nodes": [[["block6_sepconv2", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block6_sepconv3_act"}, "name": "block6_sepconv3_act", "inbound_nodes": [[["block6_sepconv2_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block6_sepconv3", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block6_sepconv3", "inbound_nodes": [[["block6_sepconv3_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block6_sepconv3_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block6_sepconv3_bn", "inbound_nodes": [[["block6_sepconv3", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_5", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_5", "inbound_nodes": [[["block6_sepconv3_bn", 0, 0], ["merge_4", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block7_sepconv1_act"}, "name": "block7_sepconv1_act", "inbound_nodes": [[["merge_5", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block7_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block7_sepconv1", "inbound_nodes": [[["block7_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block7_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block7_sepconv1_bn", "inbound_nodes": [[["block7_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block7_sepconv2_act"}, "name": "block7_sepconv2_act", "inbound_nodes": [[["block7_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block7_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block7_sepconv2", "inbound_nodes": [[["block7_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block7_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block7_sepconv2_bn", "inbound_nodes": [[["block7_sepconv2", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block7_sepconv3_act"}, "name": "block7_sepconv3_act", "inbound_nodes": [[["block7_sepconv2_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block7_sepconv3", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block7_sepconv3", "inbound_nodes": [[["block7_sepconv3_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block7_sepconv3_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block7_sepconv3_bn", "inbound_nodes": [[["block7_sepconv3", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_6", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_6", "inbound_nodes": [[["block7_sepconv3_bn", 0, 0], ["merge_5", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block8_sepconv1_act"}, "name": "block8_sepconv1_act", "inbound_nodes": [[["merge_6", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block8_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block8_sepconv1", "inbound_nodes": [[["block8_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block8_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block8_sepconv1_bn", "inbound_nodes": [[["block8_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block8_sepconv2_act"}, "name": "block8_sepconv2_act", "inbound_nodes": [[["block8_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block8_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block8_sepconv2", "inbound_nodes": [[["block8_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block8_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block8_sepconv2_bn", "inbound_nodes": [[["block8_sepconv2", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block8_sepconv3_act"}, "name": "block8_sepconv3_act", "inbound_nodes": [[["block8_sepconv2_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block8_sepconv3", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block8_sepconv3", "inbound_nodes": [[["block8_sepconv3_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block8_sepconv3_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block8_sepconv3_bn", "inbound_nodes": [[["block8_sepconv3", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_7", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_7", "inbound_nodes": [[["block8_sepconv3_bn", 0, 0], ["merge_6", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block9_sepconv1_act"}, "name": "block9_sepconv1_act", "inbound_nodes": [[["merge_7", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block9_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block9_sepconv1", "inbound_nodes": [[["block9_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block9_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block9_sepconv1_bn", "inbound_nodes": [[["block9_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block9_sepconv2_act"}, "name": "block9_sepconv2_act", "inbound_nodes": [[["block9_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block9_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block9_sepconv2", "inbound_nodes": [[["block9_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block9_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block9_sepconv2_bn", "inbound_nodes": [[["block9_sepconv2", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block9_sepconv3_act"}, "name": "block9_sepconv3_act", "inbound_nodes": [[["block9_sepconv2_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block9_sepconv3", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block9_sepconv3", "inbound_nodes": [[["block9_sepconv3_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block9_sepconv3_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block9_sepconv3_bn", "inbound_nodes": [[["block9_sepconv3", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_8", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_8", "inbound_nodes": [[["block9_sepconv3_bn", 0, 0], ["merge_7", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block10_sepconv1_act"}, "name": "block10_sepconv1_act", "inbound_nodes": [[["merge_8", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block10_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block10_sepconv1", "inbound_nodes": [[["block10_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block10_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block10_sepconv1_bn", "inbound_nodes": [[["block10_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block10_sepconv2_act"}, "name": "block10_sepconv2_act", "inbound_nodes": [[["block10_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block10_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block10_sepconv2", "inbound_nodes": [[["block10_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block10_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block10_sepconv2_bn", "inbound_nodes": [[["block10_sepconv2", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block10_sepconv3_act"}, "name": "block10_sepconv3_act", "inbound_nodes": [[["block10_sepconv2_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block10_sepconv3", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block10_sepconv3", "inbound_nodes": [[["block10_sepconv3_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block10_sepconv3_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block10_sepconv3_bn", "inbound_nodes": [[["block10_sepconv3", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_9", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_9", "inbound_nodes": [[["block10_sepconv3_bn", 0, 0], ["merge_8", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block11_sepconv1_act"}, "name": "block11_sepconv1_act", "inbound_nodes": [[["merge_9", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block11_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block11_sepconv1", "inbound_nodes": [[["block11_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block11_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block11_sepconv1_bn", "inbound_nodes": [[["block11_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block11_sepconv2_act"}, "name": "block11_sepconv2_act", "inbound_nodes": [[["block11_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block11_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block11_sepconv2", "inbound_nodes": [[["block11_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block11_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block11_sepconv2_bn", "inbound_nodes": [[["block11_sepconv2", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block11_sepconv3_act"}, "name": "block11_sepconv3_act", "inbound_nodes": [[["block11_sepconv2_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block11_sepconv3", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block11_sepconv3", "inbound_nodes": [[["block11_sepconv3_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block11_sepconv3_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block11_sepconv3_bn", "inbound_nodes": [[["block11_sepconv3", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_10", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_10", "inbound_nodes": [[["block11_sepconv3_bn", 0, 0], ["merge_9", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block12_sepconv1_act"}, "name": "block12_sepconv1_act", "inbound_nodes": [[["merge_10", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block12_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block12_sepconv1", "inbound_nodes": [[["block12_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block12_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block12_sepconv1_bn", "inbound_nodes": [[["block12_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block12_sepconv2_act"}, "name": "block12_sepconv2_act", "inbound_nodes": [[["block12_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block12_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block12_sepconv2", "inbound_nodes": [[["block12_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block12_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block12_sepconv2_bn", "inbound_nodes": [[["block12_sepconv2", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block12_sepconv3_act"}, "name": "block12_sepconv3_act", "inbound_nodes": [[["block12_sepconv2_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block12_sepconv3", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block12_sepconv3", "inbound_nodes": [[["block12_sepconv3_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block12_sepconv3_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block12_sepconv3_bn", "inbound_nodes": [[["block12_sepconv3", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_11", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_11", "inbound_nodes": [[["block12_sepconv3_bn", 0, 0], ["merge_10", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block13_sepconv1_act"}, "name": "block13_sepconv1_act", "inbound_nodes": [[["merge_11", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 728, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block13_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block13_sepconv1", "inbound_nodes": [[["block13_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block13_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block13_sepconv1_bn", "inbound_nodes": [[["block13_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block13_sepconv2_act"}, "name": "block13_sepconv2_act", "inbound_nodes": [[["block13_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 1024, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block13_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block13_sepconv2", "inbound_nodes": [[["block13_sepconv2_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block13_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block13_sepconv2_bn", "inbound_nodes": [[["block13_sepconv2", 0, 0]]]}, {"class_name": "Convolution2D", "config": {"W_constraint": null, "bias": false, "init": "glorot_uniform", "subsample": [2, 2], "dim_ordering": "tf", "nb_row": 1, "W_regularizer": null, "nb_filter": 1024, "activation": "linear", "trainable": true, "nb_col": 1, "name": "convolution2d_4", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null, "b_constraint": null}, "name": "convolution2d_4", "inbound_nodes": [[["merge_11", 0, 0]]]}, {"class_name": "MaxPooling2D", "config": {"trainable": true, "pool_size": [3, 3], "dim_ordering": "tf", "border_mode": "same", "name": "block13_pool", "strides": [2, 2]}, "name": "block13_pool", "inbound_nodes": [[["block13_sepconv2_bn", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "batchnormalization_4", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "batchnormalization_4", "inbound_nodes": [[["convolution2d_4", 0, 0]]]}, {"class_name": "Merge", "config": {"dot_axes": -1, "name": "merge_12", "mode": "sum", "output_shape": null, "output_shape_type": "raw", "concat_axis": -1, "mode_type": "raw"}, "name": "merge_12", "inbound_nodes": [[["block13_pool", 0, 0], ["batchnormalization_4", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 1536, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block14_sepconv1", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block14_sepconv1", "inbound_nodes": [[["merge_12", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block14_sepconv1_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block14_sepconv1_bn", "inbound_nodes": [[["block14_sepconv1", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block14_sepconv1_act"}, "name": "block14_sepconv1_act", "inbound_nodes": [[["block14_sepconv1_bn", 0, 0]]]}, {"class_name": "SeparableConvolution2D", "config": {"b_constraint": null, "depth_multiplier": 1, "bias": false, "init": "glorot_uniform", "subsample": [1, 1], "dim_ordering": "tf", "nb_row": 3, "pointwise_constraint": null, "depthwise_regularizer": null, "depthwise_constraint": null, "pointwise_regularizer": null, "nb_filter": 2048, "activation": "linear", "trainable": true, "nb_col": 3, "name": "block14_sepconv2", "border_mode": "same", "b_regularizer": null, "activity_regularizer": null}, "name": "block14_sepconv2", "inbound_nodes": [[["block14_sepconv1_act", 0, 0]]]}, {"class_name": "BatchNormalization", "config": {"beta_regularizer": null, "trainable": true, "epsilon": 1e-05, "gamma_regularizer": null, "name": "block14_sepconv2_bn", "axis": -1, "mode": 0, "momentum": 0.99}, "name": "block14_sepconv2_bn", "inbound_nodes": [[["block14_sepconv2", 0, 0]]]}, {"class_name": "Activation", "config": {"activation": "relu", "trainable": true, "name": "block14_sepconv2_act"}, "name": "block14_sepconv2_act", "inbound_nodes": [[["block14_sepconv2_bn", 0, 0]]]}, {"class_name": "GlobalAveragePooling2D", "config": {"trainable": true, "name": "avg_pool", "dim_ordering": "tf"}, "name": "avg_pool", "inbound_nodes": [[["block14_sepconv2_act", 0, 0]]]}, {"class_name": "Dense", "config": {"b_constraint": null, "bias": true, "init": "glorot_uniform", "output_dim": 1000, "input_dim": null, "W_regularizer": null, "activity_regularizer": null, "W_constraint": null, "trainable": true, "name": "predictions", "b_regularizer": null, "activation": "softmax"}, "name": "predictions", "inbound_nodes": [[["avg_pool", 0, 0]]]}], "name": "model_1", "output_layers": [["predictions", 0, 0]]}, "keras_version": "1.1.0"} \ No newline at end of file diff --git a/demos/data/xception/xception_metadata.json b/demos/data/xception/xception_metadata.json new file mode 100644 index 0000000..c717114 --- /dev/null +++ b/demos/data/xception/xception_metadata.json @@ -0,0 +1 @@ +[{"layer_name": "block1_conv1", "offset": 0, "weight_name": "block1_conv1_W:0", "shape": [3, 3, 3, 32], "length": 864, "type": "float32"}, {"layer_name": "block1_conv1_bn", "offset": 3456, "weight_name": "block1_conv1_bn_gamma:0", "shape": [32], "length": 32, "type": "float32"}, {"layer_name": "block1_conv1_bn", "offset": 3584, "weight_name": "block1_conv1_bn_beta:0", "shape": [32], "length": 32, "type": "float32"}, {"layer_name": "block1_conv1_bn", "offset": 3712, "weight_name": "block1_conv1_bn_running_mean:0", "shape": [32], "length": 32, "type": "float32"}, {"layer_name": "block1_conv1_bn", "offset": 3840, "weight_name": "block1_conv1_bn_running_std:0", "shape": [32], "length": 32, "type": "float32"}, {"layer_name": "block1_conv2", "offset": 3968, "weight_name": "block1_conv2_W:0", "shape": [3, 3, 32, 64], "length": 18432, "type": "float32"}, {"layer_name": "block1_conv2_bn", "offset": 77696, "weight_name": "block1_conv2_bn_gamma:0", "shape": [64], "length": 64, "type": "float32"}, {"layer_name": "block1_conv2_bn", "offset": 77952, "weight_name": "block1_conv2_bn_beta:0", "shape": [64], "length": 64, "type": "float32"}, {"layer_name": "block1_conv2_bn", "offset": 78208, "weight_name": "block1_conv2_bn_running_mean:0", "shape": [64], "length": 64, "type": "float32"}, {"layer_name": "block1_conv2_bn", "offset": 78464, "weight_name": "block1_conv2_bn_running_std:0", "shape": [64], "length": 64, "type": "float32"}, {"layer_name": "block2_sepconv1", "offset": 78720, "weight_name": "block2_sepconv1_depthwise_kernel:0", "shape": [3, 3, 64, 1], "length": 576, "type": "float32"}, {"layer_name": "block2_sepconv1", "offset": 81024, "weight_name": "block2_sepconv1_pointwise_kernel:0", "shape": [1, 1, 64, 128], "length": 8192, "type": "float32"}, {"layer_name": "block2_sepconv1_bn", "offset": 113792, "weight_name": "block2_sepconv1_bn_gamma:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "block2_sepconv1_bn", "offset": 114304, "weight_name": "block2_sepconv1_bn_beta:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "block2_sepconv1_bn", "offset": 114816, "weight_name": "block2_sepconv1_bn_running_mean:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "block2_sepconv1_bn", "offset": 115328, "weight_name": "block2_sepconv1_bn_running_std:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "block2_sepconv2", "offset": 115840, "weight_name": "block2_sepconv2_depthwise_kernel:0", "shape": [3, 3, 128, 1], "length": 1152, "type": "float32"}, {"layer_name": "block2_sepconv2", "offset": 120448, "weight_name": "block2_sepconv2_pointwise_kernel:0", "shape": [1, 1, 128, 128], "length": 16384, "type": "float32"}, {"layer_name": "block2_sepconv2_bn", "offset": 185984, "weight_name": "block2_sepconv2_bn_gamma:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "block2_sepconv2_bn", "offset": 186496, "weight_name": "block2_sepconv2_bn_beta:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "block2_sepconv2_bn", "offset": 187008, "weight_name": "block2_sepconv2_bn_running_mean:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "block2_sepconv2_bn", "offset": 187520, "weight_name": "block2_sepconv2_bn_running_std:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "convolution2d_1", "offset": 188032, "weight_name": "convolution2d_1_W:0", "shape": [1, 1, 64, 128], "length": 8192, "type": "float32"}, {"layer_name": "batchnormalization_1", "offset": 220800, "weight_name": "batchnormalization_1_gamma:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "batchnormalization_1", "offset": 221312, "weight_name": "batchnormalization_1_beta:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "batchnormalization_1", "offset": 221824, "weight_name": "batchnormalization_1_running_mean:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "batchnormalization_1", "offset": 222336, "weight_name": "batchnormalization_1_running_std:0", "shape": [128], "length": 128, "type": "float32"}, {"layer_name": "block3_sepconv1", "offset": 222848, "weight_name": "block3_sepconv1_depthwise_kernel:0", "shape": [3, 3, 128, 1], "length": 1152, "type": "float32"}, {"layer_name": "block3_sepconv1", "offset": 227456, "weight_name": "block3_sepconv1_pointwise_kernel:0", "shape": [1, 1, 128, 256], "length": 32768, "type": "float32"}, {"layer_name": "block3_sepconv1_bn", "offset": 358528, "weight_name": "block3_sepconv1_bn_gamma:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "block3_sepconv1_bn", "offset": 359552, "weight_name": "block3_sepconv1_bn_beta:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "block3_sepconv1_bn", "offset": 360576, "weight_name": "block3_sepconv1_bn_running_mean:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "block3_sepconv1_bn", "offset": 361600, "weight_name": "block3_sepconv1_bn_running_std:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "block3_sepconv2", "offset": 362624, "weight_name": "block3_sepconv2_depthwise_kernel:0", "shape": [3, 3, 256, 1], "length": 2304, "type": "float32"}, {"layer_name": "block3_sepconv2", "offset": 371840, "weight_name": "block3_sepconv2_pointwise_kernel:0", "shape": [1, 1, 256, 256], "length": 65536, "type": "float32"}, {"layer_name": "block3_sepconv2_bn", "offset": 633984, "weight_name": "block3_sepconv2_bn_gamma:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "block3_sepconv2_bn", "offset": 635008, "weight_name": "block3_sepconv2_bn_beta:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "block3_sepconv2_bn", "offset": 636032, "weight_name": "block3_sepconv2_bn_running_mean:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "block3_sepconv2_bn", "offset": 637056, "weight_name": "block3_sepconv2_bn_running_std:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "convolution2d_2", "offset": 638080, "weight_name": "convolution2d_2_W:0", "shape": [1, 1, 128, 256], "length": 32768, "type": "float32"}, {"layer_name": "batchnormalization_2", "offset": 769152, "weight_name": "batchnormalization_2_gamma:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "batchnormalization_2", "offset": 770176, "weight_name": "batchnormalization_2_beta:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "batchnormalization_2", "offset": 771200, "weight_name": "batchnormalization_2_running_mean:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "batchnormalization_2", "offset": 772224, "weight_name": "batchnormalization_2_running_std:0", "shape": [256], "length": 256, "type": "float32"}, {"layer_name": "block4_sepconv1", "offset": 773248, "weight_name": "block4_sepconv1_depthwise_kernel:0", "shape": [3, 3, 256, 1], "length": 2304, "type": "float32"}, {"layer_name": "block4_sepconv1", "offset": 782464, "weight_name": "block4_sepconv1_pointwise_kernel:0", "shape": [1, 1, 256, 728], "length": 186368, "type": "float32"}, {"layer_name": "block4_sepconv1_bn", "offset": 1527936, "weight_name": "block4_sepconv1_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block4_sepconv1_bn", "offset": 1530848, "weight_name": "block4_sepconv1_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block4_sepconv1_bn", "offset": 1533760, "weight_name": "block4_sepconv1_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block4_sepconv1_bn", "offset": 1536672, "weight_name": "block4_sepconv1_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block4_sepconv2", "offset": 1539584, "weight_name": "block4_sepconv2_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block4_sepconv2", "offset": 1565792, "weight_name": "block4_sepconv2_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block4_sepconv2_bn", "offset": 3685728, "weight_name": "block4_sepconv2_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block4_sepconv2_bn", "offset": 3688640, "weight_name": "block4_sepconv2_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block4_sepconv2_bn", "offset": 3691552, "weight_name": "block4_sepconv2_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block4_sepconv2_bn", "offset": 3694464, "weight_name": "block4_sepconv2_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "convolution2d_3", "offset": 3697376, "weight_name": "convolution2d_3_W:0", "shape": [1, 1, 256, 728], "length": 186368, "type": "float32"}, {"layer_name": "batchnormalization_3", "offset": 4442848, "weight_name": "batchnormalization_3_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "batchnormalization_3", "offset": 4445760, "weight_name": "batchnormalization_3_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "batchnormalization_3", "offset": 4448672, "weight_name": "batchnormalization_3_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "batchnormalization_3", "offset": 4451584, "weight_name": "batchnormalization_3_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv1", "offset": 4454496, "weight_name": "block5_sepconv1_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block5_sepconv1", "offset": 4480704, "weight_name": "block5_sepconv1_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block5_sepconv1_bn", "offset": 6600640, "weight_name": "block5_sepconv1_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv1_bn", "offset": 6603552, "weight_name": "block5_sepconv1_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv1_bn", "offset": 6606464, "weight_name": "block5_sepconv1_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv1_bn", "offset": 6609376, "weight_name": "block5_sepconv1_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv2", "offset": 6612288, "weight_name": "block5_sepconv2_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block5_sepconv2", "offset": 6638496, "weight_name": "block5_sepconv2_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block5_sepconv2_bn", "offset": 8758432, "weight_name": "block5_sepconv2_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv2_bn", "offset": 8761344, "weight_name": "block5_sepconv2_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv2_bn", "offset": 8764256, "weight_name": "block5_sepconv2_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv2_bn", "offset": 8767168, "weight_name": "block5_sepconv2_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv3", "offset": 8770080, "weight_name": "block5_sepconv3_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block5_sepconv3", "offset": 8796288, "weight_name": "block5_sepconv3_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block5_sepconv3_bn", "offset": 10916224, "weight_name": "block5_sepconv3_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv3_bn", "offset": 10919136, "weight_name": "block5_sepconv3_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv3_bn", "offset": 10922048, "weight_name": "block5_sepconv3_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block5_sepconv3_bn", "offset": 10924960, "weight_name": "block5_sepconv3_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv1", "offset": 10927872, "weight_name": "block6_sepconv1_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block6_sepconv1", "offset": 10954080, "weight_name": "block6_sepconv1_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block6_sepconv1_bn", "offset": 13074016, "weight_name": "block6_sepconv1_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv1_bn", "offset": 13076928, "weight_name": "block6_sepconv1_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv1_bn", "offset": 13079840, "weight_name": "block6_sepconv1_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv1_bn", "offset": 13082752, "weight_name": "block6_sepconv1_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv2", "offset": 13085664, "weight_name": "block6_sepconv2_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block6_sepconv2", "offset": 13111872, "weight_name": "block6_sepconv2_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block6_sepconv2_bn", "offset": 15231808, "weight_name": "block6_sepconv2_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv2_bn", "offset": 15234720, "weight_name": "block6_sepconv2_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv2_bn", "offset": 15237632, "weight_name": "block6_sepconv2_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv2_bn", "offset": 15240544, "weight_name": "block6_sepconv2_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv3", "offset": 15243456, "weight_name": "block6_sepconv3_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block6_sepconv3", "offset": 15269664, "weight_name": "block6_sepconv3_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block6_sepconv3_bn", "offset": 17389600, "weight_name": "block6_sepconv3_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv3_bn", "offset": 17392512, "weight_name": "block6_sepconv3_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv3_bn", "offset": 17395424, "weight_name": "block6_sepconv3_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block6_sepconv3_bn", "offset": 17398336, "weight_name": "block6_sepconv3_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv1", "offset": 17401248, "weight_name": "block7_sepconv1_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block7_sepconv1", "offset": 17427456, "weight_name": "block7_sepconv1_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block7_sepconv1_bn", "offset": 19547392, "weight_name": "block7_sepconv1_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv1_bn", "offset": 19550304, "weight_name": "block7_sepconv1_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv1_bn", "offset": 19553216, "weight_name": "block7_sepconv1_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv1_bn", "offset": 19556128, "weight_name": "block7_sepconv1_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv2", "offset": 19559040, "weight_name": "block7_sepconv2_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block7_sepconv2", "offset": 19585248, "weight_name": "block7_sepconv2_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block7_sepconv2_bn", "offset": 21705184, "weight_name": "block7_sepconv2_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv2_bn", "offset": 21708096, "weight_name": "block7_sepconv2_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv2_bn", "offset": 21711008, "weight_name": "block7_sepconv2_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv2_bn", "offset": 21713920, "weight_name": "block7_sepconv2_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv3", "offset": 21716832, "weight_name": "block7_sepconv3_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block7_sepconv3", "offset": 21743040, "weight_name": "block7_sepconv3_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block7_sepconv3_bn", "offset": 23862976, "weight_name": "block7_sepconv3_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv3_bn", "offset": 23865888, "weight_name": "block7_sepconv3_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv3_bn", "offset": 23868800, "weight_name": "block7_sepconv3_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block7_sepconv3_bn", "offset": 23871712, "weight_name": "block7_sepconv3_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv1", "offset": 23874624, "weight_name": "block8_sepconv1_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block8_sepconv1", "offset": 23900832, "weight_name": "block8_sepconv1_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block8_sepconv1_bn", "offset": 26020768, "weight_name": "block8_sepconv1_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv1_bn", "offset": 26023680, "weight_name": "block8_sepconv1_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv1_bn", "offset": 26026592, "weight_name": "block8_sepconv1_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv1_bn", "offset": 26029504, "weight_name": "block8_sepconv1_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv2", "offset": 26032416, "weight_name": "block8_sepconv2_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block8_sepconv2", "offset": 26058624, "weight_name": "block8_sepconv2_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block8_sepconv2_bn", "offset": 28178560, "weight_name": "block8_sepconv2_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv2_bn", "offset": 28181472, "weight_name": "block8_sepconv2_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv2_bn", "offset": 28184384, "weight_name": "block8_sepconv2_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv2_bn", "offset": 28187296, "weight_name": "block8_sepconv2_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv3", "offset": 28190208, "weight_name": "block8_sepconv3_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block8_sepconv3", "offset": 28216416, "weight_name": "block8_sepconv3_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block8_sepconv3_bn", "offset": 30336352, "weight_name": "block8_sepconv3_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv3_bn", "offset": 30339264, "weight_name": "block8_sepconv3_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv3_bn", "offset": 30342176, "weight_name": "block8_sepconv3_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block8_sepconv3_bn", "offset": 30345088, "weight_name": "block8_sepconv3_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv1", "offset": 30348000, "weight_name": "block9_sepconv1_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block9_sepconv1", "offset": 30374208, "weight_name": "block9_sepconv1_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block9_sepconv1_bn", "offset": 32494144, "weight_name": "block9_sepconv1_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv1_bn", "offset": 32497056, "weight_name": "block9_sepconv1_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv1_bn", "offset": 32499968, "weight_name": "block9_sepconv1_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv1_bn", "offset": 32502880, "weight_name": "block9_sepconv1_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv2", "offset": 32505792, "weight_name": "block9_sepconv2_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block9_sepconv2", "offset": 32532000, "weight_name": "block9_sepconv2_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block9_sepconv2_bn", "offset": 34651936, "weight_name": "block9_sepconv2_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv2_bn", "offset": 34654848, "weight_name": "block9_sepconv2_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv2_bn", "offset": 34657760, "weight_name": "block9_sepconv2_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv2_bn", "offset": 34660672, "weight_name": "block9_sepconv2_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv3", "offset": 34663584, "weight_name": "block9_sepconv3_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block9_sepconv3", "offset": 34689792, "weight_name": "block9_sepconv3_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block9_sepconv3_bn", "offset": 36809728, "weight_name": "block9_sepconv3_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv3_bn", "offset": 36812640, "weight_name": "block9_sepconv3_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv3_bn", "offset": 36815552, "weight_name": "block9_sepconv3_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block9_sepconv3_bn", "offset": 36818464, "weight_name": "block9_sepconv3_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv1", "offset": 36821376, "weight_name": "block10_sepconv1_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block10_sepconv1", "offset": 36847584, "weight_name": "block10_sepconv1_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block10_sepconv1_bn", "offset": 38967520, "weight_name": "block10_sepconv1_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv1_bn", "offset": 38970432, "weight_name": "block10_sepconv1_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv1_bn", "offset": 38973344, "weight_name": "block10_sepconv1_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv1_bn", "offset": 38976256, "weight_name": "block10_sepconv1_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv2", "offset": 38979168, "weight_name": "block10_sepconv2_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block10_sepconv2", "offset": 39005376, "weight_name": "block10_sepconv2_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block10_sepconv2_bn", "offset": 41125312, "weight_name": "block10_sepconv2_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv2_bn", "offset": 41128224, "weight_name": "block10_sepconv2_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv2_bn", "offset": 41131136, "weight_name": "block10_sepconv2_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv2_bn", "offset": 41134048, "weight_name": "block10_sepconv2_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv3", "offset": 41136960, "weight_name": "block10_sepconv3_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block10_sepconv3", "offset": 41163168, "weight_name": "block10_sepconv3_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block10_sepconv3_bn", "offset": 43283104, "weight_name": "block10_sepconv3_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv3_bn", "offset": 43286016, "weight_name": "block10_sepconv3_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv3_bn", "offset": 43288928, "weight_name": "block10_sepconv3_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block10_sepconv3_bn", "offset": 43291840, "weight_name": "block10_sepconv3_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv1", "offset": 43294752, "weight_name": "block11_sepconv1_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block11_sepconv1", "offset": 43320960, "weight_name": "block11_sepconv1_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block11_sepconv1_bn", "offset": 45440896, "weight_name": "block11_sepconv1_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv1_bn", "offset": 45443808, "weight_name": "block11_sepconv1_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv1_bn", "offset": 45446720, "weight_name": "block11_sepconv1_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv1_bn", "offset": 45449632, "weight_name": "block11_sepconv1_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv2", "offset": 45452544, "weight_name": "block11_sepconv2_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block11_sepconv2", "offset": 45478752, "weight_name": "block11_sepconv2_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block11_sepconv2_bn", "offset": 47598688, "weight_name": "block11_sepconv2_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv2_bn", "offset": 47601600, "weight_name": "block11_sepconv2_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv2_bn", "offset": 47604512, "weight_name": "block11_sepconv2_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv2_bn", "offset": 47607424, "weight_name": "block11_sepconv2_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv3", "offset": 47610336, "weight_name": "block11_sepconv3_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block11_sepconv3", "offset": 47636544, "weight_name": "block11_sepconv3_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block11_sepconv3_bn", "offset": 49756480, "weight_name": "block11_sepconv3_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv3_bn", "offset": 49759392, "weight_name": "block11_sepconv3_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv3_bn", "offset": 49762304, "weight_name": "block11_sepconv3_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block11_sepconv3_bn", "offset": 49765216, "weight_name": "block11_sepconv3_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv1", "offset": 49768128, "weight_name": "block12_sepconv1_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block12_sepconv1", "offset": 49794336, "weight_name": "block12_sepconv1_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block12_sepconv1_bn", "offset": 51914272, "weight_name": "block12_sepconv1_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv1_bn", "offset": 51917184, "weight_name": "block12_sepconv1_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv1_bn", "offset": 51920096, "weight_name": "block12_sepconv1_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv1_bn", "offset": 51923008, "weight_name": "block12_sepconv1_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv2", "offset": 51925920, "weight_name": "block12_sepconv2_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block12_sepconv2", "offset": 51952128, "weight_name": "block12_sepconv2_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block12_sepconv2_bn", "offset": 54072064, "weight_name": "block12_sepconv2_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv2_bn", "offset": 54074976, "weight_name": "block12_sepconv2_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv2_bn", "offset": 54077888, "weight_name": "block12_sepconv2_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv2_bn", "offset": 54080800, "weight_name": "block12_sepconv2_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv3", "offset": 54083712, "weight_name": "block12_sepconv3_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block12_sepconv3", "offset": 54109920, "weight_name": "block12_sepconv3_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block12_sepconv3_bn", "offset": 56229856, "weight_name": "block12_sepconv3_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv3_bn", "offset": 56232768, "weight_name": "block12_sepconv3_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv3_bn", "offset": 56235680, "weight_name": "block12_sepconv3_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block12_sepconv3_bn", "offset": 56238592, "weight_name": "block12_sepconv3_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block13_sepconv1", "offset": 56241504, "weight_name": "block13_sepconv1_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block13_sepconv1", "offset": 56267712, "weight_name": "block13_sepconv1_pointwise_kernel:0", "shape": [1, 1, 728, 728], "length": 529984, "type": "float32"}, {"layer_name": "block13_sepconv1_bn", "offset": 58387648, "weight_name": "block13_sepconv1_bn_gamma:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block13_sepconv1_bn", "offset": 58390560, "weight_name": "block13_sepconv1_bn_beta:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block13_sepconv1_bn", "offset": 58393472, "weight_name": "block13_sepconv1_bn_running_mean:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block13_sepconv1_bn", "offset": 58396384, "weight_name": "block13_sepconv1_bn_running_std:0", "shape": [728], "length": 728, "type": "float32"}, {"layer_name": "block13_sepconv2", "offset": 58399296, "weight_name": "block13_sepconv2_depthwise_kernel:0", "shape": [3, 3, 728, 1], "length": 6552, "type": "float32"}, {"layer_name": "block13_sepconv2", "offset": 58425504, "weight_name": "block13_sepconv2_pointwise_kernel:0", "shape": [1, 1, 728, 1024], "length": 745472, "type": "float32"}, {"layer_name": "block13_sepconv2_bn", "offset": 61407392, "weight_name": "block13_sepconv2_bn_gamma:0", "shape": [1024], "length": 1024, "type": "float32"}, {"layer_name": "block13_sepconv2_bn", "offset": 61411488, "weight_name": "block13_sepconv2_bn_beta:0", "shape": [1024], "length": 1024, "type": "float32"}, {"layer_name": "block13_sepconv2_bn", "offset": 61415584, "weight_name": "block13_sepconv2_bn_running_mean:0", "shape": [1024], "length": 1024, "type": "float32"}, {"layer_name": "block13_sepconv2_bn", "offset": 61419680, "weight_name": "block13_sepconv2_bn_running_std:0", "shape": [1024], "length": 1024, "type": "float32"}, {"layer_name": "convolution2d_4", "offset": 61423776, "weight_name": "convolution2d_4_W:0", "shape": [1, 1, 728, 1024], "length": 745472, "type": "float32"}, {"layer_name": "batchnormalization_4", "offset": 64405664, "weight_name": "batchnormalization_4_gamma:0", "shape": [1024], "length": 1024, "type": "float32"}, {"layer_name": "batchnormalization_4", "offset": 64409760, "weight_name": "batchnormalization_4_beta:0", "shape": [1024], "length": 1024, "type": "float32"}, {"layer_name": "batchnormalization_4", "offset": 64413856, "weight_name": "batchnormalization_4_running_mean:0", "shape": [1024], "length": 1024, "type": "float32"}, {"layer_name": "batchnormalization_4", "offset": 64417952, "weight_name": "batchnormalization_4_running_std:0", "shape": [1024], "length": 1024, "type": "float32"}, {"layer_name": "block14_sepconv1", "offset": 64422048, "weight_name": "block14_sepconv1_depthwise_kernel:0", "shape": [3, 3, 1024, 1], "length": 9216, "type": "float32"}, {"layer_name": "block14_sepconv1", "offset": 64458912, "weight_name": "block14_sepconv1_pointwise_kernel:0", "shape": [1, 1, 1024, 1536], "length": 1572864, "type": "float32"}, {"layer_name": "block14_sepconv1_bn", "offset": 70750368, "weight_name": "block14_sepconv1_bn_gamma:0", "shape": [1536], "length": 1536, "type": "float32"}, {"layer_name": "block14_sepconv1_bn", "offset": 70756512, "weight_name": "block14_sepconv1_bn_beta:0", "shape": [1536], "length": 1536, "type": "float32"}, {"layer_name": "block14_sepconv1_bn", "offset": 70762656, "weight_name": "block14_sepconv1_bn_running_mean:0", "shape": [1536], "length": 1536, "type": "float32"}, {"layer_name": "block14_sepconv1_bn", "offset": 70768800, "weight_name": "block14_sepconv1_bn_running_std:0", "shape": [1536], "length": 1536, "type": "float32"}, {"layer_name": "block14_sepconv2", "offset": 70774944, "weight_name": "block14_sepconv2_depthwise_kernel:0", "shape": [3, 3, 1536, 1], "length": 13824, "type": "float32"}, {"layer_name": "block14_sepconv2", "offset": 70830240, "weight_name": "block14_sepconv2_pointwise_kernel:0", "shape": [1, 1, 1536, 2048], "length": 3145728, "type": "float32"}, {"layer_name": "block14_sepconv2_bn", "offset": 83413152, "weight_name": "block14_sepconv2_bn_gamma:0", "shape": [2048], "length": 2048, "type": "float32"}, {"layer_name": "block14_sepconv2_bn", "offset": 83421344, "weight_name": "block14_sepconv2_bn_beta:0", "shape": [2048], "length": 2048, "type": "float32"}, {"layer_name": "block14_sepconv2_bn", "offset": 83429536, "weight_name": "block14_sepconv2_bn_running_mean:0", "shape": [2048], "length": 2048, "type": "float32"}, {"layer_name": "block14_sepconv2_bn", "offset": 83437728, "weight_name": "block14_sepconv2_bn_running_std:0", "shape": [2048], "length": 2048, "type": "float32"}, {"layer_name": "predictions", "offset": 83445920, "weight_name": "predictions_W:0", "shape": [2048, 1000], "length": 2048000, "type": "float32"}, {"layer_name": "predictions", "offset": 91637920, "weight_name": "predictions_b:0", "shape": [1000], "length": 1000, "type": "float32"}] \ No newline at end of file diff --git a/demos/data/xception/xception_weights.buf b/demos/data/xception/xception_weights.buf new file mode 100644 index 0000000..d13ee4a --- /dev/null +++ b/demos/data/xception/xception_weights.buf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a868353f79f49d552fcfc41ee2aa6d076e60327afb1b4ca03c12209c9576738 +size 91641920 diff --git a/demos/notebooks/xception.ipynb b/demos/notebooks/xception.ipynb new file mode 100644 index 0000000..9c91872 --- /dev/null +++ b/demos/notebooks/xception.ipynb @@ -0,0 +1,111 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Xception v1 - ImageNet\n", + "\n", + "see **https://github.com/fchollet/keras/blob/master/keras/applications/xception.py**" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "WEIGHTS_FILEPATH = 'xception.hdf5'\n", + "MODEL_ARCH_FILEPATH = 'xception.json'" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "Using TensorFlow backend.\n" + ] + } + ], + "source": [ + "from keras.applications import xception, imagenet_utils" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Downloading data from https://github.com/fchollet/deep-learning-models/releases/download/v0.4/xception_weights_tf_dim_ordering_tf_kernels.h5\n", + "91889664/91884032 [==============================] - 22s \n" + ] + } + ], + "source": [ + "input_shape = (299, 299, 3)\n", + "\n", + "model = xception.Xception(include_top=True, weights='imagenet')" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [ + "model.save_weights(WEIGHTS_FILEPATH)\n", + "\n", + "with open(MODEL_ARCH_FILEPATH, 'w') as f:\n", + " f.write(model.to_json())" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "anaconda-cloud": {}, + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.2" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +}