smc commited on
Commit
ffae2f1
·
1 Parent(s): 4522232

commit files to HF hub

Browse files
Files changed (4) hide show
  1. README.md +26 -0
  2. config.json +47 -0
  3. preprocessor_config.json +18 -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_ConvNeXT
11
+ results:
12
+ - task:
13
+ name: Image Classification
14
+ type: image-classification
15
+ metrics:
16
+ - name: Accuracy
17
+ type: accuracy
18
+ value: 0.5491307377815247
19
+ - name: Quadratic Cohen's Kappa
20
+ type: Quadratic Cohen's Kappa
21
+ value: 0.6630877256393433
22
+ ---
23
+
24
+ # PANDA_ConvNeXT
25
+
26
+ An attempt to use a ConvNeXT 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,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/convnext-xlarge-384-22k-1k",
3
+ "architectures": [
4
+ "ConvNextForImageClassification"
5
+ ],
6
+ "depths": [
7
+ 3,
8
+ 3,
9
+ 27,
10
+ 3
11
+ ],
12
+ "drop_path_rate": 0.0,
13
+ "hidden_act": "gelu",
14
+ "hidden_sizes": [
15
+ 256,
16
+ 512,
17
+ 1024,
18
+ 2048
19
+ ],
20
+ "id2label": {
21
+ "0": "Beningn",
22
+ "1": "ISUP 1",
23
+ "2": "ISUP 2",
24
+ "3": "ISUP 3",
25
+ "4": "ISUP 4",
26
+ "5": "ISUP 5"
27
+ },
28
+ "image_size": 384,
29
+ "initializer_range": 0.02,
30
+ "label2id": {
31
+ "Beningn": "0",
32
+ "ISUP 1": "1",
33
+ "ISUP 2": "2",
34
+ "ISUP 3": "3",
35
+ "ISUP 4": "4",
36
+ "ISUP 5": "5"
37
+ },
38
+ "layer_norm_eps": 1e-12,
39
+ "layer_scale_init_value": 1e-06,
40
+ "model_type": "convnext",
41
+ "num_channels": 3,
42
+ "num_stages": 4,
43
+ "patch_size": 4,
44
+ "problem_type": "single_label_classification",
45
+ "torch_dtype": "float32",
46
+ "transformers_version": "4.19.2"
47
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_pct": null,
3
+ "do_normalize": true,
4
+ "do_resize": true,
5
+ "feature_extractor_type": "ConvNextFeatureExtractor",
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_std": [
12
+ 0.229,
13
+ 0.224,
14
+ 0.225
15
+ ],
16
+ "resample": 3,
17
+ "size": 384
18
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4ad6b01adf343a2278590a0fc63daf546c4f07a71fae1e06ef5fd1651deed8c
3
+ size 1392752337