smc commited on
Commit
ee5d192
1 Parent(s): e88ac37

commit files to HF hub

Browse files
Files changed (4) hide show
  1. README.md +26 -0
  2. config.json +40 -0
  3. preprocessor_config.json +17 -0
  4. pytorch_model.bin +3 -0
README.md ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - image-classification
4
+ - pytorch
5
+ metrics:
6
+ - accuracy
7
+ - Cohen's Kappa
8
+
9
+ model-index:
10
+ - name: PANDA_ViT
11
+ results:
12
+ - task:
13
+ name: Image Classification
14
+ type: image-classification
15
+ metrics:
16
+ - name: Accuracy
17
+ type: accuracy
18
+ value: 0.47959184646606445
19
+ - name: Quadratic Cohen's Kappa
20
+ type: Quadratic Cohen's Kappa
21
+ value: 0.5590880513191223
22
+ ---
23
+
24
+ # PANDA_ViT
25
+
26
+ An attempt to use a ViT for medical image classification (ISUP grading in prostate histopathology images). Currently uses a tiled and concatenated WSI as input
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/vit-base-patch16-224-in21k",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "Beningn",
13
+ "1": "ISUP 1",
14
+ "2": "ISUP 2",
15
+ "3": "ISUP 3",
16
+ "4": "ISUP 4",
17
+ "5": "ISUP 5"
18
+ },
19
+ "image_size": 224,
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 3072,
22
+ "label2id": {
23
+ "Beningn": "0",
24
+ "ISUP 1": "1",
25
+ "ISUP 2": "2",
26
+ "ISUP 3": "3",
27
+ "ISUP 4": "4",
28
+ "ISUP 5": "5"
29
+ },
30
+ "layer_norm_eps": 1e-12,
31
+ "model_type": "vit",
32
+ "num_attention_heads": 12,
33
+ "num_channels": 3,
34
+ "num_hidden_layers": 12,
35
+ "patch_size": 16,
36
+ "problem_type": "single_label_classification",
37
+ "qkv_bias": true,
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.19.2"
40
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_resize": true,
4
+ "feature_extractor_type": "ViTFeatureExtractor",
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_std": [
11
+ 0.5,
12
+ 0.5,
13
+ 0.5
14
+ ],
15
+ "resample": 2,
16
+ "size": 224
17
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0dd6a5e7cb836b59019353dddd9573adefb5f390294578c3867c9630e192268
3
+ size 343276465