botaniscan-models / config.json
anurag629's picture
Update config.json
8c6d7d5
{
"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
}