File size: 777 Bytes
4fbc58e
 
 
 
 
 
 
 
 
 
 
 
 
 
b1eff44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
license: apache-2.0
tags:
- pytorch
- unet
- chest-ct
- survival-analysis
- time-to-event
- model-3d
model-index:
- name: DenseNet-TTE
  results: []
---

# DenseNet Checkpoint

This is a PyTorch Lightning `.ckpt` checkpoint for a DenseNet model trained on chest CT images with TTE objective.

## Usage

A quickstart script is below.

```python
import torch
from src.networks import DenseNet121
model = DenseNet121(spatial_dims=3, in_channels=1, out_channels=2).to(device)
state_dict = torch.load(
        loadmodel_path, map_location=f"cuda:{torch.cuda.current_device()}"
    )
model.load_state_dict(state_dict)
```

For detailed instructions please follow the [README in Github repo](https://github.com/som-shahlab/tte-pretraining/tree/main?tab=readme-ov-file#evaluation).