davanstrien HF Staff commited on
Commit
352c299
·
1 Parent(s): 3283fc3

Upload SwinForImageClassification

Browse files
Files changed (2) hide show
  1. config.json +58 -0
  2. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "davanstrien/autotrain-encyclopedia_britannica-1423853554",
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": "illustrated",
21
+ "1": "text-only"
22
+ },
23
+ "image_size": 224,
24
+ "initializer_range": 0.02,
25
+ "label2id": {
26
+ "illustrated": "0",
27
+ "text-only": "1"
28
+ },
29
+ "layer_norm_eps": 1e-05,
30
+ "max_length": 128,
31
+ "mlp_ratio": 4.0,
32
+ "model_type": "swin",
33
+ "num_channels": 3,
34
+ "num_heads": [
35
+ 4,
36
+ 8,
37
+ 16,
38
+ 32
39
+ ],
40
+ "num_layers": 4,
41
+ "out_features": null,
42
+ "padding": "max_length",
43
+ "patch_size": 4,
44
+ "path_norm": true,
45
+ "problem_type": "single_label_classification",
46
+ "qkv_bias": true,
47
+ "stage_names": [
48
+ "stem",
49
+ "stage1",
50
+ "stage2",
51
+ "stage3",
52
+ "stage4"
53
+ ],
54
+ "torch_dtype": "float32",
55
+ "transformers_version": "4.26.0",
56
+ "use_absolute_embeddings": false,
57
+ "window_size": 7
58
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:866f2e18499bd50e35748ef9341cb21de3bc2e8d953f1cb6c8c7c48efa403104
3
+ size 347593489