Image Models
Collection
This repo contains medical imaging models for tte-pretraining paper (https://arxiv.org/abs/2411.09361) and INSPECT (https://arxiv.org/abs/2311.10798)
•
7 items
•
Updated
This is a PyTorch Lightning .ckpt
checkpoint for a SwinUNETR model trained on chest CT images with TTE objective.
A quickstart script is below.
import torch
from src.networks import SwinUNETRForClassification
swin_unetr_params = {
"img_size": (224, 224, 224),
"in_channels": 1,
"out_channels": 2,
"feature_size": 48,
"drop_rate": 0.0,
"attn_drop_rate": 0.0,
"dropout_path_rate": 0.0,
"use_checkpoint": True,
}
model = SwinUNETRForClassification(
swin_unetr_params=swin_unetr_params, 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.