File size: 2,037 Bytes
bd97b41
8c6d7d5
 
 
 
 
 
 
 
 
 
 
bd97b41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8c6d7d5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bd97b41
6118e8b
8c6d7d5
1
2
3
4
5
6
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
  "model_type": "resnet50",
  "model_name": "my_resnet_model",
  "description": "A custom ResNet-50 based model for image classification",
  
  "data": {
    "input_shape": [250, 250, 3],
    "num_classes": 30,
    "data_augmentation": true
  },
  
  "class_names": {
    "0": "Alpinia Galanga (Rasna)",
    "1": "Amaranthus Viridis (Arive-Dantu)",
    "2": "Artocarpus Heterophyllus (Jackfruit)",
    "3": "Azadirachta Indica (Neem)",
    "4": "Basella Alba (Basale)",
    "5": "Brassica Juncea (Indian Mustard)",
    "6": "Carissa Carandas (Karanda)",
    "7": "Citrus Limon (Lemon)",
    "8": "Ficus Auriculata (Roxburgh fig)",
    "9": "Ficus Religiosa (Peepal Tree)",
    "10": "Hibiscus Rosa-sinensis",
    "11": "Jasminum (Jasmine)",
    "12": "Mangifera Indica (Mango)",
    "13": "Mentha (Mint)",
    "14": "Moringa Oleifera (Drumstick)",
    "15": "Muntingia Calabura (Jamaica Cherry-Gasagase)",
    "16": "Murraya Koenigii (Curry)",
    "17": "Nerium Oleander (Oleander)",
    "18": "Nyctanthes Arbor-tristis (Parijata)",
    "19": "Ocimum Tenuiflorum (Tulsi)",
    "20": "Piper Betle (Betel)",
    "21": "Plectranthus Amboinicus (Mexican Mint)",
    "22": "Pongamia Pinnata (Indian Beech)",
    "23": "Psidium Guajava (Guava)",
    "24": "Punica Granatum (Pomegranate)",
    "25": "Santalum Album (Sandalwood)",
    "26": "Syzygium Cumini (Jamun)",
    "27": "Syzygium Jambos (Rose Apple)",
    "28": "Tabernaemontana Divaricata (Crape Jasmine)",
    "29": "Trigonella Foenum-graecum (Fenugreek)"
  },

  "architecture": {
    "base_model": "ResNet50",
    "include_top": false,
    "weights": "imagenet",
    "trainable": false
  },

  "layers": {
    "global_average_pooling": true,
    "dropout_rate": 0.2,
    "dense_units": 512
  },
  
  "training": {
    "optimizer": {
      "optimizer_type": "Adam",
      "learning_rate": 0.0001,
      "weight_decay": 1e-4
    },
    "loss_function": "SparseCategoricalCrossentropy",
    "metrics": ["accuracy"],
    "num_epochs": 25,
    "batch_size": 32
  },
  "from_tf": True
}