Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +37 -0
- config.json +90 -0
- preprocessor_config.json +23 -0
- pytorch_model.bin +3 -0
.gitattributes
CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
37 |
+
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-disease
|
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: 0.9533671404013373
|
17 |
+
---
|
18 |
+
|
19 |
+
# Model Trained Using AutoTrain
|
20 |
+
|
21 |
+
- Problem type: Multi-class Classification
|
22 |
+
- Model ID: 43309110181
|
23 |
+
- CO2 Emissions (in grams): 0.9534
|
24 |
+
|
25 |
+
## Validation Metrics
|
26 |
+
|
27 |
+
- Loss: 1.558
|
28 |
+
- Accuracy: 0.564
|
29 |
+
- Macro F1: 0.488
|
30 |
+
- Micro F1: 0.564
|
31 |
+
- Weighted F1: 0.516
|
32 |
+
- Macro Precision: 0.503
|
33 |
+
- Micro Precision: 0.564
|
34 |
+
- Weighted Precision: 0.542
|
35 |
+
- Macro Recall: 0.545
|
36 |
+
- Micro Recall: 0.564
|
37 |
+
- Weighted Recall: 0.564
|
config.json
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
18,
|
11 |
+
2
|
12 |
+
],
|
13 |
+
"drop_path_rate": 0.1,
|
14 |
+
"embed_dim": 128,
|
15 |
+
"encoder_stride": 32,
|
16 |
+
"hidden_act": "gelu",
|
17 |
+
"hidden_dropout_prob": 0.0,
|
18 |
+
"hidden_size": 1024,
|
19 |
+
"id2label": {
|
20 |
+
"0": "Agrilus planipennis \u6241\u8c46",
|
21 |
+
"1": "Annosum Root Rot \u756a\u8354\u679d\u6839\u8150\u75c5",
|
22 |
+
"10": "Leaf Blister \u8449\u6ce1",
|
23 |
+
"11": "Leaf Spots \u8449\u6591",
|
24 |
+
"12": "Littleleaf Disease \u5c0f\u8449\u75c5",
|
25 |
+
"13": "Loblolly Pine Decline \u706b\u70ac\u677e\u8870\u843d",
|
26 |
+
"14": "Needle Blights \u91dd\u8449\u67af\u75c5",
|
27 |
+
"15": "Needle Rusts \u91dd\u8449\u92b9\u75c5",
|
28 |
+
"16": "Powdery Mildew \u767d\u7c89\u75c5",
|
29 |
+
"17": "Root rots \u6839\u8150\u75c5",
|
30 |
+
"18": "Rots and Decays \u8150\u721b",
|
31 |
+
"19": "Stem decays \u8396\u8150\u721b",
|
32 |
+
"2": "Anthracnose \u70ad\u75bd\u75c5",
|
33 |
+
"20": "Tar Spot \u7126\u6cb9\u6591",
|
34 |
+
"21": "Wilts \u67af\u840e\u75c5",
|
35 |
+
"3": "Black knot (lethal disease) \u9ed1\u7d50\uff08\u81f4\u547d\u75be\u75c5\uff09",
|
36 |
+
"4": "Dendroctonus micans \u96f2\u6749",
|
37 |
+
"5": "Dieback \u67af\u6b7b",
|
38 |
+
"6": "Diffuse cankers\u00a0\u7030\u6f2b\u6027\u6f70\u760d",
|
39 |
+
"7": "Fusiform rust \u68ad\u5f62\u92b9\u75c5",
|
40 |
+
"8": "Hardwood Leaf Diseases\u786c\u6728\u8449\u75c5",
|
41 |
+
"9": "Hymenoscyphus fraxineus \u767d\u881f\u87ec"
|
42 |
+
},
|
43 |
+
"image_size": 224,
|
44 |
+
"initializer_range": 0.02,
|
45 |
+
"label2id": {
|
46 |
+
"Agrilus planipennis \u6241\u8c46": "0",
|
47 |
+
"Annosum Root Rot \u756a\u8354\u679d\u6839\u8150\u75c5": "1",
|
48 |
+
"Anthracnose \u70ad\u75bd\u75c5": "2",
|
49 |
+
"Black knot (lethal disease) \u9ed1\u7d50\uff08\u81f4\u547d\u75be\u75c5\uff09": "3",
|
50 |
+
"Dendroctonus micans \u96f2\u6749": "4",
|
51 |
+
"Dieback \u67af\u6b7b": "5",
|
52 |
+
"Diffuse cankers\u00a0\u7030\u6f2b\u6027\u6f70\u760d": "6",
|
53 |
+
"Fusiform rust \u68ad\u5f62\u92b9\u75c5": "7",
|
54 |
+
"Hardwood Leaf Diseases\u786c\u6728\u8449\u75c5": "8",
|
55 |
+
"Hymenoscyphus fraxineus \u767d\u881f\u87ec": "9",
|
56 |
+
"Leaf Blister \u8449\u6ce1": "10",
|
57 |
+
"Leaf Spots \u8449\u6591": "11",
|
58 |
+
"Littleleaf Disease \u5c0f\u8449\u75c5": "12",
|
59 |
+
"Loblolly Pine Decline \u706b\u70ac\u677e\u8870\u843d": "13",
|
60 |
+
"Needle Blights \u91dd\u8449\u67af\u75c5": "14",
|
61 |
+
"Needle Rusts \u91dd\u8449\u92b9\u75c5": "15",
|
62 |
+
"Powdery Mildew \u767d\u7c89\u75c5": "16",
|
63 |
+
"Root rots \u6839\u8150\u75c5": "17",
|
64 |
+
"Rots and Decays \u8150\u721b": "18",
|
65 |
+
"Stem decays \u8396\u8150\u721b": "19",
|
66 |
+
"Tar Spot \u7126\u6cb9\u6591": "20",
|
67 |
+
"Wilts \u67af\u840e\u75c5": "21"
|
68 |
+
},
|
69 |
+
"layer_norm_eps": 1e-05,
|
70 |
+
"max_length": 128,
|
71 |
+
"mlp_ratio": 4.0,
|
72 |
+
"model_type": "swin",
|
73 |
+
"num_channels": 3,
|
74 |
+
"num_heads": [
|
75 |
+
4,
|
76 |
+
8,
|
77 |
+
16,
|
78 |
+
32
|
79 |
+
],
|
80 |
+
"num_layers": 4,
|
81 |
+
"padding": "max_length",
|
82 |
+
"patch_size": 4,
|
83 |
+
"path_norm": true,
|
84 |
+
"problem_type": "single_label_classification",
|
85 |
+
"qkv_bias": true,
|
86 |
+
"torch_dtype": "float32",
|
87 |
+
"transformers_version": "4.25.1",
|
88 |
+
"use_absolute_embeddings": false,
|
89 |
+
"window_size": 7
|
90 |
+
}
|
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": "ViTImageProcessor",
|
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:92eaeff6fa3efb84d8dbf01ba1a3c133da24f9da998f1b33583bcfd5c410646b
|
3 |
+
size 347681745
|