anurag629 commited on
Commit
8c6d7d5
1 Parent(s): 6118e8b

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +36 -53
config.json CHANGED
@@ -1,14 +1,15 @@
1
  {
2
- "_name_or_path": "google/vit-base-patch16-224-in21k",
3
- "architectures": [
4
- "ViTForImageClassification"
5
- ],
6
- "attention_probs_dropout_prob": 0.0,
7
- "finetuning_task": "image-classification",
8
- "hidden_act": "gelu",
9
- "hidden_dropout_prob": 0.0,
10
- "hidden_size": 768,
11
- "id2label": {
 
12
  "0": "Alpinia Galanga (Rasna)",
13
  "1": "Amaranthus Viridis (Arive-Dantu)",
14
  "2": "Artocarpus Heterophyllus (Jackfruit)",
@@ -40,48 +41,30 @@
40
  "28": "Tabernaemontana Divaricata (Crape Jasmine)",
41
  "29": "Trigonella Foenum-graecum (Fenugreek)"
42
  },
43
- "image_size": 250,
44
- "initializer_range": 0.02,
45
- "intermediate_size": 3072,
46
- "label2id": {
47
- "Alpinia Galanga (Rasna)": "0",
48
- "Amaranthus Viridis (Arive-Dantu)": "1",
49
- "Artocarpus Heterophyllus (Jackfruit)": "2",
50
- "Azadirachta Indica (Neem)": "3",
51
- "Basella Alba (Basale)": "4",
52
- "Brassica Juncea (Indian Mustard)": "5",
53
- "Carissa Carandas (Karanda)": "6",
54
- "Citrus Limon (Lemon)": "7",
55
- "Ficus Auriculata (Roxburgh fig)": "8",
56
- "Ficus Religiosa (Peepal Tree)": "9",
57
- "Hibiscus Rosa-sinensis": "10",
58
- "Jasminum (Jasmine)": "11",
59
- "Mangifera Indica (Mango)": "12",
60
- "Mentha (Mint)": "13",
61
- "Moringa Oleifera (Drumstick)": "14",
62
- "Muntingia Calabura (Jamaica Cherry-Gasagase)": "15",
63
- "Murraya Koenigii (Curry)": "16",
64
- "Nerium Oleander (Oleander)": "17",
65
- "Nyctanthes Arbor-tristis (Parijata)": "18",
66
- "Ocimum Tenuiflorum (Tulsi)": "19",
67
- "Piper Betle (Betel)": "20",
68
- "Plectranthus Amboinicus (Mexican Mint)": "21",
69
- "Pongamia Pinnata (Indian Beech)": "22",
70
- "Psidium Guajava (Guava)": "23",
71
- "Punica Granatum (Pomegranate)": "24",
72
- "Santalum Album (Sandalwood)": "25",
73
- "Syzygium Cumini (Jamun)": "26",
74
- "Syzygium Jambos (Rose Apple)": "27",
75
- "Tabernaemontana Divaricata (Crape Jasmine)": "28",
76
- "Trigonella Foenum-graecum (Fenugreek)": "29"
77
  },
78
- "layer_norm_eps": 1e-12,
79
- "model_type": "vit",
80
- "num_attention_heads": 12,
81
- "num_channels": 3,
82
- "num_hidden_layers": 12,
83
- "patch_size": 16,
84
- "torch_dtype": "float32",
85
- "transformers_version": "4.8.1",
86
  "from_tf": True
87
- }
 
1
  {
2
+ "model_type": "resnet50",
3
+ "model_name": "my_resnet_model",
4
+ "description": "A custom ResNet-50 based model for image classification",
5
+
6
+ "data": {
7
+ "input_shape": [250, 250, 3],
8
+ "num_classes": 30,
9
+ "data_augmentation": true
10
+ },
11
+
12
+ "class_names": {
13
  "0": "Alpinia Galanga (Rasna)",
14
  "1": "Amaranthus Viridis (Arive-Dantu)",
15
  "2": "Artocarpus Heterophyllus (Jackfruit)",
 
41
  "28": "Tabernaemontana Divaricata (Crape Jasmine)",
42
  "29": "Trigonella Foenum-graecum (Fenugreek)"
43
  },
44
+
45
+ "architecture": {
46
+ "base_model": "ResNet50",
47
+ "include_top": false,
48
+ "weights": "imagenet",
49
+ "trainable": false
50
+ },
51
+
52
+ "layers": {
53
+ "global_average_pooling": true,
54
+ "dropout_rate": 0.2,
55
+ "dense_units": 512
56
+ },
57
+
58
+ "training": {
59
+ "optimizer": {
60
+ "optimizer_type": "Adam",
61
+ "learning_rate": 0.0001,
62
+ "weight_decay": 1e-4
63
+ },
64
+ "loss_function": "SparseCategoricalCrossentropy",
65
+ "metrics": ["accuracy"],
66
+ "num_epochs": 25,
67
+ "batch_size": 32
 
 
 
 
 
 
 
 
 
 
68
  },
 
 
 
 
 
 
 
 
69
  "from_tf": True
70
+ }