Downloads · 30 days
4
17% of all-time downloads
sbandred/ct-transformer
ct-transformer is a machine learning model from sbandred. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Swin-based chest X-ray multi-label classifier exported from CT-transformer.
Downloads · 30 days
4
17% of all-time downloads
All-time downloads
23
Public
Parameters
87.3M
349 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors349 MB · 100%
From the Hugging Face model README
Swin-based chest X-ray multi-label classifier exported from CT-transformer.
swin_base_patch4_window7_224512x512150.9664756266963344[
"Aortic enlargement",
"Atelectasis",
"Calcification",
"Cardiomegaly",
"Consolidation",
"ILD",
"Infiltration",
"Lung Opacity",
"Nodule/Mass",
"Other lesion",
"Pleural effusion",
"Pleural thickening",
"Pneumothorax",
"Pulmonary fibrosis",
"No finding"
]
!pip install torch torchvision timm safetensors huggingface_hub pillow
from huggingface_hub import snapshot_download
from PIL import Image
import torch
repo_dir = snapshot_download("sbandred/ct-transformer")
import sys
sys.path.append(repo_dir)
from modeling_ct_transformer import load_model
model, config = load_model(repo_dir, device="cuda" if torch.cuda.is_available() else "cpu")
image = Image.open("/content/example.png").convert("RGB")
This bundle intentionally exports inference weights only, not optimizer or scheduler state.