ONNX
raphael0202 commited on
Commit
a853208
·
verified ·
1 Parent(s): c0fccb4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -2,6 +2,8 @@
2
  license: agpl-3.0
3
  datasets:
4
  - openfoodfacts/front_image_classification
 
 
5
  ---
6
 
7
  # Front image classification model
@@ -39,6 +41,23 @@ v1.0 of the [front_image_classification](https://huggingface.co/datasets/openfoo
39
  - Image size: 448
40
  - Albumentation augmentation
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  ## Evaluation
43
 
44
  accuracy: 0.9525
 
2
  license: agpl-3.0
3
  datasets:
4
  - openfoodfacts/front_image_classification
5
+ base_model:
6
+ - Ultralytics/YOLO11
7
  ---
8
 
9
  # Front image classification model
 
41
  - Image size: 448
42
  - Albumentation augmentation
43
 
44
+ [This script](https://github.com/openfoodfacts/openfoodfacts-ai/blob/dbbec40a3d964124cd7c8d838023be4a10d6c0be/front-image-classification/train.py) was used for training the model.
45
+
46
+ The augmentation pipeline used for prediction:
47
+
48
+ ```python
49
+ A.Compose(
50
+ [
51
+ A.LongestMaxSize(max_size=max_size, p=1.0),
52
+ A.PadIfNeeded(min_height=max_size, min_width=max_size, p=1.0),
53
+ A.Normalize(mean=DEFAULT_MEAN, std=DEFAULT_STD, p=1.0),
54
+ ToTensorV2(p=1.0),
55
+ ]
56
+ )
57
+ ```
58
+
59
+ For optimal performance, it is advised to keep the same preprocessing pipeline during inference.
60
+
61
  ## Evaluation
62
 
63
  accuracy: 0.9525