rollbacked to working commit
Browse files
IndicPhotoOCR/script_identification/vit/models/12_classes/config.json
DELETED
|
@@ -1,52 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
| 3 |
-
"architectures": [
|
| 4 |
-
"ViTForImageClassification"
|
| 5 |
-
],
|
| 6 |
-
"attention_probs_dropout_prob": 0.0,
|
| 7 |
-
"encoder_stride": 16,
|
| 8 |
-
"hidden_act": "gelu",
|
| 9 |
-
"hidden_dropout_prob": 0.0,
|
| 10 |
-
"hidden_size": 768,
|
| 11 |
-
"id2label": {
|
| 12 |
-
"0": "hindi",
|
| 13 |
-
"1": "english",
|
| 14 |
-
"10": "tamil",
|
| 15 |
-
"11": "telugu",
|
| 16 |
-
"2": "gujarati",
|
| 17 |
-
"3": "punjabi",
|
| 18 |
-
"4": "assamese",
|
| 19 |
-
"5": "bengali",
|
| 20 |
-
"6": "kannada",
|
| 21 |
-
"7": "malayalam",
|
| 22 |
-
"8": "marathi",
|
| 23 |
-
"9": "odia"
|
| 24 |
-
},
|
| 25 |
-
"image_size": 224,
|
| 26 |
-
"initializer_range": 0.02,
|
| 27 |
-
"intermediate_size": 3072,
|
| 28 |
-
"label2id": {
|
| 29 |
-
"assamese": "4",
|
| 30 |
-
"bengali": "5",
|
| 31 |
-
"english": "1",
|
| 32 |
-
"gujarati": "2",
|
| 33 |
-
"hindi": "0",
|
| 34 |
-
"kannada": "6",
|
| 35 |
-
"malayalam": "7",
|
| 36 |
-
"marathi": "8",
|
| 37 |
-
"odia": "9",
|
| 38 |
-
"punjabi": "3",
|
| 39 |
-
"tamil": "10",
|
| 40 |
-
"telugu": "11"
|
| 41 |
-
},
|
| 42 |
-
"layer_norm_eps": 1e-12,
|
| 43 |
-
"model_type": "vit",
|
| 44 |
-
"num_attention_heads": 12,
|
| 45 |
-
"num_channels": 3,
|
| 46 |
-
"num_hidden_layers": 12,
|
| 47 |
-
"patch_size": 16,
|
| 48 |
-
"problem_type": "single_label_classification",
|
| 49 |
-
"qkv_bias": true,
|
| 50 |
-
"torch_dtype": "float32",
|
| 51 |
-
"transformers_version": "4.48.1"
|
| 52 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IndicPhotoOCR/script_identification/vit/models/12_classes/preprocessor_config.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"do_convert_rgb": null,
|
| 3 |
-
"do_normalize": true,
|
| 4 |
-
"do_rescale": true,
|
| 5 |
-
"do_resize": true,
|
| 6 |
-
"image_mean": [
|
| 7 |
-
0.5,
|
| 8 |
-
0.5,
|
| 9 |
-
0.5
|
| 10 |
-
],
|
| 11 |
-
"image_processor_type": "ViTImageProcessorFast",
|
| 12 |
-
"image_std": [
|
| 13 |
-
0.5,
|
| 14 |
-
0.5,
|
| 15 |
-
0.5
|
| 16 |
-
],
|
| 17 |
-
"resample": 2,
|
| 18 |
-
"rescale_factor": 0.00392156862745098,
|
| 19 |
-
"size": {
|
| 20 |
-
"height": 224,
|
| 21 |
-
"width": 224
|
| 22 |
-
}
|
| 23 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|