Skip to main content

Mammo-CLIP: A Vision Language Foundation Model to Enhance Data Efficiency and Robustness in Mammography

Project description

Mammo-CLIP

Mammo-CLIP: A Vision Language Foundation Model to Enhance Data Efficiency and Robustness in Mammography

A pip-installable package for zero-shot mammography analysis using the Mammo-CLIP model.

Installation

pip install mammoclip

Quick Start

Python API

import mammoclip

# Initialize model (downloads automatically)
model = mammoclip.MammoClipModel()

# Analyze an image (supports DICOM, PNG, JPEG, etc.)
results = model.predict("mammogram.dcm", {
    "mass": ["no mass", "mass"],
    "malignancy": ["no malignancy", "malignancy"],
    "density": ["fatty", "scattered areas of fibroglandular density", 
               "heterogeneously dense", "extremely dense"]
})

print(results)

Command Line Interface

# Basic usage
mammoclip-inference --image mammogram.dcm

# With custom prompts
mammoclip-inference --image mammogram.png --prompts custom_prompts.json

Supported Image Formats

  • DICOM: .dcm, .dicom
  • Standard Images: .png, .jpg, .jpeg, .tiff, .bmp

Model Information

This package is based on the research paper:

"Mammo-CLIP: A Vision Language Foundation Model to Enhance Data Efficiency and Robustness in Mammography"

Citation

@article{shen2024mammoclip,
  title={Mammo-CLIP: A Vision Language Foundation Model to Enhance Data Efficiency and Robustness in Mammography},
  author={Shen, Shantanu and Xu, Haoyue and Weng, Jaden and Wu, Jay and Chen, Evangelia and Abbasi, Salma and Wang, Rayna and Bouzid, Hania and Rajpurkar, Pranav},
  journal={arXiv preprint arXiv:2409.03675},
  year={2024}
}

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mammoclip-0.1.2.tar.gz (3.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mammoclip-0.1.2-py3-none-any.whl (3.9 MB view details)

Uploaded Python 3

File details

Details for the file mammoclip-0.1.2.tar.gz.

File metadata

  • Download URL: mammoclip-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for mammoclip-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1b6986dbda39d209b2d038e2d32c1e76666c6117de181c6bbca35307bd8ceae0
MD5 f588dcae3924aa64ab4e0b4cd93cf52e
BLAKE2b-256 b29d0597142d35dcdc8a679ca797a1165d48c2b0d10985b2bb9ad67b0c20c639

See more details on using hashes here.

File details

Details for the file mammoclip-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mammoclip-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for mammoclip-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1721b35a8fce10149a7fb7482ddb4f99e50ac8519d2940379529e7e48344c631
MD5 76945142ec7a5b93086d2e22219e0d31
BLAKE2b-256 2a7a779763b1f497b6389a0152b9ff0397f5a45bff1f3c63f82fa651ece26e52

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page