jadechoghari commited on
Commit
3aef5ca
·
verified ·
1 Parent(s): ef4abf2

add initial files

Browse files
config.json ADDED
@@ -0,0 +1,289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "FastForSceneTextRecognition"
4
+ ],
5
+ "backbone": null,
6
+ "backbone_config": {
7
+ "_attn_implementation_autoset": false,
8
+ "_name_or_path": "",
9
+ "add_cross_attention": false,
10
+ "architectures": null,
11
+ "bad_words_ids": null,
12
+ "batch_norm_eps": 1e-05,
13
+ "begin_suppress_tokens": null,
14
+ "bos_token_id": null,
15
+ "chunk_size_feed_forward": 0,
16
+ "conv_layer_kernel_sizes": [
17
+ [
18
+ [
19
+ 3,
20
+ 3
21
+ ],
22
+ [
23
+ 3,
24
+ 3
25
+ ],
26
+ [
27
+ 3,
28
+ 3
29
+ ]
30
+ ],
31
+ [
32
+ [
33
+ 3,
34
+ 3
35
+ ],
36
+ [
37
+ 1,
38
+ 3
39
+ ],
40
+ [
41
+ 3,
42
+ 3
43
+ ],
44
+ [
45
+ 3,
46
+ 1
47
+ ]
48
+ ],
49
+ [
50
+ [
51
+ 3,
52
+ 3
53
+ ],
54
+ [
55
+ 3,
56
+ 3
57
+ ],
58
+ [
59
+ 3,
60
+ 1
61
+ ],
62
+ [
63
+ 1,
64
+ 3
65
+ ]
66
+ ],
67
+ [
68
+ [
69
+ 3,
70
+ 3
71
+ ],
72
+ [
73
+ 3,
74
+ 1
75
+ ],
76
+ [
77
+ 1,
78
+ 3
79
+ ],
80
+ [
81
+ 3,
82
+ 3
83
+ ]
84
+ ]
85
+ ],
86
+ "conv_layer_strides": [
87
+ [
88
+ 1,
89
+ 2,
90
+ 1
91
+ ],
92
+ [
93
+ 2,
94
+ 1,
95
+ 1,
96
+ 1
97
+ ],
98
+ [
99
+ 2,
100
+ 1,
101
+ 1,
102
+ 1
103
+ ],
104
+ [
105
+ 2,
106
+ 1,
107
+ 1,
108
+ 1
109
+ ]
110
+ ],
111
+ "cross_attention_hidden_size": null,
112
+ "decoder_start_token_id": null,
113
+ "depths": [
114
+ 3,
115
+ 4,
116
+ 4,
117
+ 4
118
+ ],
119
+ "diversity_penalty": 0.0,
120
+ "do_sample": false,
121
+ "early_stopping": false,
122
+ "encoder_no_repeat_ngram_size": 0,
123
+ "eos_token_id": null,
124
+ "exponential_decay_length_penalty": null,
125
+ "finetuning_task": null,
126
+ "forced_bos_token_id": null,
127
+ "forced_eos_token_id": null,
128
+ "hidden_sizes": [
129
+ 64,
130
+ 64,
131
+ 128,
132
+ 256,
133
+ 512
134
+ ],
135
+ "id2label": {
136
+ "0": "LABEL_0",
137
+ "1": "LABEL_1"
138
+ },
139
+ "image_size": [
140
+ 640,
141
+ 640
142
+ ],
143
+ "initializer_range": 0.02,
144
+ "is_decoder": false,
145
+ "is_encoder_decoder": false,
146
+ "label2id": {
147
+ "LABEL_0": 0,
148
+ "LABEL_1": 1
149
+ },
150
+ "length_penalty": 1.0,
151
+ "max_length": 20,
152
+ "min_length": 0,
153
+ "model_type": "textnet",
154
+ "no_repeat_ngram_size": 0,
155
+ "num_beam_groups": 1,
156
+ "num_beams": 1,
157
+ "num_return_sequences": 1,
158
+ "out_features": [
159
+ "stage1",
160
+ "stage2",
161
+ "stage3",
162
+ "stage4"
163
+ ],
164
+ "out_indices": [
165
+ 1,
166
+ 2,
167
+ 3,
168
+ 4
169
+ ],
170
+ "output_attentions": false,
171
+ "output_hidden_states": false,
172
+ "output_scores": false,
173
+ "pad_token_id": null,
174
+ "prefix": null,
175
+ "problem_type": null,
176
+ "pruned_heads": {},
177
+ "remove_invalid_values": false,
178
+ "repetition_penalty": 1.0,
179
+ "return_dict": true,
180
+ "return_dict_in_generate": false,
181
+ "sep_token_id": null,
182
+ "stage_names": [
183
+ "stem",
184
+ "stage1",
185
+ "stage2",
186
+ "stage3",
187
+ "stage4"
188
+ ],
189
+ "stem_act_func": "relu",
190
+ "stem_kernel_size": 3,
191
+ "stem_num_channels": 3,
192
+ "stem_out_channels": 64,
193
+ "stem_stride": 2,
194
+ "suppress_tokens": null,
195
+ "task_specific_params": null,
196
+ "temperature": 1.0,
197
+ "tf_legacy_loss": false,
198
+ "tie_encoder_decoder": false,
199
+ "tie_word_embeddings": true,
200
+ "tokenizer_class": null,
201
+ "top_k": 50,
202
+ "top_p": 1.0,
203
+ "torch_dtype": null,
204
+ "torchscript": false,
205
+ "typical_p": 1.0,
206
+ "use_bfloat16": false
207
+ },
208
+ "bbox_type": "rect",
209
+ "dilation": null,
210
+ "head_conv_dilation": 1,
211
+ "head_conv_groups": 1,
212
+ "head_conv_in_channels": 512,
213
+ "head_conv_kernel_size": [
214
+ 3,
215
+ 3
216
+ ],
217
+ "head_conv_out_channels": 128,
218
+ "head_conv_stride": 1,
219
+ "head_dropout_ratio": 0.1,
220
+ "head_final_act_func": null,
221
+ "head_final_bias": false,
222
+ "head_final_dilation": 1,
223
+ "head_final_dropout_rate": 0,
224
+ "head_final_groups": 1,
225
+ "head_final_has_shuffle": false,
226
+ "head_final_in_channels": 128,
227
+ "head_final_kernel_size": 1,
228
+ "head_final_ops_order": "weight",
229
+ "head_final_out_channels": 5,
230
+ "head_final_stride": 1,
231
+ "head_final_use_bn": false,
232
+ "head_pooling_size": 9,
233
+ "initializer_range": 0.02,
234
+ "loss_bg": false,
235
+ "min_area": 250,
236
+ "neck_dilation": [
237
+ 1,
238
+ 1,
239
+ 1,
240
+ 1
241
+ ],
242
+ "neck_groups": [
243
+ 1,
244
+ 1,
245
+ 1,
246
+ 1
247
+ ],
248
+ "neck_in_channels": [
249
+ 64,
250
+ 128,
251
+ 256,
252
+ 512
253
+ ],
254
+ "neck_kernel_size": [
255
+ [
256
+ 3,
257
+ 3
258
+ ],
259
+ [
260
+ 3,
261
+ 3
262
+ ],
263
+ [
264
+ 3,
265
+ 3
266
+ ],
267
+ [
268
+ 3,
269
+ 3
270
+ ]
271
+ ],
272
+ "neck_out_channels": [
273
+ 128,
274
+ 128,
275
+ 128,
276
+ 128
277
+ ],
278
+ "neck_stride": [
279
+ 1,
280
+ 1,
281
+ 1,
282
+ 1
283
+ ],
284
+ "num_channels": 3,
285
+ "torch_dtype": "float32",
286
+ "transformers_version": "4.49.0.dev0",
287
+ "use_pretrained_backbone": null,
288
+ "use_timm_backbone": false
289
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:235007a70555b296b2a53fda088e072b90bd93093b49b3bd0324ee3e506850e7
3
+ size 54309848
preprocessor_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bbox_type": "rect",
3
+ "crop_size": {
4
+ "height": 224,
5
+ "width": 224
6
+ },
7
+ "do_center_crop": false,
8
+ "do_convert_rgb": true,
9
+ "do_normalize": true,
10
+ "do_rescale": true,
11
+ "do_resize": true,
12
+ "image_mean": [
13
+ 0.485,
14
+ 0.456,
15
+ 0.406
16
+ ],
17
+ "image_processor_type": "FastImageProcessor",
18
+ "image_std": [
19
+ 0.229,
20
+ 0.224,
21
+ 0.225
22
+ ],
23
+ "min_area": 250,
24
+ "pooling_size": 9,
25
+ "resample": 2,
26
+ "rescale_factor": 0.00392156862745098,
27
+ "size": {
28
+ "shortest_edge": 640
29
+ },
30
+ "size_divisor": 32
31
+ }
textnet/config.json ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "TextNetBackbone"
4
+ ],
5
+ "batch_norm_eps": 1e-05,
6
+ "conv_layer_kernel_sizes": [
7
+ [
8
+ [
9
+ 3,
10
+ 3
11
+ ],
12
+ [
13
+ 3,
14
+ 3
15
+ ],
16
+ [
17
+ 3,
18
+ 3
19
+ ]
20
+ ],
21
+ [
22
+ [
23
+ 3,
24
+ 3
25
+ ],
26
+ [
27
+ 1,
28
+ 3
29
+ ],
30
+ [
31
+ 3,
32
+ 3
33
+ ],
34
+ [
35
+ 3,
36
+ 1
37
+ ]
38
+ ],
39
+ [
40
+ [
41
+ 3,
42
+ 3
43
+ ],
44
+ [
45
+ 3,
46
+ 3
47
+ ],
48
+ [
49
+ 3,
50
+ 1
51
+ ],
52
+ [
53
+ 1,
54
+ 3
55
+ ]
56
+ ],
57
+ [
58
+ [
59
+ 3,
60
+ 3
61
+ ],
62
+ [
63
+ 3,
64
+ 1
65
+ ],
66
+ [
67
+ 1,
68
+ 3
69
+ ],
70
+ [
71
+ 3,
72
+ 3
73
+ ]
74
+ ]
75
+ ],
76
+ "conv_layer_strides": [
77
+ [
78
+ 1,
79
+ 2,
80
+ 1
81
+ ],
82
+ [
83
+ 2,
84
+ 1,
85
+ 1,
86
+ 1
87
+ ],
88
+ [
89
+ 2,
90
+ 1,
91
+ 1,
92
+ 1
93
+ ],
94
+ [
95
+ 2,
96
+ 1,
97
+ 1,
98
+ 1
99
+ ]
100
+ ],
101
+ "depths": [
102
+ 3,
103
+ 4,
104
+ 4,
105
+ 4
106
+ ],
107
+ "hidden_sizes": [
108
+ 64,
109
+ 64,
110
+ 128,
111
+ 256,
112
+ 512
113
+ ],
114
+ "image_size": [
115
+ 640,
116
+ 640
117
+ ],
118
+ "initializer_range": 0.02,
119
+ "model_type": "textnet",
120
+ "out_features": [
121
+ "stage1",
122
+ "stage2",
123
+ "stage3",
124
+ "stage4"
125
+ ],
126
+ "out_indices": [
127
+ 1,
128
+ 2,
129
+ 3,
130
+ 4
131
+ ],
132
+ "stage_names": [
133
+ "stem",
134
+ "stage1",
135
+ "stage2",
136
+ "stage3",
137
+ "stage4"
138
+ ],
139
+ "stem_act_func": "relu",
140
+ "stem_kernel_size": 3,
141
+ "stem_num_channels": 3,
142
+ "stem_out_channels": 64,
143
+ "stem_stride": 2,
144
+ "torch_dtype": "float32",
145
+ "transformers_version": "4.49.0.dev0"
146
+ }
textnet/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:203334ca0d2f1a0f8b4dbfe2ad37f73d215ce681c25443ccdc483d845f3435cb
3
+ size 42955744