Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +37 -0
- config.json +119 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- pytorch_model.bin +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,6 @@ 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 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
37 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
38 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- autotrain
|
4 |
+
- vision
|
5 |
+
- image-classification
|
6 |
+
datasets:
|
7 |
+
- OttoYu/autotrain-data-tree-inspection
|
8 |
+
widget:
|
9 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
10 |
+
example_title: Tiger
|
11 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
|
12 |
+
example_title: Teapot
|
13 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
|
14 |
+
example_title: Palace
|
15 |
+
co2_eq_emissions:
|
16 |
+
emissions: 2.1481896644746374
|
17 |
+
---
|
18 |
+
|
19 |
+
# Model Trained Using AutoTrain
|
20 |
+
|
21 |
+
- Problem type: Multi-class Classification
|
22 |
+
- Model ID: 87833143598
|
23 |
+
- CO2 Emissions (in grams): 2.1482
|
24 |
+
|
25 |
+
## Validation Metrics
|
26 |
+
|
27 |
+
- Loss: 1.251
|
28 |
+
- Accuracy: 0.652
|
29 |
+
- Macro F1: 0.594
|
30 |
+
- Micro F1: 0.652
|
31 |
+
- Weighted F1: 0.620
|
32 |
+
- Macro Precision: 0.629
|
33 |
+
- Micro Precision: 0.652
|
34 |
+
- Weighted Precision: 0.642
|
35 |
+
- Macro Recall: 0.617
|
36 |
+
- Micro Recall: 0.652
|
37 |
+
- Weighted Recall: 0.652
|
config.json
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
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": "Asymmetric tree canopy \u6a39\u51a0\uf967\u5c0d\u7a31",
|
21 |
+
"1": "Bleedingsap flow \u6ef2\u6db2",
|
22 |
+
"10": "Crown reducedexcessively thinned topped \u6a39\u51a0\u5927\u5e45\u6e1b\u5c11\u524a\u9802\u622a\u982d",
|
23 |
+
"11": "Cut pruning roots \u6839\u90e8\u7d93\ufa00\u5272\u6216\u622a\u6839",
|
24 |
+
"12": "Dead branches Hangers \u67af\u6b7b \u61f8\u540a\u65b7\u679d",
|
25 |
+
"13": "Dead surface roots \u6839\u90e8\u8150\u58de",
|
26 |
+
"14": "Dieback twigs \u67af\u679d",
|
27 |
+
"15": "Epicormics \u6c34\u6a6b\u679d",
|
28 |
+
"16": "Exposed dead wood \u67af\u5e79\u5916\uf938",
|
29 |
+
"17": "Fungal Fruiting Bodies \u5448\u73fe\u771f\u83cc\u5b50\u5be6\u9ad4",
|
30 |
+
"18": "Girdling roots \u7e8f\u7e5e\u6839",
|
31 |
+
"19": "Heavy crown load \u6a39\u51a0\u8ca0\u8377\u592a\u91cd",
|
32 |
+
"2": "Bulge \u816b\u8139",
|
33 |
+
"20": "Heavy lateral limb \u91cd\u5074\u679d",
|
34 |
+
"21": "Included bark \u5167\u593e\u6a39\u76ae",
|
35 |
+
"22": "Lion\u2019s tailing \u7345\u5c3e",
|
36 |
+
"23": "Multiple stems \u591a\u679d\u5e79",
|
37 |
+
"24": "Parasitic or Epiphytic plants \u5bc4\u751f\u9644\u751f\u690d\u7269",
|
38 |
+
"25": "Root flare collar not visible \u6839\u810a\uf967\u73fe",
|
39 |
+
"26": "Root-plate movement \u6839\u57fa\u79fb\u4f4d",
|
40 |
+
"27": "Signs of pests and disease \u5448\u73fe\u75c5\u87f2\u5bb3\u5fb5\uf9fa",
|
41 |
+
"28": "Termites borers injury \u767d\u87fb\u6216\u86c0\u5fc3\u87f2\u86c0\u8755",
|
42 |
+
"29": "Wounds Mechanical injury \u660e\u986f\u50b7\u75d5\u6a5f\u68b0\u7834\u640d",
|
43 |
+
"3": "Cavities \u6a39\ufa05",
|
44 |
+
"4": "Co-dominant branches \u7b49\u52e2\u679d",
|
45 |
+
"5": "Co-dominant trunks \u7b49\u52e2\u5e79",
|
46 |
+
"6": "Cracks or Fissures on branches \u6a39\u5e79\u6709\u88c2\u7e2b\u6216\u88c2\u958b",
|
47 |
+
"7": "Cracks splits \uf9a0\u7e2b \uf9a0\u958b",
|
48 |
+
"8": "Crooks abrupt bends \uf967\u5e38\u898f\u5f4e\u66f2",
|
49 |
+
"9": "Cross branches \u758a\u679d"
|
50 |
+
},
|
51 |
+
"image_size": 224,
|
52 |
+
"initializer_range": 0.02,
|
53 |
+
"label2id": {
|
54 |
+
"Asymmetric tree canopy \u6a39\u51a0\uf967\u5c0d\u7a31": "0",
|
55 |
+
"Bleedingsap flow \u6ef2\u6db2": "1",
|
56 |
+
"Bulge \u816b\u8139": "2",
|
57 |
+
"Cavities \u6a39\ufa05": "3",
|
58 |
+
"Co-dominant branches \u7b49\u52e2\u679d": "4",
|
59 |
+
"Co-dominant trunks \u7b49\u52e2\u5e79": "5",
|
60 |
+
"Cracks or Fissures on branches \u6a39\u5e79\u6709\u88c2\u7e2b\u6216\u88c2\u958b": "6",
|
61 |
+
"Cracks splits \uf9a0\u7e2b \uf9a0\u958b": "7",
|
62 |
+
"Crooks abrupt bends \uf967\u5e38\u898f\u5f4e\u66f2": "8",
|
63 |
+
"Cross branches \u758a\u679d": "9",
|
64 |
+
"Crown reducedexcessively thinned topped \u6a39\u51a0\u5927\u5e45\u6e1b\u5c11\u524a\u9802\u622a\u982d": "10",
|
65 |
+
"Cut pruning roots \u6839\u90e8\u7d93\ufa00\u5272\u6216\u622a\u6839": "11",
|
66 |
+
"Dead branches Hangers \u67af\u6b7b \u61f8\u540a\u65b7\u679d": "12",
|
67 |
+
"Dead surface roots \u6839\u90e8\u8150\u58de": "13",
|
68 |
+
"Dieback twigs \u67af\u679d": "14",
|
69 |
+
"Epicormics \u6c34\u6a6b\u679d": "15",
|
70 |
+
"Exposed dead wood \u67af\u5e79\u5916\uf938": "16",
|
71 |
+
"Fungal Fruiting Bodies \u5448\u73fe\u771f\u83cc\u5b50\u5be6\u9ad4": "17",
|
72 |
+
"Girdling roots \u7e8f\u7e5e\u6839": "18",
|
73 |
+
"Heavy crown load \u6a39\u51a0\u8ca0\u8377\u592a\u91cd": "19",
|
74 |
+
"Heavy lateral limb \u91cd\u5074\u679d": "20",
|
75 |
+
"Included bark \u5167\u593e\u6a39\u76ae": "21",
|
76 |
+
"Lion\u2019s tailing \u7345\u5c3e": "22",
|
77 |
+
"Multiple stems \u591a\u679d\u5e79": "23",
|
78 |
+
"Parasitic or Epiphytic plants \u5bc4\u751f\u9644\u751f\u690d\u7269": "24",
|
79 |
+
"Root flare collar not visible \u6839\u810a\uf967\u73fe": "25",
|
80 |
+
"Root-plate movement \u6839\u57fa\u79fb\u4f4d": "26",
|
81 |
+
"Signs of pests and disease \u5448\u73fe\u75c5\u87f2\u5bb3\u5fb5\uf9fa": "27",
|
82 |
+
"Termites borers injury \u767d\u87fb\u6216\u86c0\u5fc3\u87f2\u86c0\u8755": "28",
|
83 |
+
"Wounds Mechanical injury \u660e\u986f\u50b7\u75d5\u6a5f\u68b0\u7834\u640d": "29"
|
84 |
+
},
|
85 |
+
"layer_norm_eps": 1e-05,
|
86 |
+
"max_length": 128,
|
87 |
+
"mlp_ratio": 4.0,
|
88 |
+
"model_type": "swin",
|
89 |
+
"num_channels": 3,
|
90 |
+
"num_heads": [
|
91 |
+
3,
|
92 |
+
6,
|
93 |
+
12,
|
94 |
+
24
|
95 |
+
],
|
96 |
+
"num_layers": 4,
|
97 |
+
"out_features": [
|
98 |
+
"stage4"
|
99 |
+
],
|
100 |
+
"out_indices": [
|
101 |
+
4
|
102 |
+
],
|
103 |
+
"padding": "max_length",
|
104 |
+
"patch_size": 4,
|
105 |
+
"path_norm": true,
|
106 |
+
"problem_type": "single_label_classification",
|
107 |
+
"qkv_bias": true,
|
108 |
+
"stage_names": [
|
109 |
+
"stem",
|
110 |
+
"stage1",
|
111 |
+
"stage2",
|
112 |
+
"stage3",
|
113 |
+
"stage4"
|
114 |
+
],
|
115 |
+
"torch_dtype": "float32",
|
116 |
+
"transformers_version": "4.29.2",
|
117 |
+
"use_absolute_embeddings": false,
|
118 |
+
"window_size": 7
|
119 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3f81d30e11e67c326627697f0f3b1e803571e9ab46293ce874befca8c324c202
|
3 |
+
size 110428968
|
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 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a0c51ab232ab91192cee130b8dc337b0947b8cc49499e09d1fd95047b8be0fc
|
3 |
+
size 110480945
|