Upload 4 files
Browse files- README.md +94 -1
- config.json +52 -0
- preprocessor_config.json +17 -0
- pytorch_model.bin +3 -0
README.md
CHANGED
@@ -1,3 +1,96 @@
|
|
1 |
---
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
tags:
|
3 |
+
- autotrain
|
4 |
+
- vision
|
5 |
+
- image-classification
|
6 |
+
datasets:
|
7 |
+
- lewtun/dog_food
|
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 |
+
library_name: transformers
|
16 |
+
co2_eq_emissions:
|
17 |
+
emissions: 6.799888815236616
|
18 |
+
eval_info:
|
19 |
+
col_mapping: test
|
20 |
+
model-index:
|
21 |
+
- name: NimaBoscarino/dog_food
|
22 |
+
results:
|
23 |
+
- task:
|
24 |
+
type: image-classification
|
25 |
+
name: Image Classification
|
26 |
+
dataset:
|
27 |
+
name: lewtun/dog_food
|
28 |
+
type: lewtun/dog_food
|
29 |
+
config: lewtun--dog_food
|
30 |
+
split: test
|
31 |
+
metrics:
|
32 |
+
- name: Accuracy
|
33 |
+
type: accuracy
|
34 |
+
value: 1.0
|
35 |
+
verified: true
|
36 |
+
- name: Precision Macro
|
37 |
+
type: precision
|
38 |
+
value: 1.0
|
39 |
+
verified: true
|
40 |
+
- name: Precision Micro
|
41 |
+
type: precision
|
42 |
+
value: 1.0
|
43 |
+
verified: true
|
44 |
+
- name: Precision Weighted
|
45 |
+
type: precision
|
46 |
+
value: 1.0
|
47 |
+
verified: true
|
48 |
+
- name: Recall Macro
|
49 |
+
type: recall
|
50 |
+
value: 1.0
|
51 |
+
verified: true
|
52 |
+
- name: Recall Micro
|
53 |
+
type: recall
|
54 |
+
value: 1.0
|
55 |
+
verified: true
|
56 |
+
- name: Recall Weighted
|
57 |
+
type: recall
|
58 |
+
value: 1.0
|
59 |
+
verified: true
|
60 |
+
- name: F1 Macro
|
61 |
+
type: f1
|
62 |
+
value: 1.0
|
63 |
+
verified: true
|
64 |
+
- name: F1 Micro
|
65 |
+
type: f1
|
66 |
+
value: 1.0
|
67 |
+
verified: true
|
68 |
+
- name: F1 Weighted
|
69 |
+
type: f1
|
70 |
+
value: 1.0
|
71 |
+
verified: true
|
72 |
+
- name: loss
|
73 |
+
type: loss
|
74 |
+
value: 1.848173087637406e-05
|
75 |
+
verified: true
|
76 |
---
|
77 |
+
|
78 |
+
# Model Trained Using AutoTrain
|
79 |
+
|
80 |
+
- Problem type: Multi-class Classification
|
81 |
+
- Model ID: 1647758504
|
82 |
+
- CO2 Emissions (in grams): 6.7999
|
83 |
+
|
84 |
+
## Validation Metrics
|
85 |
+
|
86 |
+
- Loss: 0.001
|
87 |
+
- Accuracy: 1.000
|
88 |
+
- Macro F1: 1.000
|
89 |
+
- Micro F1: 1.000
|
90 |
+
- Weighted F1: 1.000
|
91 |
+
- Macro Precision: 1.000
|
92 |
+
- Micro Precision: 1.000
|
93 |
+
- Weighted Precision: 1.000
|
94 |
+
- Macro Recall: 1.000
|
95 |
+
- Micro Recall: 1.000
|
96 |
+
- Weighted Recall: 1.000
|
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "chicken",
|
21 |
+
"1": "dog",
|
22 |
+
"2": "muffin"
|
23 |
+
},
|
24 |
+
"image_size": 224,
|
25 |
+
"initializer_range": 0.02,
|
26 |
+
"label2id": {
|
27 |
+
"chicken": "0",
|
28 |
+
"dog": "1",
|
29 |
+
"muffin": "2"
|
30 |
+
},
|
31 |
+
"layer_norm_eps": 1e-05,
|
32 |
+
"max_length": 128,
|
33 |
+
"mlp_ratio": 4.0,
|
34 |
+
"model_type": "swin",
|
35 |
+
"num_channels": 3,
|
36 |
+
"num_heads": [
|
37 |
+
4,
|
38 |
+
8,
|
39 |
+
16,
|
40 |
+
32
|
41 |
+
],
|
42 |
+
"num_layers": 4,
|
43 |
+
"padding": "max_length",
|
44 |
+
"patch_size": 4,
|
45 |
+
"path_norm": true,
|
46 |
+
"problem_type": "single_label_classification",
|
47 |
+
"qkv_bias": true,
|
48 |
+
"torch_dtype": "float32",
|
49 |
+
"transformers_version": "4.22.1",
|
50 |
+
"use_absolute_embeddings": false,
|
51 |
+
"window_size": 7
|
52 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_resize": true,
|
4 |
+
"feature_extractor_type": "ViTFeatureExtractor",
|
5 |
+
"image_mean": [
|
6 |
+
0.485,
|
7 |
+
0.456,
|
8 |
+
0.406
|
9 |
+
],
|
10 |
+
"image_std": [
|
11 |
+
0.229,
|
12 |
+
0.224,
|
13 |
+
0.225
|
14 |
+
],
|
15 |
+
"resample": 3,
|
16 |
+
"size": 224
|
17 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c0781bb85cfa7a97b833282d84103641703fcbf681717807f946848b70839d04
|
3 |
+
size 347600575
|