Skip to content

Commit becaff6

Browse files
committed
Make model cheaper to run
1 parent 2d9b51e commit becaff6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

fast_plate_ocr/model/models.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,10 @@ def modelo_2m(
3333
input_tensor = Input((h, w, 1))
3434
x = Rescaling(1.0 / 255)(input_tensor)
3535
# Backbone
36-
x, _ = block_bn(x)
37-
x, _ = block_bn(x, k=3, n_c=32, s=1, padding="same")
38-
x, _ = block_bn(x, k=3, n_c=32, s=1, padding="same")
36+
x, _ = block_bn(x, k=3, n_c=32, s=2, padding="same")
37+
x, _ = block_bn(x, k=3, n_c=64, s=1, padding="same")
3938
x, _ = block_bn(x, k=1, n_c=64, s=1, padding="same")
40-
x = MaxPool2D(pool_size=(3, 3), strides=(3, 3), padding="same")(x)
39+
x = MaxPool2D(pool_size=(2, 2), strides=(2, 2), padding="same")(x)
4140
x, _ = block_bn(x, k=3, n_c=64, s=1, padding="same")
4241
x, _ = block_bn(x, k=3, n_c=128, s=1, padding="same")
4342
x, _ = block_bn(x, k=1, n_c=128, s=1, padding="same")

0 commit comments

Comments
 (0)