jaksuno commited on
Commit
a8c6ee6
·
verified ·
1 Parent(s): 4912492

Upload 3 files

Browse files
Files changed (3) hide show
  1. config.json +75 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +22 -0
config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/swinv2-tiny-patch4-window8-256",
3
+ "architectures": [
4
+ "Swinv2ForImageClassification"
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": "crazing",
21
+ "1": "inclusion",
22
+ "2": "patches",
23
+ "3": "pitted_surface",
24
+ "4": "rolled-in_scale",
25
+ "5": "scratches"
26
+ },
27
+ "label2id": {
28
+ "crazing": "0",
29
+ "inclusion": "1",
30
+ "patches": "2",
31
+ "pitted_surface": "3",
32
+ "rolled-in_scale": "4",
33
+ "scratches": "5"
34
+ },
35
+ "image_size": 256,
36
+ "initializer_range": 0.02,
37
+ "layer_norm_eps": 1e-05,
38
+ "mlp_ratio": 4.0,
39
+ "model_type": "swinv2",
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
+ "pretrained_window_sizes": [
57
+ 0,
58
+ 0,
59
+ 0,
60
+ 0
61
+ ],
62
+ "problem_type": "single_label_classification",
63
+ "qkv_bias": true,
64
+ "stage_names": [
65
+ "stem",
66
+ "stage1",
67
+ "stage2",
68
+ "stage3",
69
+ "stage4"
70
+ ],
71
+ "torch_dtype": "float32",
72
+ "transformers_version": "4.45.0",
73
+ "use_absolute_embeddings": false,
74
+ "window_size": 8
75
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1636711363562875d77ec12597c8214d2403873865601e7d347083a19b13b9d9
3
+ size 110362448
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.485,
7
+ 0.456,
8
+ 0.406
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.229,
13
+ 0.224,
14
+ 0.225
15
+ ],
16
+ "resample": 3,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 256,
20
+ "width": 256
21
+ }
22
+ }