Commit
·
ee82f04
1
Parent(s):
793a902
Upload tiny models for EfficientFormerModel
Browse files- config.json +53 -0
- preprocessor_config.json +27 -0
- pytorch_model.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"EfficientFormerModel"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"attention_ratio": 4,
|
| 7 |
+
"depths": [
|
| 8 |
+
3,
|
| 9 |
+
2,
|
| 10 |
+
6,
|
| 11 |
+
4
|
| 12 |
+
],
|
| 13 |
+
"dim": 448,
|
| 14 |
+
"distillation": true,
|
| 15 |
+
"downsample_pad": 1,
|
| 16 |
+
"downsample_patch_size": 3,
|
| 17 |
+
"downsample_stride": 2,
|
| 18 |
+
"downsamples": [
|
| 19 |
+
true,
|
| 20 |
+
true,
|
| 21 |
+
true,
|
| 22 |
+
true
|
| 23 |
+
],
|
| 24 |
+
"drop_path_rate": 0.0,
|
| 25 |
+
"encoder_stride": 2,
|
| 26 |
+
"hidden_act": "gelu",
|
| 27 |
+
"hidden_dropout_prob": 0.1,
|
| 28 |
+
"hidden_size": 448,
|
| 29 |
+
"hidden_sizes": [
|
| 30 |
+
48,
|
| 31 |
+
96,
|
| 32 |
+
224,
|
| 33 |
+
448
|
| 34 |
+
],
|
| 35 |
+
"image_size": 224,
|
| 36 |
+
"initializer_range": 0.02,
|
| 37 |
+
"intermediate_size": 37,
|
| 38 |
+
"key_dim": 32,
|
| 39 |
+
"layer_norm_eps": 1e-12,
|
| 40 |
+
"layer_scale_init_value": 1e-05,
|
| 41 |
+
"mlp_expansion_ratio": 4,
|
| 42 |
+
"model_type": "efficientformer",
|
| 43 |
+
"num_attention_heads": 8,
|
| 44 |
+
"num_channels": 3,
|
| 45 |
+
"num_hidden_layers": 7,
|
| 46 |
+
"num_meta3d_blocks": 1,
|
| 47 |
+
"patch_size": 2,
|
| 48 |
+
"pool_size": 3,
|
| 49 |
+
"resolution": 7,
|
| 50 |
+
"torch_dtype": "float32",
|
| 51 |
+
"transformers_version": "4.28.0.dev0",
|
| 52 |
+
"use_layer_scale": true
|
| 53 |
+
}
|
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_normalize": true,
|
| 8 |
+
"do_rescale": true,
|
| 9 |
+
"do_resize": true,
|
| 10 |
+
"image_mean": [
|
| 11 |
+
0.485,
|
| 12 |
+
0.456,
|
| 13 |
+
0.406
|
| 14 |
+
],
|
| 15 |
+
"image_processor_type": "EfficientFormerImageProcessor",
|
| 16 |
+
"image_std": [
|
| 17 |
+
0.229,
|
| 18 |
+
0.224,
|
| 19 |
+
0.225
|
| 20 |
+
],
|
| 21 |
+
"resample": 3,
|
| 22 |
+
"rescale_factor": 0.00392156862745098,
|
| 23 |
+
"size": {
|
| 24 |
+
"height": 224,
|
| 25 |
+
"width": 224
|
| 26 |
+
}
|
| 27 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95682f81e1af996a03c3b8f350d40b364b8c4cc3aea6871f08d9731547fd48eb
|
| 3 |
+
size 45811041
|