0-ma commited on
Commit
7a2c068
1 Parent(s): ac8112a

Upload SwinForImageClassification

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. config.json +69 -0
  3. model.safetensors +3 -0
README.md CHANGED
@@ -20,7 +20,7 @@ pipeline_tag: image-classification
20
 
21
  ## Accuracy
22
 
23
- - Accuracy on dataset 0-ma/geometric-shapes [test] : 0.8995238095238095
24
 
25
  # Loading and using the model
26
  import numpy as np
 
20
 
21
  ## Accuracy
22
 
23
+ - Accuracy on dataset 0-ma/geometric-shapes [test] : 0.9138095238095238
24
 
25
  # Loading and using the model
26
  import numpy as np
config.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./out/model/final_model",
3
+ "architectures": [
4
+ "SwinForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "depths": [
8
+ 2,
9
+ 2,
10
+ 6,
11
+ 2
12
+ ],
13
+ "drop_path_rate": 0.1,
14
+ "embed_dim": 96,
15
+ "encoder_stride": 32,
16
+ "hidden_act": "gelu",
17
+ "hidden_dropout_prob": 0.0,
18
+ "hidden_size": 768,
19
+ "id2label": {
20
+ "0": "1",
21
+ "1": "2",
22
+ "2": "3",
23
+ "3": "4",
24
+ "4": "5",
25
+ "5": "6"
26
+ },
27
+ "image_size": 224,
28
+ "initializer_range": 0.02,
29
+ "label2id": {
30
+ "1": "0",
31
+ "2": "1",
32
+ "3": "2",
33
+ "4": "3",
34
+ "5": "4",
35
+ "6": "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
+ 3,
43
+ 6,
44
+ 12,
45
+ 24
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.44.2",
67
+ "use_absolute_embeddings": false,
68
+ "window_size": 7
69
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:431068413606512da4504d34ff0ef59da513451777632c9b9b8d800e9d406abd
3
+ size 110355136