File size: 1,550 Bytes
f72f20b
 
 
 
 
 
 
 
7d092c6
7bf6bd3
 
 
 
f72f20b
 
 
 
 
1abb26c
f72f20b
07c3bc0
f72f20b
5ec975d
 
 
 
 
 
 
 
 
 
 
 
 
 
f72f20b
 
 
 
 
 
7d092c6
 
 
 
 
f72f20b
 
 
 
 
 
7d092c6
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
---
license: apache-2.0
base_model: microsoft/resnet-18
tags:
- generated_from_trainer
model-index:
- name: resnet18-catdog-classifier
  results: []
pipeline_tag: image-classification
language:
- en
metrics:
- accuracy
---

<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should probably proofread and complete it, then remove this comment. -->

# Model description

This model is a fine-tuned version of [microsoft/resnet-18](https://huggingface.co/microsoft/resnet-18) on an [custom](https://www.kaggle.com/datasets/samuelcortinhas/cats-and-dogs-image-classification) dataset. This model was built using the "Cats & Dogs Classification" dataset obtained from Kaggle. During the model building process, this was done using the Pytorch framework with pre-trained Resnet-18. The method used during the process of building this classification model is fine-tuning with the dataset.

## Training results

| Epoch | Accuracy |
|:-----:|:--------:|
| 1.0   | 0.9357   |
| 2.0   | 0.9786   |
| 3.0   | 0.9000   |
| 4.0   | 0.9214   |
| 5.0   | 0.9143   |
| 6.0   | 0.9429   |
| 7.0   | 0.9714   |
| 8.0   | 0.9929   |
| 9.0   | 0.9714   |
| 10.0  | 0.9714   |

## Training procedure

### Training hyperparameters

The following hyperparameters were used during training:
- loss_function = CrossEntropyLoss
- optimizer = AdamW
- learning_rate: 0.0001
- batch_size: 16
- num_epochs: 10

### Framework versions

- Transformers 4.33.2
- Pytorch 2.0.1+cu118
- Datasets 2.14.5
- Tokenizers 0.13.3