wbxlala commited on
Commit
7d5b5a0
1 Parent(s): 4ab5a64

Upload SwinForImageClassification

Browse files
Files changed (2) hide show
  1. config.json +69 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swin-base-patch4-window7-224",
3
+ "architectures": [
4
+ "SwinForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 18,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "embed_dim": 128,
15
+ "encoder_stride": 32,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 1024,
19
+ "id2label": {
20
+ "0": "LABEL_0",
21
+ "1": "LABEL_1",
22
+ "2": "LABEL_2",
23
+ "3": "LABEL_3",
24
+ "4": "LABEL_4",
25
+ "5": "LABEL_5"
26
+ },
27
+ "image_size": 224,
28
+ "initializer_range": 0.02,
29
+ "label2id": {
30
+ "LABEL_0": 0,
31
+ "LABEL_1": 1,
32
+ "LABEL_2": 2,
33
+ "LABEL_3": 3,
34
+ "LABEL_4": 4,
35
+ "LABEL_5": 5
36
+ },
37
+ "layer_norm_eps": 1e-05,
38
+ "mlp_ratio": 4.0,
39
+ "model_type": "swin",
40
+ "num_channels": 3,
41
+ "num_heads": [
42
+ 4,
43
+ 8,
44
+ 16,
45
+ 32
46
+ ],
47
+ "num_layers": 4,
48
+ "out_features": [
49
+ "stage4"
50
+ ],
51
+ "out_indices": [
52
+ 4
53
+ ],
54
+ "patch_size": 4,
55
+ "path_norm": true,
56
+ "problem_type": "single_label_classification",
57
+ "qkv_bias": true,
58
+ "stage_names": [
59
+ "stem",
60
+ "stage1",
61
+ "stage2",
62
+ "stage3",
63
+ "stage4"
64
+ ],
65
+ "torch_dtype": "float32",
66
+ "transformers_version": "4.31.0.dev0",
67
+ "use_absolute_embeddings": false,
68
+ "window_size": 7
69
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74c9ce6e05ae52e53ee15280eacee0309bc99b863fef9d48fb567476b4cb0372
3
+ size 347616145