Update config.json
Browse files- config.json +44 -46
config.json
CHANGED
|
@@ -1,46 +1,44 @@
|
|
| 1 |
-
{
|
| 2 |
-
"model": {
|
| 3 |
-
"name": "
|
| 4 |
-
"type": "Image to Text",
|
| 5 |
-
"input_shape": [224, 224, 3],
|
| 6 |
-
"output_shape": [1, "text"],
|
| 7 |
-
"
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
"
|
| 11 |
-
"
|
| 12 |
-
"
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
"
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
"
|
| 20 |
-
"
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
"
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
"
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
"
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
}
|
| 46 |
-
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"name": "ResNet34-based Image to Text Model",
|
| 4 |
+
"type": "Image to Text",
|
| 5 |
+
"input_shape": [224, 224, 3],
|
| 6 |
+
"output_shape": [1, "text"],
|
| 7 |
+
"base_model": "ResNet34",
|
| 8 |
+
"layers": [
|
| 9 |
+
{
|
| 10 |
+
"type": "Conv2D",
|
| 11 |
+
"filters": 64,
|
| 12 |
+
"kernel_size": [7, 7],
|
| 13 |
+
"activation": "relu",
|
| 14 |
+
"padding": "same",
|
| 15 |
+
"strides": [2, 2]
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"type": "MaxPooling2D",
|
| 19 |
+
"pool_size": [3, 3],
|
| 20 |
+
"strides": [2, 2]
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"type": "Residual Block",
|
| 24 |
+
"num_blocks": 34
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"type": "GlobalAveragePooling2D"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"type": "Dense",
|
| 31 |
+
"units": 256,
|
| 32 |
+
"activation": "relu"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"type": "Dense",
|
| 36 |
+
"units": 1,
|
| 37 |
+
"activation": "sigmoid"
|
| 38 |
+
}
|
| 39 |
+
],
|
| 40 |
+
"loss": "binary_crossentropy",
|
| 41 |
+
"optimizer": "adam",
|
| 42 |
+
"metrics": ["accuracy"]
|
| 43 |
+
}
|
| 44 |
+
}
|
|
|
|
|
|