Upload folder using huggingface_hub
Browse files- config.json +81 -0
- onnx/model.onnx +3 -0
- preprocessor_config.json +27 -0
config.json
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_attn_implementation_autoset": true,
|
3 |
+
"_name_or_path": "hf-internal-testing/tiny-random-HieraForImageClassification",
|
4 |
+
"architectures": [
|
5 |
+
"HieraForImageClassification"
|
6 |
+
],
|
7 |
+
"decoder_depth": null,
|
8 |
+
"decoder_hidden_size": null,
|
9 |
+
"decoder_num_heads": null,
|
10 |
+
"depths": [
|
11 |
+
2,
|
12 |
+
3,
|
13 |
+
16,
|
14 |
+
3
|
15 |
+
],
|
16 |
+
"drop_path_rate": 0.0,
|
17 |
+
"embed_dim": 8,
|
18 |
+
"embed_dim_multiplier": 2.0,
|
19 |
+
"hidden_act": "gelu",
|
20 |
+
"hidden_size": 64,
|
21 |
+
"image_size": [
|
22 |
+
224,
|
23 |
+
224
|
24 |
+
],
|
25 |
+
"initializer_range": 0.02,
|
26 |
+
"layer_norm_eps": 1e-06,
|
27 |
+
"layer_norm_init": 1.0,
|
28 |
+
"mask_ratio": 0.6,
|
29 |
+
"masked_unit_attention": [
|
30 |
+
true,
|
31 |
+
true,
|
32 |
+
false,
|
33 |
+
false
|
34 |
+
],
|
35 |
+
"masked_unit_size": [
|
36 |
+
8,
|
37 |
+
8
|
38 |
+
],
|
39 |
+
"mlp_ratio": 4.0,
|
40 |
+
"model_type": "hiera",
|
41 |
+
"normalize_pixel_loss": true,
|
42 |
+
"num_channels": 3,
|
43 |
+
"num_heads": [
|
44 |
+
1,
|
45 |
+
2,
|
46 |
+
4,
|
47 |
+
8
|
48 |
+
],
|
49 |
+
"num_layers": 4,
|
50 |
+
"num_query_pool": 3,
|
51 |
+
"out_features": [
|
52 |
+
"stage4"
|
53 |
+
],
|
54 |
+
"out_indices": [
|
55 |
+
4
|
56 |
+
],
|
57 |
+
"patch_padding": [
|
58 |
+
3,
|
59 |
+
3
|
60 |
+
],
|
61 |
+
"patch_size": [
|
62 |
+
7,
|
63 |
+
7
|
64 |
+
],
|
65 |
+
"patch_stride": [
|
66 |
+
4,
|
67 |
+
4
|
68 |
+
],
|
69 |
+
"query_stride": [
|
70 |
+
2,
|
71 |
+
2
|
72 |
+
],
|
73 |
+
"stage_names": [
|
74 |
+
"stem",
|
75 |
+
"stage1",
|
76 |
+
"stage2",
|
77 |
+
"stage3",
|
78 |
+
"stage4"
|
79 |
+
],
|
80 |
+
"transformers_version": "4.48.2"
|
81 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:79299b8339fa93461f6ed0500db1dd5c3f37e204152ae3f8cee3a445a308a2f0
|
3 |
+
size 1921399
|
preprocessor_config.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"crop_size": {
|
3 |
+
"height": 224,
|
4 |
+
"width": 224
|
5 |
+
},
|
6 |
+
"do_center_crop": true,
|
7 |
+
"do_convert_rgb": true,
|
8 |
+
"do_normalize": true,
|
9 |
+
"do_rescale": true,
|
10 |
+
"do_resize": true,
|
11 |
+
"image_mean": [
|
12 |
+
0.485,
|
13 |
+
0.456,
|
14 |
+
0.406
|
15 |
+
],
|
16 |
+
"image_processor_type": "BitImageProcessor",
|
17 |
+
"image_std": [
|
18 |
+
0.229,
|
19 |
+
0.224,
|
20 |
+
0.225
|
21 |
+
],
|
22 |
+
"resample": 3,
|
23 |
+
"rescale_factor": 0.00392156862745098,
|
24 |
+
"size": {
|
25 |
+
"shortest_edge": 256
|
26 |
+
}
|
27 |
+
}
|