shbA commited on
Commit
7ee85b2
1 Parent(s): 30aedfd

End of training

Browse files
Files changed (4) hide show
  1. README.md +16 -13
  2. config.json +1 -2
  3. preprocessor_config.json +6 -6
  4. 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 [facebook/dino-vitb16](https://huggingface.co/facebook/dino-vitb16) on an unknown dataset.
16
  It achieves the following results on the evaluation set:
17
- - Train Loss: 0.4493
18
- - Validation Loss: 0.4618
19
- - Train Accuracy: 0.8043
20
- - Epoch: 6
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': 1288, '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.01}
40
  - training_precision: float32
41
 
42
  ### Training results
43
 
44
  | Train Loss | Validation Loss | Train Accuracy | Epoch |
45
  |:----------:|:---------------:|:--------------:|:-----:|
46
- | 1.2277 | 0.8208 | 0.6087 | 0 |
47
- | 0.7967 | 0.4934 | 0.8261 | 1 |
48
- | 0.5488 | 0.5541 | 0.7391 | 2 |
49
- | 0.6664 | 1.0464 | 0.6304 | 3 |
50
- | 0.7975 | 1.1285 | 0.5652 | 4 |
51
- | 0.6134 | 0.8258 | 0.6957 | 5 |
52
- | 0.4493 | 0.4618 | 0.8043 | 6 |
 
 
 
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": "facebook/dino-vitb16",
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.485,
7
- 0.456,
8
- 0.406
9
  ],
10
  "image_processor_type": "ViTImageProcessor",
11
  "image_std": [
12
- 0.229,
13
- 0.224,
14
- 0.225
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:831d89bffc0c679feffdc68af98122c90fc885a2d208843c43849c10ee64a58b
3
  size 343472824
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c762ce5987515e2a1157e2255a191beade55bb867443d9d1c208c9bba23b3fcd
3
  size 343472824