hf-transformers-bot
commited on
Commit
•
31645cf
1
Parent(s):
94f130c
Upload tiny models for ConvNextForImageClassification
Browse files- config.json +66 -0
- preprocessor_config.json +23 -0
- pytorch_model.bin +3 -0
- tf_model.h5 +3 -0
config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "tiny_models/convnext/ConvNextForImageClassification",
|
3 |
+
"architectures": [
|
4 |
+
"ConvNextForImageClassification"
|
5 |
+
],
|
6 |
+
"depths": [
|
7 |
+
2,
|
8 |
+
2,
|
9 |
+
3,
|
10 |
+
2
|
11 |
+
],
|
12 |
+
"drop_path_rate": 0.0,
|
13 |
+
"hidden_act": "gelu",
|
14 |
+
"hidden_sizes": [
|
15 |
+
10,
|
16 |
+
20,
|
17 |
+
30,
|
18 |
+
40
|
19 |
+
],
|
20 |
+
"id2label": {
|
21 |
+
"0": "LABEL_0",
|
22 |
+
"1": "LABEL_1",
|
23 |
+
"2": "LABEL_2",
|
24 |
+
"3": "LABEL_3",
|
25 |
+
"4": "LABEL_4",
|
26 |
+
"5": "LABEL_5",
|
27 |
+
"6": "LABEL_6",
|
28 |
+
"7": "LABEL_7",
|
29 |
+
"8": "LABEL_8",
|
30 |
+
"9": "LABEL_9"
|
31 |
+
},
|
32 |
+
"image_size": 224,
|
33 |
+
"initializer_range": 0.02,
|
34 |
+
"label2id": {
|
35 |
+
"LABEL_0": 0,
|
36 |
+
"LABEL_1": 1,
|
37 |
+
"LABEL_2": 2,
|
38 |
+
"LABEL_3": 3,
|
39 |
+
"LABEL_4": 4,
|
40 |
+
"LABEL_5": 5,
|
41 |
+
"LABEL_6": 6,
|
42 |
+
"LABEL_7": 7,
|
43 |
+
"LABEL_8": 8,
|
44 |
+
"LABEL_9": 9
|
45 |
+
},
|
46 |
+
"layer_norm_eps": 1e-12,
|
47 |
+
"layer_scale_init_value": 1e-06,
|
48 |
+
"model_type": "convnext",
|
49 |
+
"num_channels": 3,
|
50 |
+
"num_stages": 4,
|
51 |
+
"out_features": [
|
52 |
+
"stage2",
|
53 |
+
"stage3",
|
54 |
+
"stage4"
|
55 |
+
],
|
56 |
+
"patch_size": 4,
|
57 |
+
"stage_names": [
|
58 |
+
"stem",
|
59 |
+
"stage1",
|
60 |
+
"stage2",
|
61 |
+
"stage3",
|
62 |
+
"stage4"
|
63 |
+
],
|
64 |
+
"torch_dtype": "float32",
|
65 |
+
"transformers_version": "4.28.0.dev0"
|
66 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_pct": 0.875,
|
3 |
+
"crop_size": 224,
|
4 |
+
"do_normalize": true,
|
5 |
+
"do_rescale": true,
|
6 |
+
"do_resize": true,
|
7 |
+
"image_mean": [
|
8 |
+
0.5,
|
9 |
+
0.5,
|
10 |
+
0.5
|
11 |
+
],
|
12 |
+
"image_processor_type": "ConvNextImageProcessor",
|
13 |
+
"image_std": [
|
14 |
+
0.5,
|
15 |
+
0.5,
|
16 |
+
0.5
|
17 |
+
],
|
18 |
+
"resample": 2,
|
19 |
+
"rescale_factor": 0.00392156862745098,
|
20 |
+
"size": {
|
21 |
+
"shortest_edge": 224
|
22 |
+
}
|
23 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:58141711f2b0640983dbf56bad6cb325c8f97a4c0bb86b7e0b26321c25912f00
|
3 |
+
size 340961
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a22edead0deeec1d38652b2e1d63c85d44d42fa9654f39f68aa9d0aeee90fbe8
|
3 |
+
size 423744
|