Shad0wKillar commited on
Commit
0133072
·
verified ·
1 Parent(s): 67dc4b9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -16
README.md CHANGED
@@ -16,39 +16,38 @@ metrics:
16
  I fine-tuned a pre-trained EfficientNet-B1 model to classify images into three categories: pizza, steak, and sushi[cite: 1].
17
 
18
  ## Model Details
19
- * **Architecture:** `torchvision.models.efficientnet_b1`[cite: 1]
20
- * **Weights:** `EfficientNet_B1_Weights.DEFAULT`[cite: 1]
21
- * **Modifications:** I froze all the base feature layers[cite: 1]. I replaced the classifier head with a `Dropout(p=0.2)` and a `Linear` layer mapping from 1280 in_features to 3 out_features[cite: 1].
22
-
23
  ## Training Procedure
24
- I trained the model for 10 epochs using the Adam optimizer[cite: 1].
25
 
26
- * **Batch Size:** 32[cite: 1]
27
- * **Learning Rate:** 0.001[cite: 1]
28
- * **Loss Function:** CrossEntropyLoss[cite: 1]
29
- * **Transforms:** I used the automatic transforms provided by the default EfficientNet-B1 weights[cite: 1].
30
- * **Hardware:** Trained using `cuda` (if available) with a set manual seed of 37 for reproducibility[cite: 1].
31
 
32
  ## Dataset
33
- I used a 20% subset of a pizza, steak, and sushi dataset[cite: 1]. The data was split into `train` and `test` directories[cite: 1].
34
 
35
  ## Evaluation Results
36
 
37
  ### Accuracy and Loss Curves
38
- Over the 10 epochs, both the training and testing loss steadily decreased, with the testing loss ending below 0.40[cite: 1]. The testing accuracy outperformed the training accuracy early on and finished highly stable above 90%[cite: 1].
39
 
40
  ![Loss and Accuracy Curves](plots/EfficientNet_B1_20percent.pth_curves.png)
41
 
42
  ### Confusion Matrix
43
  The model performs exceptionally well across all three classes on the test set:
44
- * **Pizza:** 45 correct, 0 misclassified as steak, 1 misclassified as sushi[cite: 1].
45
- * **Steak:** 56 correct, 0 misclassified as pizza, 2 misclassified as sushi[cite: 1].
46
- * **Sushi:** 42 correct, 3 misclassified as pizza, 1 misclassified as steak[cite: 1].
47
 
48
  ![Confusion Matrix](plots/EfficientNet_B1_20percent.pth_confusion_matrix.png)
49
 
50
  ### Most Confident Wrong Predictions
51
- I plotted the instances where the model was highly confident but incorrect[cite: 1]. The model occasionally struggled with distinguishing close-up textures, such as predicting a steak dish as sushi with 0.82 confidence, or a sushi dish as pizza with 0.61 confidence[cite: 1].
52
 
53
  ![Wrong Predictions](plots/EfficientNet_B1_20percent.pth_wrong_pred.png)
54
 
 
16
  I fine-tuned a pre-trained EfficientNet-B1 model to classify images into three categories: pizza, steak, and sushi[cite: 1].
17
 
18
  ## Model Details
19
+ * **Architecture:** `torchvision.models.efficientnet_b1`
20
+ * **Weights:** `EfficientNet_B1_Weights.DEFAULT`
21
+ * **Modifications:** I froze all the base feature layers
 
22
  ## Training Procedure
23
+ I trained the model for 10 epochs using the Adam optimizer.
24
 
25
+ * **Batch Size:** 32
26
+ * **Learning Rate:** 0.001
27
+ * **Loss Function:** CrossEntropyLoss
28
+ * **Transforms:** I used the automatic transforms provided by the default EfficientNet-B1 weights.
29
+ * **Hardware:** Trained using `cuda` (if available) with a set manual seed of 37 for reproducibility].
30
 
31
  ## Dataset
32
+ I used a 20% subset of a pizza, steak, and sushi dataset. The data was split into `train` and `test` directories.
33
 
34
  ## Evaluation Results
35
 
36
  ### Accuracy and Loss Curves
37
+ Over the 10 epochs, both the training and testing loss steadily decreased, with the testing loss ending below 0.40. The testing accuracy outperformed the training accuracy early on and finished highly stable above 90%.
38
 
39
  ![Loss and Accuracy Curves](plots/EfficientNet_B1_20percent.pth_curves.png)
40
 
41
  ### Confusion Matrix
42
  The model performs exceptionally well across all three classes on the test set:
43
+ * **Pizza:** 45 correct, 0 misclassified as steak, 1 misclassified as sushi.
44
+ * **Steak:** 56 correct, 0 misclassified as pizza, 2 misclassified as sushi.
45
+ * **Sushi:** 42 correct, 3 misclassified as pizza, 1 misclassified as steak.
46
 
47
  ![Confusion Matrix](plots/EfficientNet_B1_20percent.pth_confusion_matrix.png)
48
 
49
  ### Most Confident Wrong Predictions
50
+ I plotted the instances where the model was highly confident but incorrect. The model occasionally struggled with distinguishing close-up textures, such as predicting a steak dish as sushi with 0.82 confidence, or a sushi dish as pizza with 0.61 confidence.
51
 
52
  ![Wrong Predictions](plots/EfficientNet_B1_20percent.pth_wrong_pred.png)
53