Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit ec9e97f

Browse files
authored
Update Fine Tuning Torchvision Models.md
Add more info about model
1 parent 9a058bc commit ec9e97f

1 file changed

Lines changed: 30 additions & 17 deletions

File tree

Tutorials/Fine Tuning Torchvision Models.md

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -280,35 +280,48 @@ print('Predicted: ', ' '.join('%5s' % predicted[j]
280280

281281

282282
## Model Accuracy
283-
Please reference confusion_matrix.py and plot_confusion_matrix.py under Model_scripts, for more details on computing confusion matrix and model accuracy.
284-
285-
| Model | Epoch | Accuracy |
286-
|---------------|------ |------------ |
287-
| AlexNet | 30 | 72% |
288-
| ResNet 34 | 30 | 72% |
289-
| Mobilenet | 30 | 73% |
290-
| ResNet 50 | 30 | 75% |
291-
| densenet 161 | 30 | 77% |
292-
| ResNet 101 | 30 | 79% |
293-
294-
### AlexNet model
283+
284+
The accuracy and size for each model is shown in the table. Our ResNet 101 model can achieve the best accuracy of 79%. Our MobileNet V2 has a very small model size of 17 MB compared to other models, so it has the potential to be deployed on a hardware device.
285+
286+
In terms of future improvement, we are looking into fine-tuning the MobilNetV2 and ResNet 101 models with more images.
287+
288+
289+
290+
| Model | Epoch | Accuracy | Model Size (MB)|
291+
|---------------|------ |------------ |----------------|
292+
| ResNet 34 | 30 | 72% | 163 |
293+
| MobilenetV2 | 30 | 73% | 17 |
294+
| ResNet 50 | 30 | 75% | 180 |
295+
| AlexNet | 30 | 76% | 539 |
296+
| densenet 161 | 30 | 77% | 203 |
297+
| ResNet 101 | 30 | 79% | 325 |
298+
299+
### Python Scripts
300+
* AlexNet model
295301
[This link](https://github.com/NaeRong/DS440_Capstone/blob/master/Tutorials/Model%20Script/alexnet.py)
296302

297-
### ResNet 34 model
303+
* ResNet 34 model
298304
[This link](https://github.com/NaeRong/DS440_Capstone/blob/master/Tutorials/Model%20Script/resnset34.py)
299305

300-
### ResNet 101 model
306+
* ResNet 101 model
301307
[This link](https://github.com/NaeRong/DS440_Capstone/blob/master/Tutorials/Model%20Script/resnset101.py)
302308

309+
* DenseNet 161 model
310+
[This link](https://github.com/NaeRong/DS440_Capstone/blob/master/Tutorials/Model%20Script/densenet.py)
311+
312+
* Mobilenet V2 model
313+
[This link](https://github.com/NaeRong/DS440_Capstone/blob/master/Tutorials/Model%20Script/mobilenetv2.py)
314+
303315
## Confusion Matrix for ResNet 101
304316

305-
The true positives rate and true negatives rate are both about 80%, which indicate a good precision and recall of our model.
317+
The true positives rate and true negatives rate are both about 80%, which indicates a good precision / recall of our model.
306318

307319
![img](https://github.com/NaeRong/DS440_Capstone/blob/master/Images/cm.png)
308320

309-
### Script to compute Confusion Matrix
321+
### Python Script for Confusion Matrix
322+
* Confusion Matrix
310323
[This link](https://github.com/NaeRong/DS440_Capstone/blob/master/Tutorials/Model%20Script/Confusion_Matrix.py)
311-
### Script to compute Confusion Matrix Plot
324+
* Confusion Matrix Plot
312325
[This link](https://github.com/NaeRong/DS440_Capstone/blob/master/Tutorials/Model%20Script/Plot_Confusion_Matrix.py)
313326

314327
## License

0 commit comments

Comments
 (0)