From ifoodie-menu-v1 Acc_Val 0.789
Browse files- .gitattributes +4 -0
- README.md +45 -0
- config.json +67 -0
- images/0 +3 -0
- images/1.jpg +3 -0
- images/2.jpg +3 -0
- images/3.jpg +3 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- runs/events.out.tfevents.1699002365.3cdeb6d2b391.402.6 +3 -0
.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.jpg 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-v2
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
name: Image Classification
|
14 |
+
type: image-classification
|
15 |
+
metrics:
|
16 |
+
- name: Accuracy
|
17 |
+
type: accuracy
|
18 |
+
value: 0.7894737124443054
|
19 |
+
---
|
20 |
+
|
21 |
+
# ifoodie-menu-v2
|
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.jpg)
|
45 |
+
#
|
config.json
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "sainteye/ifoodie-menu-v1",
|
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
|
images/2.jpg
ADDED
Git LFS Details
|
images/3.jpg
ADDED
Git LFS Details
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:39e8a920f12eab183c296fc5436574865c0fe6f2a70efc32f972e910308332b2
|
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.1699002365.3cdeb6d2b391.402.6
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b122bb4a7d7b7e906a493c59923256bfa38369af145e8245359ab7b3ee962d83
|
3 |
+
size 3121
|