File size: 766 Bytes
0213e98
 
 
 
 
 
 
 
 
 
 
 
 
 
308c74b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
- medical imaging
- survival analysis
- time-to-event
- resnet
- CT scans
model-index:
- name: ResNet-TTE
  results: []
---

# DenseNet Checkpoint

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

## Usage

A quickstart script is below.

```python
import torch
from src.networks import resnet152
model = resnet152(n_input_channels=1, num_classes=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).