LPX55 commited on
Commit
3878584
·
verified ·
1 Parent(s): b29435f

Upload ViTForImageClassification (#1)

Browse files

- Upload ViTForImageClassification (8afc0ec822088fa52ffd1bd502b66f11317b5442)

Files changed (2) hide show
  1. config.json +22 -25
  2. model.safetensors +2 -2
config.json CHANGED
@@ -1,29 +1,26 @@
1
- {
2
  "architectures": [
3
  "ViTForImageClassification"
4
  ],
5
- "model": {
6
-
7
- "variant": "vit_small_patch16_384.augreg_in21k_ft_in1k",
8
- "input_size": 384,
9
- "patch_size": 16,
10
- "freeze_backbone": false,
11
- "hidden_dropout_prob": 0.0,
12
- "attention_probs_dropout_prob": 0.0,
13
- "num_classes": 1,
14
- "head": {
15
- "in_features": 384,
16
- "out_features": 1,
17
- "bias": true
18
- }
19
- },
20
- "preprocessing": {
21
- "norm_mean": [0.48145466, 0.4578275, 0.40821073],
22
- "norm_std": [0.26862954, 0.26130258, 0.27577711],
23
- "resize_size": 440,
24
- "crop_size": 384
25
- },
26
  "model_type": "vit",
27
- "dtype": "float32",
28
- "checkpoint_path": "pretrained_weights/model_v11_ViT_384_base_ckpt.pt"
29
- }
 
 
 
 
 
 
 
 
 
1
+ {
2
  "architectures": [
3
  "ViTForImageClassification"
4
  ],
5
+ "attention_probs_dropout_prob": 0.0,
6
+ "encoder_stride": 16,
7
+ "hidden_act": "gelu",
8
+ "hidden_dropout_prob": 0.0,
9
+ "hidden_size": 384,
10
+ "image_size": 384,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 3072,
13
+ "layer_norm_eps": 1e-06,
14
+ "mlp_ratio": 4,
 
 
 
 
 
 
 
 
 
 
 
15
  "model_type": "vit",
16
+ "num_attention_heads": 12,
17
+ "num_channels": 3,
18
+ "num_classes": 1,
19
+ "num_heads": 6,
20
+ "num_hidden_layers": 12,
21
+ "num_layers": 12,
22
+ "patch_size": 16,
23
+ "qkv_bias": true,
24
+ "torch_dtype": "float32",
25
+ "transformers_version": "4.50.0.dev0"
26
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4f1eae65e18b00c41cf9a5442319bd4abd1e6347a5488c64dbff4164c96a3334
3
- size 87859824
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91a3c4d1b7d453b4b74e377c8e079662a6cc2c97f8ca448daedda8864ec54605
3
+ size 143969256