sainteye commited on
Commit
24249d4
1 Parent(s): 81f62fd

From ifoodie-menu-v3 Acc_Val 0.938

Browse files
.gitattributes CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ images/0 filter=lfs diff=lfs merge=lfs -text
37
+ images/1.jpg filter=lfs diff=lfs merge=lfs -text
38
+ images/2.jpg filter=lfs diff=lfs merge=lfs -text
39
+ images/3 filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - image-classification
4
+ - pytorch
5
+ - huggingpics
6
+ metrics:
7
+ - accuracy
8
+
9
+ model-index:
10
+ - name: ifoodie-menu-v3.1
11
+ results:
12
+ - task:
13
+ name: Image Classification
14
+ type: image-classification
15
+ metrics:
16
+ - name: Accuracy
17
+ type: accuracy
18
+ value: 0.9375
19
+ ---
20
+
21
+ # ifoodie-menu-v3.1
22
+
23
+
24
+ ['優質', '差', '廣告', '普通']
25
+
26
+
27
+ ## Example Images
28
+
29
+
30
+ # #### 優質
31
+
32
+ # ![優質](images/0)
33
+ #
34
+ # #### 差
35
+
36
+ # ![差](images/1.jpg)
37
+ #
38
+ # #### 廣告
39
+
40
+ # ![廣告](images/2.jpg)
41
+ #
42
+ # #### 普通
43
+
44
+ # ![普通](images/3)
45
+ #
config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sainteye/ifoodie-menu-v3",
3
+ "architectures": [
4
+ "SwinForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 6,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "embed_dim": 96,
15
+ "encoder_stride": 32,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 768,
19
+ "id2label": {
20
+ "0": "\u512a\u8cea",
21
+ "1": "\u5dee",
22
+ "2": "\u5ee3\u544a",
23
+ "3": "\u666e\u901a"
24
+ },
25
+ "image_size": 224,
26
+ "initializer_range": 0.02,
27
+ "label2id": {
28
+ "\u512a\u8cea": "0",
29
+ "\u5dee": "1",
30
+ "\u5ee3\u544a": "2",
31
+ "\u666e\u901a": "3"
32
+ },
33
+ "layer_norm_eps": 1e-05,
34
+ "max_length": 128,
35
+ "mlp_ratio": 4.0,
36
+ "model_type": "swin",
37
+ "num_channels": 3,
38
+ "num_heads": [
39
+ 3,
40
+ 6,
41
+ 12,
42
+ 24
43
+ ],
44
+ "num_layers": 4,
45
+ "out_features": [
46
+ "stage4"
47
+ ],
48
+ "out_indices": [
49
+ 4
50
+ ],
51
+ "padding": "max_length",
52
+ "patch_size": 4,
53
+ "path_norm": true,
54
+ "problem_type": "single_label_classification",
55
+ "qkv_bias": true,
56
+ "stage_names": [
57
+ "stem",
58
+ "stage1",
59
+ "stage2",
60
+ "stage3",
61
+ "stage4"
62
+ ],
63
+ "torch_dtype": "float32",
64
+ "transformers_version": "4.35.0",
65
+ "use_absolute_embeddings": false,
66
+ "window_size": 7
67
+ }
images/0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d65165279105ca6773180500688df4bdc69a2c7b771752f0a46ef120b7fd8ec3
3
+ size 6148
images/1.jpg ADDED

Git LFS Details

  • SHA256: 6b08ced00d1eae48c68b4085cde3c5ce380a13c29a668b5f664ae66d1799787f
  • Pointer size: 130 Bytes
  • Size of remote file: 64.3 kB
images/2.jpg ADDED

Git LFS Details

  • SHA256: 4a102ed6163bbd8c57f87e8ccc29a88f43718993efa9413050fbb798af7d360c
  • Pointer size: 130 Bytes
  • Size of remote file: 46.4 kB
images/3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d65165279105ca6773180500688df4bdc69a2c7b771752f0a46ef120b7fd8ec3
3
+ size 6148
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a42d71f73e3d49dc0d32375a825dbc0a3551378cd34a3c2c5b34f137a2baeff
3
+ size 110348984
preprocessor_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "feature_extractor_type": "ViTFeatureExtractor",
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_processor_type": "ViTFeatureExtractor",
12
+ "image_std": [
13
+ 0.229,
14
+ 0.224,
15
+ 0.225
16
+ ],
17
+ "resample": 3,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 224,
21
+ "width": 224
22
+ }
23
+ }
runs/events.out.tfevents.1699971655.2eacb966a482.637.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fdc6172a6d78c534ed7be2cecf2704aec000e11d796d044a64967895f75ffd58
3
+ size 1574