densenet_tte / README.md
shahlab's picture
Update README.md
4fbc58e verified
---
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).