matejpekar commited on
Commit
0f668c2
·
verified ·
1 Parent(s): 3924fb9

Add model

Browse files
Files changed (3) hide show
  1. config.json +31 -34
  2. model.safetensors +2 -2
  3. pytorch_model.bin +3 -0
config.json CHANGED
@@ -1,40 +1,37 @@
1
  {
2
  "architecture": "vit_base_patch16_224",
3
- "architectures": [
4
- "ViTForImageClassification"
 
 
 
5
  ],
6
- "attention_probs_dropout_prob": 0.0,
7
- "dtype": "float32",
8
- "encoder_stride": 16,
9
- "hidden_act": "gelu",
10
- "hidden_dropout_prob": 0.0,
11
- "hidden_size": 768,
12
- "id2label": {
13
- "0": "cancer"
14
- },
15
- "image_size": 224,
16
- "initializer_range": 0.02,
17
- "intermediate_size": 3072,
18
- "label2id": {
19
- "cancer": 0
20
- },
21
- "layer_norm_eps": 1e-12,
22
- "model_type": "vit",
23
- "num_attention_heads": 12,
24
- "num_channels": 3,
25
- "num_hidden_layers": 12,
26
- "patch_size": 16,
27
- "pooler_act": "tanh",
28
- "pooler_output_size": 768,
29
- "qkv_bias": true,
30
- "transformers_version": "4.57.6",
31
-
32
  "pretrained_cfg": {
33
- "architecture": "vit_base_patch16_224",
34
- "file": "timm_model.bin",
35
- "num_classes": 1,
36
- "input_size": [3, 224, 224],
37
- "mean": [0.5, 0.5, 0.5],
38
- "std": [0.5, 0.5, 0.5]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  }
40
  }
 
1
  {
2
  "architecture": "vit_base_patch16_224",
3
+ "num_classes": 1,
4
+ "num_features": 768,
5
+ "global_pool": "token",
6
+ "label_names": [
7
+ "your_single_class_label"
8
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  "pretrained_cfg": {
10
+ "tag": "augreg2_in21k_ft_in1k",
11
+ "custom_load": false,
12
+ "input_size": [
13
+ 3,
14
+ 224,
15
+ 224
16
+ ],
17
+ "fixed_input_size": true,
18
+ "interpolation": "bicubic",
19
+ "crop_pct": 0.9,
20
+ "crop_mode": "center",
21
+ "mean": [
22
+ 0.5,
23
+ 0.5,
24
+ 0.5
25
+ ],
26
+ "std": [
27
+ 0.5,
28
+ 0.5,
29
+ 0.5
30
+ ],
31
+ "num_classes": 1000,
32
+ "pool_size": null,
33
+ "first_conv": "patch_embed.proj",
34
+ "classifier": "head",
35
+ "license": "apache-2.0"
36
  }
37
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:81e80d6d4914463db1068ba6f20bf8c3e2d60df28b8ede3dda07254a275a6242
3
- size 343220892
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b9c02d78c3f970fff87f8efa5aebf6d5a19fd921378d1873ddabb225dd728f4
3
+ size 343211788
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6309779cdf4bd416b9ff3378d7fd4a59a7d2b19ef9c8a8939fbae7bc59ab5ebe
3
+ size 343255555