dwililiya commited on
Commit
574019b
·
verified ·
1 Parent(s): a4bb4a9

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +55 -0
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Food-101 Image Classification with EfficientNet
2
+
3
+ This project focuses on fine-tuning the **EfficientNet-B0** model for image classification using the **Food-101** dataset. The model is trained to classify images into 101 different food categories.
4
+
5
+ ## Model Summary
6
+
7
+ - **Model Architecture**: EfficientNet-B0
8
+ - **Dataset**: Food-101
9
+ - **Number of Classes**: 101
10
+ - **Input Image Size**: 224x224
11
+ - **Normalization**: Mean - `[0.485, 0.456, 0.406]`, Std - `[0.229, 0.224, 0.225]`
12
+ - **Optimizer**: Adam
13
+ - **Loss Function**: CrossEntropyLoss
14
+ - **Learning Rate**: 0.001
15
+ - **Epochs**: 10
16
+
17
+ ## Dataset
18
+
19
+ The **Food-101** dataset consists of 101 food categories, with 1,000 images for each category. The dataset is already split into training (75,750 images) and validation (25,250 images).
20
+
21
+ - Dataset link: [Food-101 on Hugging Face](https://huggingface.co/datasets/ethz/food101)
22
+
23
+ ## Model Training
24
+
25
+ The model is based on **EfficientNet-B0**, a state-of-the-art architecture for image classification. The pretrained model is fine-tuned on the Food-101 dataset using PyTorch.
26
+
27
+ ### Training Process
28
+
29
+ - Images are resized to 256x256 and center-cropped to 224x224.
30
+ - Data augmentation techniques such as random horizontal flip and random rotation were applied to increase the variety of training images.
31
+ - The Adam optimizer was used with a learning rate of 0.001, and cross-entropy loss was used for classification.
32
+
33
+
34
+ ## Model Performance
35
+ - Loss: 1.0926
36
+ - Validation Accuracy: 0.6944
37
+ - Test Accuracy: 0.8088
38
+
39
+ These metrics were achieved after 10 epochs of training
40
+
41
+ ## How to use the model
42
+ You can use the model directly in your own projects by loading it from hugging face.
43
+
44
+ ### Requirements
45
+ - Python 3.7+
46
+ - PyTorch 1.9+
47
+ - torchvision 0.10+
48
+ - PIL (Pillow)
49
+ - Hugging Face transformers library
50
+
51
+ ## Model Card
52
+ - ModelType: EfficientNet-B0
53
+ - Dataset: Food-101
54
+ - Framework: Pytorch
55
+ - Optimized for: Image Classification