MichalMlodawski
commited on
Commit
•
b790c81
1
Parent(s):
70bff3d
Upload 4 files
Browse files- config.json +64 -0
- model.safetensors +3 -0
- optimizer.pt +3 -0
- preprocessor_config.json +27 -0
config.json
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/focalnet-base",
|
3 |
+
"architectures": [
|
4 |
+
"FocalNetForImageClassification"
|
5 |
+
],
|
6 |
+
"depths": [
|
7 |
+
2,
|
8 |
+
2,
|
9 |
+
18,
|
10 |
+
2
|
11 |
+
],
|
12 |
+
"drop_path_rate": 0.1,
|
13 |
+
"embed_dim": 128,
|
14 |
+
"encoder_stride": 32,
|
15 |
+
"focal_levels": [
|
16 |
+
2,
|
17 |
+
2,
|
18 |
+
2,
|
19 |
+
2
|
20 |
+
],
|
21 |
+
"focal_windows": [
|
22 |
+
3,
|
23 |
+
3,
|
24 |
+
3,
|
25 |
+
3
|
26 |
+
],
|
27 |
+
"hidden_act": "gelu",
|
28 |
+
"hidden_dropout_prob": 0.0,
|
29 |
+
"hidden_sizes": [
|
30 |
+
192,
|
31 |
+
384,
|
32 |
+
768,
|
33 |
+
768
|
34 |
+
],
|
35 |
+
"image_size": 224,
|
36 |
+
"initializer_range": 0.02,
|
37 |
+
"layer_norm_eps": 1e-05,
|
38 |
+
"layerscale_value": 0.0001,
|
39 |
+
"mlp_ratio": 4.0,
|
40 |
+
"model_type": "focalnet",
|
41 |
+
"normalize_modulator": false,
|
42 |
+
"num_channels": 3,
|
43 |
+
"out_features": [
|
44 |
+
"stage4"
|
45 |
+
],
|
46 |
+
"out_indices": [
|
47 |
+
4
|
48 |
+
],
|
49 |
+
"patch_size": 4,
|
50 |
+
"problem_type": "single_label_classification",
|
51 |
+
"stage_names": [
|
52 |
+
"stem",
|
53 |
+
"stage1",
|
54 |
+
"stage2",
|
55 |
+
"stage3",
|
56 |
+
"stage4"
|
57 |
+
],
|
58 |
+
"torch_dtype": "float32",
|
59 |
+
"transformers_version": "4.42.4",
|
60 |
+
"use_conv_embed": false,
|
61 |
+
"use_layerscale": false,
|
62 |
+
"use_post_layernorm": false,
|
63 |
+
"use_post_layernorm_in_modulation": false
|
64 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:932b791eb164083410bbb60d00eeb96f844f65fde7d20d029a6dfff6724f7ffa
|
3 |
+
size 348552528
|
optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4d87adc029202e04b60af7b1cf47e153c040e1914190fd71bfa55bd18604e56e
|
3 |
+
size 697340302
|
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": 2,
|
23 |
+
"rescale_factor": 0.00392156862745098,
|
24 |
+
"size": {
|
25 |
+
"shortest_edge": 256
|
26 |
+
}
|
27 |
+
}
|