mirror of
https://github.com/cupcakearmy/mnist.git
synced 2024-12-22 08:06:28 +00:00
smaller model
This commit is contained in:
parent
bf5c35bf14
commit
adaed20538
BIN
static/group1-shard1of1.bin
Normal file → Executable file
BIN
static/group1-shard1of1.bin
Normal file → Executable file
Binary file not shown.
311
static/model.json
Normal file → Executable file
311
static/model.json
Normal file → Executable file
@ -1,310 +1 @@
|
|||||||
{
|
{"format": "layers-model", "generatedBy": "keras v2.2.4-tf", "convertedBy": "TensorFlow.js Converter v1.4.0", "modelTopology": {"keras_version": "2.2.4-tf", "backend": "tensorflow", "model_config": {"class_name": "Sequential", "config": {"name": "sequential_20", "layers": [{"class_name": "Conv2D", "config": {"name": "conv2d_53", "trainable": true, "batch_input_shape": [null, 28, 28, 1], "dtype": "float32", "filters": 64, "kernel_size": [7, 7], "strides": [1, 1], "padding": "valid", "data_format": "channels_last", "dilation_rate": [1, 1], "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}, {"class_name": "Conv2D", "config": {"name": "conv2d_54", "trainable": true, "dtype": "float32", "filters": 32, "kernel_size": [5, 5], "strides": [1, 1], "padding": "valid", "data_format": "channels_last", "dilation_rate": [1, 1], "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}, {"class_name": "Conv2D", "config": {"name": "conv2d_55", "trainable": true, "dtype": "float32", "filters": 16, "kernel_size": [3, 3], "strides": [1, 1], "padding": "valid", "data_format": "channels_last", "dilation_rate": [1, 1], "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}, {"class_name": "MaxPooling2D", "config": {"name": "max_pooling2d_19", "trainable": true, "dtype": "float32", "pool_size": [2, 2], "padding": "valid", "strides": [2, 2], "data_format": "channels_last"}}, {"class_name": "Dropout", "config": {"name": "dropout_45", "trainable": true, "dtype": "float32", "rate": 0.2, "noise_shape": null, "seed": null}}, {"class_name": "Flatten", "config": {"name": "flatten_20", "trainable": true, "dtype": "float32", "data_format": "channels_last"}}, {"class_name": "Dense", "config": {"name": "dense_41", "trainable": true, "dtype": "float32", "units": 128, "activation": "relu", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}, {"class_name": "Dropout", "config": {"name": "dropout_46", "trainable": true, "dtype": "float32", "rate": 0.25, "noise_shape": null, "seed": null}}, {"class_name": "Dense", "config": {"name": "dense_42", "trainable": true, "dtype": "float32", "units": 10, "activation": "softmax", "use_bias": true, "kernel_initializer": {"class_name": "GlorotUniform", "config": {"seed": null}}, "bias_initializer": {"class_name": "Zeros", "config": {}}, "kernel_regularizer": null, "bias_regularizer": null, "activity_regularizer": null, "kernel_constraint": null, "bias_constraint": null}}]}}, "training_config": {"loss": "categorical_crossentropy", "metrics": ["accuracy"], "weighted_metrics": null, "sample_weight_mode": null, "loss_weights": null, "optimizer_config": {"class_name": "RMSprop", "config": {"name": "RMSprop", "learning_rate": 0.0010000000474974513, "decay": 0.0, "rho": 0.8999999761581421, "momentum": 0.0, "epsilon": 1e-07, "centered": false}}}}, "weightsManifest": [{"paths": ["group1-shard1of1.bin"], "weights": [{"name": "conv2d_53/kernel", "shape": [7, 7, 1, 64], "dtype": "float32"}, {"name": "conv2d_53/bias", "shape": [64], "dtype": "float32"}, {"name": "conv2d_54/kernel", "shape": [5, 5, 64, 32], "dtype": "float32"}, {"name": "conv2d_54/bias", "shape": [32], "dtype": "float32"}, {"name": "conv2d_55/kernel", "shape": [3, 3, 32, 16], "dtype": "float32"}, {"name": "conv2d_55/bias", "shape": [16], "dtype": "float32"}, {"name": "dense_41/kernel", "shape": [1024, 128], "dtype": "float32"}, {"name": "dense_41/bias", "shape": [128], "dtype": "float32"}, {"name": "dense_42/kernel", "shape": [128, 10], "dtype": "float32"}, {"name": "dense_42/bias", "shape": [10], "dtype": "float32"}]}]}
|
||||||
"format": "layers-model",
|
|
||||||
"generatedBy": "keras v2.2.4-tf",
|
|
||||||
"convertedBy": "TensorFlow.js Converter v1.4.0",
|
|
||||||
"modelTopology": {
|
|
||||||
"keras_version": "2.2.4-tf",
|
|
||||||
"backend": "tensorflow",
|
|
||||||
"model_config": {
|
|
||||||
"class_name": "Sequential",
|
|
||||||
"config": {
|
|
||||||
"name": "sequential",
|
|
||||||
"layers": [
|
|
||||||
{
|
|
||||||
"class_name": "Conv2D",
|
|
||||||
"config": {
|
|
||||||
"name": "conv2d",
|
|
||||||
"trainable": true,
|
|
||||||
"batch_input_shape": [
|
|
||||||
null,
|
|
||||||
28,
|
|
||||||
28,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"dtype": "float32",
|
|
||||||
"filters": 64,
|
|
||||||
"kernel_size": [
|
|
||||||
3,
|
|
||||||
3
|
|
||||||
],
|
|
||||||
"strides": [
|
|
||||||
1,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"padding": "valid",
|
|
||||||
"data_format": "channels_last",
|
|
||||||
"dilation_rate": [
|
|
||||||
1,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"activation": "relu",
|
|
||||||
"use_bias": true,
|
|
||||||
"kernel_initializer": {
|
|
||||||
"class_name": "GlorotUniform",
|
|
||||||
"config": {
|
|
||||||
"seed": 420,
|
|
||||||
"dtype": "float32"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"bias_initializer": {
|
|
||||||
"class_name": "Zeros",
|
|
||||||
"config": {
|
|
||||||
"dtype": "float32"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"kernel_regularizer": null,
|
|
||||||
"bias_regularizer": null,
|
|
||||||
"activity_regularizer": null,
|
|
||||||
"kernel_constraint": null,
|
|
||||||
"bias_constraint": null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"class_name": "Conv2D",
|
|
||||||
"config": {
|
|
||||||
"name": "conv2d_1",
|
|
||||||
"trainable": true,
|
|
||||||
"dtype": "float32",
|
|
||||||
"filters": 32,
|
|
||||||
"kernel_size": [
|
|
||||||
3,
|
|
||||||
3
|
|
||||||
],
|
|
||||||
"strides": [
|
|
||||||
1,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"padding": "valid",
|
|
||||||
"data_format": "channels_last",
|
|
||||||
"dilation_rate": [
|
|
||||||
1,
|
|
||||||
1
|
|
||||||
],
|
|
||||||
"activation": "relu",
|
|
||||||
"use_bias": true,
|
|
||||||
"kernel_initializer": {
|
|
||||||
"class_name": "GlorotUniform",
|
|
||||||
"config": {
|
|
||||||
"seed": 420,
|
|
||||||
"dtype": "float32"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"bias_initializer": {
|
|
||||||
"class_name": "Zeros",
|
|
||||||
"config": {
|
|
||||||
"dtype": "float32"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"kernel_regularizer": null,
|
|
||||||
"bias_regularizer": null,
|
|
||||||
"activity_regularizer": null,
|
|
||||||
"kernel_constraint": null,
|
|
||||||
"bias_constraint": null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"class_name": "MaxPooling2D",
|
|
||||||
"config": {
|
|
||||||
"name": "max_pooling2d",
|
|
||||||
"trainable": true,
|
|
||||||
"dtype": "float32",
|
|
||||||
"pool_size": [
|
|
||||||
2,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
"padding": "valid",
|
|
||||||
"strides": [
|
|
||||||
2,
|
|
||||||
2
|
|
||||||
],
|
|
||||||
"data_format": "channels_last"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"class_name": "Dropout",
|
|
||||||
"config": {
|
|
||||||
"name": "dropout",
|
|
||||||
"trainable": true,
|
|
||||||
"dtype": "float32",
|
|
||||||
"rate": 0.25,
|
|
||||||
"noise_shape": null,
|
|
||||||
"seed": 420
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"class_name": "Flatten",
|
|
||||||
"config": {
|
|
||||||
"name": "flatten",
|
|
||||||
"trainable": true,
|
|
||||||
"dtype": "float32",
|
|
||||||
"data_format": "channels_last"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"class_name": "Dense",
|
|
||||||
"config": {
|
|
||||||
"name": "dense",
|
|
||||||
"trainable": true,
|
|
||||||
"dtype": "float32",
|
|
||||||
"units": 128,
|
|
||||||
"activation": "relu",
|
|
||||||
"use_bias": true,
|
|
||||||
"kernel_initializer": {
|
|
||||||
"class_name": "GlorotUniform",
|
|
||||||
"config": {
|
|
||||||
"seed": 420,
|
|
||||||
"dtype": "float32"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"bias_initializer": {
|
|
||||||
"class_name": "Zeros",
|
|
||||||
"config": {
|
|
||||||
"dtype": "float32"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"kernel_regularizer": null,
|
|
||||||
"bias_regularizer": null,
|
|
||||||
"activity_regularizer": null,
|
|
||||||
"kernel_constraint": null,
|
|
||||||
"bias_constraint": null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"class_name": "Dropout",
|
|
||||||
"config": {
|
|
||||||
"name": "dropout_1",
|
|
||||||
"trainable": true,
|
|
||||||
"dtype": "float32",
|
|
||||||
"rate": 0.5,
|
|
||||||
"noise_shape": null,
|
|
||||||
"seed": 420
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"class_name": "Dense",
|
|
||||||
"config": {
|
|
||||||
"name": "dense_1",
|
|
||||||
"trainable": true,
|
|
||||||
"dtype": "float32",
|
|
||||||
"units": 10,
|
|
||||||
"activation": "softmax",
|
|
||||||
"use_bias": true,
|
|
||||||
"kernel_initializer": {
|
|
||||||
"class_name": "GlorotUniform",
|
|
||||||
"config": {
|
|
||||||
"seed": 420,
|
|
||||||
"dtype": "float32"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"bias_initializer": {
|
|
||||||
"class_name": "Zeros",
|
|
||||||
"config": {
|
|
||||||
"dtype": "float32"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"kernel_regularizer": null,
|
|
||||||
"bias_regularizer": null,
|
|
||||||
"activity_regularizer": null,
|
|
||||||
"kernel_constraint": null,
|
|
||||||
"bias_constraint": null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"training_config": {
|
|
||||||
"loss": "categorical_crossentropy",
|
|
||||||
"metrics": [
|
|
||||||
"accuracy"
|
|
||||||
],
|
|
||||||
"weighted_metrics": null,
|
|
||||||
"sample_weight_mode": null,
|
|
||||||
"loss_weights": null,
|
|
||||||
"optimizer_config": {
|
|
||||||
"class_name": "Adam",
|
|
||||||
"config": {
|
|
||||||
"name": "Adam",
|
|
||||||
"learning_rate": 0.0010000000474974513,
|
|
||||||
"decay": 0.0,
|
|
||||||
"beta_1": 0.8999999761581421,
|
|
||||||
"beta_2": 0.9990000128746033,
|
|
||||||
"epsilon": 1e-07,
|
|
||||||
"amsgrad": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"weightsManifest": [
|
|
||||||
{
|
|
||||||
"paths": [
|
|
||||||
"group1-shard1of1.bin"
|
|
||||||
],
|
|
||||||
"weights": [
|
|
||||||
{
|
|
||||||
"name": "conv2d/kernel",
|
|
||||||
"shape": [
|
|
||||||
3,
|
|
||||||
3,
|
|
||||||
1,
|
|
||||||
64
|
|
||||||
],
|
|
||||||
"dtype": "float32"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "conv2d/bias",
|
|
||||||
"shape": [
|
|
||||||
64
|
|
||||||
],
|
|
||||||
"dtype": "float32"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "conv2d_1/kernel",
|
|
||||||
"shape": [
|
|
||||||
3,
|
|
||||||
3,
|
|
||||||
64,
|
|
||||||
32
|
|
||||||
],
|
|
||||||
"dtype": "float32"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "conv2d_1/bias",
|
|
||||||
"shape": [
|
|
||||||
32
|
|
||||||
],
|
|
||||||
"dtype": "float32"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "dense/kernel",
|
|
||||||
"shape": [
|
|
||||||
4608,
|
|
||||||
128
|
|
||||||
],
|
|
||||||
"dtype": "float32"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "dense/bias",
|
|
||||||
"shape": [
|
|
||||||
128
|
|
||||||
],
|
|
||||||
"dtype": "float32"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "dense_1/kernel",
|
|
||||||
"shape": [
|
|
||||||
128,
|
|
||||||
10
|
|
||||||
],
|
|
||||||
"dtype": "float32"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "dense_1/bias",
|
|
||||||
"shape": [
|
|
||||||
10
|
|
||||||
],
|
|
||||||
"dtype": "float32"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user