Aakash-Tripathi commited on
Commit
3c6b89e
·
verified ·
1 Parent(s): 59694ab

Upload config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. config.json +82 -0
config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "mirai",
3
+ "architectures": ["MiraiModel"],
4
+ "auto_map": {
5
+ "AutoConfig": "configuration_mirai.MiraiConfig",
6
+ "AutoModel": "modeling_mirai.MiraiModel"
7
+ },
8
+ "model_name": "mirai_full",
9
+ "num_classes": 5,
10
+ "img_size": [1664, 2048],
11
+ "num_chan": 3,
12
+ "num_images": 4,
13
+ "multi_image": true,
14
+
15
+ "encoder_config": {
16
+ "architecture": "resnet",
17
+ "block_layout": [
18
+ ["BasicBlock", 2],
19
+ ["BasicBlock", 2],
20
+ ["BasicBlock", 2],
21
+ ["BasicBlock", 2]
22
+ ],
23
+ "pool_name": "RiskFactorPool",
24
+ "img_only_dim": 512,
25
+ "hidden_dim": 612,
26
+ "dropout": 0.25,
27
+ "pretrained_on_imagenet": false
28
+ },
29
+
30
+ "transformer_config": {
31
+ "hidden_dim": 512,
32
+ "num_heads": 8,
33
+ "num_layers": 1,
34
+ "dropout": 0.1,
35
+ "max_seq_length": 4,
36
+ "output_dim": 612
37
+ },
38
+
39
+ "risk_factors": {
40
+ "use_risk_factors": true,
41
+ "num_risk_factors": 34,
42
+ "risk_factor_keys": [
43
+ "density", "binary_family_history", "binary_biopsy_benign", "binary_biopsy_LCIS",
44
+ "binary_biopsy_atypical_hyperplasia", "age", "menarche_age", "menopause_age",
45
+ "first_pregnancy_age", "prior_hist", "race", "parous", "menopausal_status",
46
+ "weight", "height", "ovarian_cancer", "ovarian_cancer_age", "ashkenazi",
47
+ "brca", "mom_bc_cancer_history", "m_aunt_bc_cancer_history",
48
+ "p_aunt_bc_cancer_history", "m_grandmother_bc_cancer_history",
49
+ "p_grantmother_bc_cancer_history", "sister_bc_cancer_history",
50
+ "mom_oc_cancer_history", "m_aunt_oc_cancer_history",
51
+ "p_aunt_oc_cancer_history", "m_grandmother_oc_cancer_history",
52
+ "p_grantmother_oc_cancer_history", "sister_oc_cancer_history",
53
+ "hrt_type", "hrt_duration", "hrt_years_ago_stopped"
54
+ ]
55
+ },
56
+
57
+ "preprocessing": {
58
+ "img_mean": 7047.99,
59
+ "img_std": 12005.5,
60
+ "normalize_method": "imagenet",
61
+ "imagenet_mean": [0.485, 0.456, 0.406],
62
+ "imagenet_std": [0.229, 0.224, 0.225]
63
+ },
64
+
65
+ "training_config": {
66
+ "batch_size": 1,
67
+ "learning_rate": 1e-4,
68
+ "weight_decay": 0.0001,
69
+ "max_epochs": 100,
70
+ "early_stopping_patience": 10
71
+ },
72
+
73
+ "inference_config": {
74
+ "batch_size": 1,
75
+ "use_gpu": true,
76
+ "fp16": false
77
+ },
78
+
79
+ "model_version": "1.0.0",
80
+ "pytorch_version": ">=1.7.0",
81
+ "transformers_version": ">=4.20.0"
82
+ }