End of training
Browse files- README.md +16 -13
- config.json +1 -2
- preprocessor_config.json +6 -6
- tf_model.h5 +1 -1
README.md
CHANGED
@@ -12,12 +12,12 @@ probably proofread and complete it, then remove this comment. -->
|
|
12 |
|
13 |
# shbA/food_classifier
|
14 |
|
15 |
-
This model is a fine-tuned version of [
|
16 |
It achieves the following results on the evaluation set:
|
17 |
-
- Train Loss: 0.
|
18 |
-
- Validation Loss: 0.
|
19 |
-
- Train Accuracy: 0.
|
20 |
-
- Epoch:
|
21 |
|
22 |
## Model description
|
23 |
|
@@ -36,20 +36,23 @@ More information needed
|
|
36 |
### Training hyperparameters
|
37 |
|
38 |
The following hyperparameters were used during training:
|
39 |
-
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps':
|
40 |
- training_precision: float32
|
41 |
|
42 |
### Training results
|
43 |
|
44 |
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|
45 |
|:----------:|:---------------:|:--------------:|:-----:|
|
46 |
-
| 1.
|
47 |
-
| 0.
|
48 |
-
| 0.
|
49 |
-
| 0.
|
50 |
-
| 0.
|
51 |
-
| 0.
|
52 |
-
| 0.
|
|
|
|
|
|
|
53 |
|
54 |
|
55 |
### Framework versions
|
|
|
12 |
|
13 |
# shbA/food_classifier
|
14 |
|
15 |
+
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
|
16 |
It achieves the following results on the evaluation set:
|
17 |
+
- Train Loss: 0.5020
|
18 |
+
- Validation Loss: 0.4878
|
19 |
+
- Train Accuracy: 0.8125
|
20 |
+
- Epoch: 9
|
21 |
|
22 |
## Model description
|
23 |
|
|
|
36 |
### Training hyperparameters
|
37 |
|
38 |
The following hyperparameters were used during training:
|
39 |
+
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps': 1920, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.05}
|
40 |
- training_precision: float32
|
41 |
|
42 |
### Training results
|
43 |
|
44 |
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|
45 |
|:----------:|:---------------:|:--------------:|:-----:|
|
46 |
+
| 1.0700 | 0.9871 | 0.5208 | 0 |
|
47 |
+
| 0.9347 | 0.7458 | 0.7917 | 1 |
|
48 |
+
| 0.8570 | 0.7546 | 0.6875 | 2 |
|
49 |
+
| 0.7179 | 0.5846 | 0.75 | 3 |
|
50 |
+
| 0.6272 | 0.6125 | 0.75 | 4 |
|
51 |
+
| 0.5631 | 0.4566 | 0.8125 | 5 |
|
52 |
+
| 0.5580 | 0.4655 | 0.7917 | 6 |
|
53 |
+
| 0.5796 | 0.4462 | 0.8333 | 7 |
|
54 |
+
| 0.4934 | 0.4899 | 0.8542 | 8 |
|
55 |
+
| 0.5020 | 0.4878 | 0.8125 | 9 |
|
56 |
|
57 |
|
58 |
### Framework versions
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
@@ -28,6 +28,5 @@
|
|
28 |
"num_hidden_layers": 12,
|
29 |
"patch_size": 16,
|
30 |
"qkv_bias": true,
|
31 |
-
"torch_dtype": "float32",
|
32 |
"transformers_version": "4.29.1"
|
33 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
"architectures": [
|
4 |
"ViTForImageClassification"
|
5 |
],
|
|
|
28 |
"num_hidden_layers": 12,
|
29 |
"patch_size": 16,
|
30 |
"qkv_bias": true,
|
|
|
31 |
"transformers_version": "4.29.1"
|
32 |
}
|
preprocessor_config.json
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
"do_rescale": true,
|
4 |
"do_resize": true,
|
5 |
"image_mean": [
|
6 |
-
0.
|
7 |
-
0.
|
8 |
-
0.
|
9 |
],
|
10 |
"image_processor_type": "ViTImageProcessor",
|
11 |
"image_std": [
|
12 |
-
0.
|
13 |
-
0.
|
14 |
-
0.
|
15 |
],
|
16 |
"resample": 2,
|
17 |
"rescale_factor": 0.00392156862745098,
|
|
|
3 |
"do_rescale": true,
|
4 |
"do_resize": true,
|
5 |
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
],
|
10 |
"image_processor_type": "ViTImageProcessor",
|
11 |
"image_std": [
|
12 |
+
0.5,
|
13 |
+
0.5,
|
14 |
+
0.5
|
15 |
],
|
16 |
"resample": 2,
|
17 |
"rescale_factor": 0.00392156862745098,
|
tf_model.h5
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 343472824
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c762ce5987515e2a1157e2255a191beade55bb867443d9d1c208c9bba23b3fcd
|
3 |
size 343472824
|