raphael0202 commited on
Commit
7b686d4
1 Parent(s): 8b7b797

End of training

Browse files
README.md CHANGED
@@ -3,6 +3,8 @@ license: cc-by-nc-sa-4.0
3
  base_model: microsoft/layoutlmv3-large
4
  tags:
5
  - generated_from_trainer
 
 
6
  metrics:
7
  - precision
8
  - recall
@@ -10,7 +12,26 @@ metrics:
10
  - accuracy
11
  model-index:
12
  - name: nutrition-extractor
13
- results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ---
15
 
16
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -18,13 +39,13 @@ should probably proofread and complete it, then remove this comment. -->
18
 
19
  # nutrition-extractor
20
 
21
- This model is a fine-tuned version of [microsoft/layoutlmv3-large](https://huggingface.co/microsoft/layoutlmv3-large) on an unknown dataset.
22
  It achieves the following results on the evaluation set:
23
- - Loss: 0.0532
24
- - Precision: 0.9536
25
- - Recall: 0.9633
26
- - F1: 0.9584
27
- - Accuracy: 0.9916
28
 
29
  ## Model description
30
 
 
3
  base_model: microsoft/layoutlmv3-large
4
  tags:
5
  - generated_from_trainer
6
+ datasets:
7
+ - openfoodfacts/nutrient-detection-layout
8
  metrics:
9
  - precision
10
  - recall
 
12
  - accuracy
13
  model-index:
14
  - name: nutrition-extractor
15
+ results:
16
+ - task:
17
+ name: Token Classification
18
+ type: token-classification
19
+ dataset:
20
+ name: openfoodfacts/nutrient-detection-layout
21
+ type: openfoodfacts/nutrient-detection-layout
22
+ metrics:
23
+ - name: Precision
24
+ type: precision
25
+ value: 0.9545036764705882
26
+ - name: Recall
27
+ type: recall
28
+ value: 0.9647004180213655
29
+ - name: F1
30
+ type: f1
31
+ value: 0.9595749595749595
32
+ - name: Accuracy
33
+ type: accuracy
34
+ value: 0.9916725247390905
35
  ---
36
 
37
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
39
 
40
  # nutrition-extractor
41
 
42
+ This model is a fine-tuned version of [microsoft/layoutlmv3-large](https://huggingface.co/microsoft/layoutlmv3-large) on the openfoodfacts/nutrient-detection-layout dataset.
43
  It achieves the following results on the evaluation set:
44
+ - Loss: 0.0534
45
+ - Precision: 0.9545
46
+ - Recall: 0.9647
47
+ - F1: 0.9596
48
+ - Accuracy: 0.9917
49
 
50
  ## Model description
51
 
all_results.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 33.287101248266296,
3
+ "eval_accuracy": 0.9916725247390905,
4
+ "eval_f1": 0.9595749595749595,
5
+ "eval_loss": 0.05336242541670799,
6
+ "eval_precision": 0.9545036764705882,
7
+ "eval_recall": 0.9647004180213655,
8
+ "eval_runtime": 35.69,
9
+ "eval_samples": 199,
10
+ "eval_samples_per_second": 5.576,
11
+ "eval_steps_per_second": 1.401,
12
+ "total_flos": 8.9780255686656e+16,
13
+ "train_loss": 0.0764370101193587,
14
+ "train_runtime": 55223.9534,
15
+ "train_samples": 2884,
16
+ "train_samples_per_second": 1.738,
17
+ "train_steps_per_second": 0.054
18
+ }
eval_results.json CHANGED
@@ -1,136 +1,12 @@
1
  {
2
- "eval_ADDED_SUGARS_SERVING_f1": 0.5,
3
- "eval_ADDED_SUGARS_SERVING_number": 4,
4
- "eval_ADDED_SUGARS_SERVING_precision": 0.5,
5
- "eval_ADDED_SUGARS_SERVING_recall": 0.5,
6
- "eval_CALCIUM_100G_f1": 1.0,
7
- "eval_CALCIUM_100G_number": 5,
8
- "eval_CALCIUM_100G_precision": 1.0,
9
- "eval_CALCIUM_100G_recall": 1.0,
10
- "eval_CALCIUM_SERVING_f1": 0.75,
11
- "eval_CALCIUM_SERVING_number": 4,
12
- "eval_CALCIUM_SERVING_precision": 0.75,
13
- "eval_CALCIUM_SERVING_recall": 0.75,
14
- "eval_CARBOHYDRATES_100G_f1": 0.9579831932773109,
15
- "eval_CARBOHYDRATES_100G_number": 176,
16
- "eval_CARBOHYDRATES_100G_precision": 0.9447513812154696,
17
- "eval_CARBOHYDRATES_100G_recall": 0.9715909090909091,
18
- "eval_CARBOHYDRATES_SERVING_f1": 0.9037037037037037,
19
- "eval_CARBOHYDRATES_SERVING_number": 69,
20
- "eval_CARBOHYDRATES_SERVING_precision": 0.9242424242424242,
21
- "eval_CARBOHYDRATES_SERVING_recall": 0.8840579710144928,
22
- "eval_CHOLESTEROL_SERVING_f1": 1.0,
23
- "eval_CHOLESTEROL_SERVING_number": 7,
24
- "eval_CHOLESTEROL_SERVING_precision": 1.0,
25
- "eval_CHOLESTEROL_SERVING_recall": 1.0,
26
- "eval_ENERGY_KCAL_100G_f1": 0.9827586206896551,
27
- "eval_ENERGY_KCAL_100G_number": 173,
28
- "eval_ENERGY_KCAL_100G_precision": 0.9771428571428571,
29
- "eval_ENERGY_KCAL_100G_recall": 0.9884393063583815,
30
- "eval_ENERGY_KCAL_SERVING_f1": 0.9172932330827067,
31
- "eval_ENERGY_KCAL_SERVING_number": 65,
32
- "eval_ENERGY_KCAL_SERVING_precision": 0.8970588235294118,
33
- "eval_ENERGY_KCAL_SERVING_recall": 0.9384615384615385,
34
- "eval_ENERGY_KJ_100G_f1": 0.9643835616438357,
35
- "eval_ENERGY_KJ_100G_number": 183,
36
- "eval_ENERGY_KJ_100G_precision": 0.967032967032967,
37
- "eval_ENERGY_KJ_100G_recall": 0.9617486338797814,
38
- "eval_ENERGY_KJ_SERVING_f1": 0.9579831932773109,
39
- "eval_ENERGY_KJ_SERVING_number": 57,
40
- "eval_ENERGY_KJ_SERVING_precision": 0.9193548387096774,
41
- "eval_ENERGY_KJ_SERVING_recall": 1.0,
42
- "eval_FAT_100G_f1": 0.9558011049723757,
43
- "eval_FAT_100G_number": 182,
44
- "eval_FAT_100G_precision": 0.9611111111111111,
45
- "eval_FAT_100G_recall": 0.9505494505494505,
46
- "eval_FAT_SERVING_f1": 0.9473684210526316,
47
- "eval_FAT_SERVING_number": 66,
48
- "eval_FAT_SERVING_precision": 0.9402985074626866,
49
- "eval_FAT_SERVING_recall": 0.9545454545454546,
50
- "eval_FIBER_100G_f1": 0.912280701754386,
51
- "eval_FIBER_100G_number": 84,
52
- "eval_FIBER_100G_precision": 0.896551724137931,
53
- "eval_FIBER_100G_recall": 0.9285714285714286,
54
- "eval_FIBER_SERVING_f1": 0.8823529411764707,
55
- "eval_FIBER_SERVING_number": 50,
56
- "eval_FIBER_SERVING_precision": 0.8653846153846154,
57
- "eval_FIBER_SERVING_recall": 0.9,
58
- "eval_IRON_SERVING_f1": 0.0,
59
- "eval_IRON_SERVING_number": 2,
60
- "eval_IRON_SERVING_precision": 0.0,
61
- "eval_IRON_SERVING_recall": 0.0,
62
- "eval_POTASSIUM_SERVING_f1": 0.9090909090909091,
63
- "eval_POTASSIUM_SERVING_number": 5,
64
- "eval_POTASSIUM_SERVING_precision": 0.8333333333333334,
65
- "eval_POTASSIUM_SERVING_recall": 1.0,
66
- "eval_PROTEINS_100G_f1": 0.9545454545454545,
67
- "eval_PROTEINS_100G_number": 175,
68
- "eval_PROTEINS_100G_precision": 0.9491525423728814,
69
- "eval_PROTEINS_100G_recall": 0.96,
70
- "eval_PROTEINS_SERVING_f1": 0.9375,
71
- "eval_PROTEINS_SERVING_number": 64,
72
- "eval_PROTEINS_SERVING_precision": 0.9375,
73
- "eval_PROTEINS_SERVING_recall": 0.9375,
74
- "eval_SALT_100G_f1": 0.9709302325581395,
75
- "eval_SALT_100G_number": 172,
76
- "eval_SALT_100G_precision": 0.9709302325581395,
77
- "eval_SALT_100G_recall": 0.9709302325581395,
78
- "eval_SALT_SERVING_f1": 0.9320388349514563,
79
- "eval_SALT_SERVING_number": 50,
80
- "eval_SALT_SERVING_precision": 0.9056603773584906,
81
- "eval_SALT_SERVING_recall": 0.96,
82
- "eval_SATURATED_FAT_100G_f1": 0.9577464788732395,
83
- "eval_SATURATED_FAT_100G_number": 176,
84
- "eval_SATURATED_FAT_100G_precision": 0.9497206703910615,
85
- "eval_SATURATED_FAT_100G_recall": 0.9659090909090909,
86
- "eval_SATURATED_FAT_SERVING_f1": 0.959349593495935,
87
- "eval_SATURATED_FAT_SERVING_number": 62,
88
- "eval_SATURATED_FAT_SERVING_precision": 0.9672131147540983,
89
- "eval_SATURATED_FAT_SERVING_recall": 0.9516129032258065,
90
- "eval_SERVING_SIZE_f1": 0.8970588235294118,
91
- "eval_SERVING_SIZE_number": 69,
92
- "eval_SERVING_SIZE_precision": 0.9104477611940298,
93
- "eval_SERVING_SIZE_recall": 0.8840579710144928,
94
- "eval_SODIUM_100G_f1": 0.6666666666666666,
95
- "eval_SODIUM_100G_number": 3,
96
- "eval_SODIUM_100G_precision": 0.6666666666666666,
97
- "eval_SODIUM_100G_recall": 0.6666666666666666,
98
- "eval_SODIUM_SERVING_f1": 0.9285714285714286,
99
- "eval_SODIUM_SERVING_number": 14,
100
- "eval_SODIUM_SERVING_precision": 0.9285714285714286,
101
- "eval_SODIUM_SERVING_recall": 0.9285714285714286,
102
- "eval_SUGARS_100G_f1": 0.9421965317919075,
103
- "eval_SUGARS_100G_number": 172,
104
- "eval_SUGARS_100G_precision": 0.9367816091954023,
105
- "eval_SUGARS_100G_recall": 0.9476744186046512,
106
- "eval_SUGARS_SERVING_f1": 0.8661417322834646,
107
- "eval_SUGARS_SERVING_number": 64,
108
- "eval_SUGARS_SERVING_precision": 0.873015873015873,
109
- "eval_SUGARS_SERVING_recall": 0.859375,
110
- "eval_TRANS_FAT_100G_f1": 0.0,
111
- "eval_TRANS_FAT_100G_number": 2,
112
- "eval_TRANS_FAT_100G_precision": 0.0,
113
- "eval_TRANS_FAT_100G_recall": 0.0,
114
- "eval_TRANS_FAT_SERVING_f1": 0.8333333333333333,
115
- "eval_TRANS_FAT_SERVING_number": 5,
116
- "eval_TRANS_FAT_SERVING_precision": 0.7142857142857143,
117
- "eval_TRANS_FAT_SERVING_recall": 1.0,
118
- "eval_VITAMIN_D_100G_f1": 0.0,
119
- "eval_VITAMIN_D_100G_number": 2,
120
- "eval_VITAMIN_D_100G_precision": 0.0,
121
- "eval_VITAMIN_D_100G_recall": 0.0,
122
- "eval_VITAMIN_D_SERVING_f1": 1.0,
123
- "eval_VITAMIN_D_SERVING_number": 2,
124
- "eval_VITAMIN_D_SERVING_precision": 1.0,
125
- "eval_VITAMIN_D_SERVING_recall": 1.0,
126
- "eval_loss": 0.08192184567451477,
127
- "eval_model_preparation_time": 0.0054,
128
- "eval_overall_accuracy": 0.9891778387982555,
129
- "eval_overall_f1": 0.9438564196962724,
130
- "eval_overall_precision": 0.9399633363886343,
131
- "eval_overall_recall": 0.9477818853974121,
132
- "eval_runtime": 2159.9991,
133
- "eval_samples": 200,
134
- "eval_samples_per_second": 0.093,
135
- "eval_steps_per_second": 0.012
136
  }
 
1
  {
2
+ "epoch": 33.287101248266296,
3
+ "eval_accuracy": 0.9916725247390905,
4
+ "eval_f1": 0.9595749595749595,
5
+ "eval_loss": 0.05336242541670799,
6
+ "eval_precision": 0.9545036764705882,
7
+ "eval_recall": 0.9647004180213655,
8
+ "eval_runtime": 35.69,
9
+ "eval_samples": 199,
10
+ "eval_samples_per_second": 5.576,
11
+ "eval_steps_per_second": 1.401
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  }
runs/Dec23_15-55-22_gpu-l4-20241223-150914/events.out.tfevents.1735024666.gpu-l4-20241223-150914 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92f8fb891db26463847d4c761cfd979527a099f9c5efa9c9e583ea053c3704cc
3
+ size 141
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 33.287101248266296,
3
+ "total_flos": 8.9780255686656e+16,
4
+ "train_loss": 0.0764370101193587,
5
+ "train_runtime": 55223.9534,
6
+ "train_samples": 2884,
7
+ "train_samples_per_second": 1.738,
8
+ "train_steps_per_second": 0.054
9
+ }
trainer_state.json ADDED
The diff for this file is too large to render. See raw diff