Upload SwinForImageClassification
Browse files- config.json +63 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "../models/checkpoint-4266",
|
3 |
+
"_num_labels": 2,
|
4 |
+
"architectures": [
|
5 |
+
"SwinForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"depths": [
|
9 |
+
2,
|
10 |
+
2,
|
11 |
+
18,
|
12 |
+
2
|
13 |
+
],
|
14 |
+
"drop_path_rate": 0.1,
|
15 |
+
"embed_dim": 128,
|
16 |
+
"encoder_stride": 32,
|
17 |
+
"hidden_act": "gelu",
|
18 |
+
"hidden_dropout_prob": 0.0,
|
19 |
+
"hidden_size": 1024,
|
20 |
+
"id2label": {
|
21 |
+
"0": "artificial",
|
22 |
+
"1": "human"
|
23 |
+
},
|
24 |
+
"image_size": 224,
|
25 |
+
"initializer_range": 0.02,
|
26 |
+
"label2id": {
|
27 |
+
"artificial": 0,
|
28 |
+
"human": 1
|
29 |
+
},
|
30 |
+
"layer_norm_eps": 1e-05,
|
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": [
|
42 |
+
"stage4"
|
43 |
+
],
|
44 |
+
"out_indices": [
|
45 |
+
4
|
46 |
+
],
|
47 |
+
"padding": "max_length",
|
48 |
+
"patch_size": 4,
|
49 |
+
"path_norm": true,
|
50 |
+
"problem_type": "single_label_classification",
|
51 |
+
"qkv_bias": true,
|
52 |
+
"stage_names": [
|
53 |
+
"stem",
|
54 |
+
"stage1",
|
55 |
+
"stage2",
|
56 |
+
"stage3",
|
57 |
+
"stage4"
|
58 |
+
],
|
59 |
+
"torch_dtype": "float32",
|
60 |
+
"transformers_version": "4.46.2",
|
61 |
+
"use_absolute_embeddings": false,
|
62 |
+
"window_size": 7
|
63 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7076a3794f258075c499156c3f44d0d2528426694e74993549270d5d362b413b
|
3 |
+
size 347498816
|