ZepengHuo commited on
Commit
b1eff44
·
0 Parent(s):

Initial commit for densenet-TTE model

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. README.md +19 -0
  3. config.json +6 -0
  4. densenet_tte.pth +3 -0
.gitattributes ADDED
@@ -0,0 +1 @@
 
 
1
+ *.pth filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DenseNet Checkpoint
2
+
3
+ This is a PyTorch Lightning `.ckpt` checkpoint for a DenseNet model trained on chest CT images with TTE objective.
4
+
5
+ ## Usage
6
+
7
+ A quickstart script is below.
8
+
9
+ ```python
10
+ import torch
11
+ from src.networks import DenseNet121
12
+ model = DenseNet121(spatial_dims=3, in_channels=1, out_channels=2).to(device)
13
+ state_dict = torch.load(
14
+ loadmodel_path, map_location=f"cuda:{torch.cuda.current_device()}"
15
+ )
16
+ model.load_state_dict(state_dict)
17
+ ```
18
+
19
+ For detailed instructions please follow the [README in Github repo](https://github.com/som-shahlab/tte-pretraining/tree/main?tab=readme-ov-file#evaluation).
config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "model_3d",
3
+ "model_name": "densenet",
4
+ "pretrain_type": "time-to-event",
5
+ "num_class": 8192
6
+ }
densenet_tte.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb162ead8b701e570c2cb38d34de851fce12eb02a2cafbd58fbe10e77a6bca1b
3
+ size 45680671