Upload 2 files
Browse files- config.json +52 -0
- preprocessor_config.json +17 -0
config.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
3 |
+
"architectures": [
|
4 |
+
"ViTForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"encoder_stride": 16,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.0,
|
10 |
+
"hidden_size": 768,
|
11 |
+
"id2label": {
|
12 |
+
"0": "battery",
|
13 |
+
"1": "biological",
|
14 |
+
"10": "trash",
|
15 |
+
"11": "white-glass",
|
16 |
+
"2": "brown-glass",
|
17 |
+
"3": "cardboard",
|
18 |
+
"4": "clothes",
|
19 |
+
"5": "green-glass",
|
20 |
+
"6": "metal",
|
21 |
+
"7": "paper",
|
22 |
+
"8": "plastic",
|
23 |
+
"9": "shoes"
|
24 |
+
},
|
25 |
+
"image_size": 224,
|
26 |
+
"initializer_range": 0.02,
|
27 |
+
"intermediate_size": 3072,
|
28 |
+
"label2id": {
|
29 |
+
"battery": "0",
|
30 |
+
"biological": "1",
|
31 |
+
"brown-glass": "2",
|
32 |
+
"cardboard": "3",
|
33 |
+
"clothes": "4",
|
34 |
+
"green-glass": "5",
|
35 |
+
"metal": "6",
|
36 |
+
"paper": "7",
|
37 |
+
"plastic": "8",
|
38 |
+
"shoes": "9",
|
39 |
+
"trash": "10",
|
40 |
+
"white-glass": "11"
|
41 |
+
},
|
42 |
+
"layer_norm_eps": 1e-12,
|
43 |
+
"model_type": "vit",
|
44 |
+
"num_attention_heads": 12,
|
45 |
+
"num_channels": 3,
|
46 |
+
"num_hidden_layers": 12,
|
47 |
+
"patch_size": 16,
|
48 |
+
"problem_type": "single_label_classification",
|
49 |
+
"qkv_bias": true,
|
50 |
+
"torch_dtype": "float32",
|
51 |
+
"transformers_version": "4.37.0"
|
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.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_std": [
|
11 |
+
0.5,
|
12 |
+
0.5,
|
13 |
+
0.5
|
14 |
+
],
|
15 |
+
"resample": 2,
|
16 |
+
"size": 224
|
17 |
+
}
|