You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

PulmoFoundation is intended for non-commercial academic research purposes only. By requesting access, you agree to comply with this restriction.

Log in or Sign Up to review the conditions and access this model content.

PulmoFoundation

PulmoFoundation is a lung-specific pathology foundation model for feature extraction from histopathology images.

Complete Codebase

The complete codebase for loading and using PulmoFoundation is available in the PulmoFoundation GitHub repository.

Download Model Checkpoint

Download PulmoFoundation-E2.pth from Files and versions and place it at:

models/ckpts/PulmoFoundation-E2.pth

Access to the model checkpoint requires completion of the repository access request form.

Basic Usage

from models import get_model, get_transform
from PIL import Image

# Load the model and preprocessing pipeline
model = get_model(
    "cuda",
    "models/ckpts/PulmoFoundation-E2.pth",
)
transform = get_transform()

# Load and preprocess an image
# Prefer 512 × 512 patches acquired at 40× magnification
img = Image.open("path/to/your/image.jpg")
img_tensor = transform(img)
img_tensor = img_tensor.unsqueeze(0)  # Add batch dimension: [1, 3, H, W]
img_tensor = img_tensor.cuda()        # Move tensor to GPU

# Extract image features
features = model(img_tensor)          # Shape: [1, 2560]

print(f"Feature shape: {features.shape}")
print(f"Feature vector: {features}")

Intended Use

PulmoFoundation is provided for non-commercial academic research purposes. It is intended for computational pathology research, including representation learning and feature extraction from histopathology images.

Limitations

PulmoFoundation is a research model and is not intended for direct clinical diagnosis, treatment selection, patient management, or other clinical decision-making without appropriate validation and regulatory approval.

License

PulmoFoundation is released under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for david4real/PulmoFoundation

Finetuned
(1)
this model