Skip to main content

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

Metadata

Release files for mammoclip 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mammoclip 0.1.8
File Size Uploaded Provenance Actions
mammoclip-0.1.8.tar.gz 3.8 MB Without provenance Details for mammoclip-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mammoclip 0.1.8
File Interpreter ABI Platform Actions
mammoclip-0.1.8-py3-none-any.whl Python 3 none any Details for mammoclip-0.1.8-py3-none-any.whl

Total release size: 7.7 MB

Release files / mammoclip-0.1.8.tar.gz

Download URL mammoclip-0.1.8.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
be4bf6ab943153122403b238177518f3f023d87d560901b311e014967971e017
BLAKE2b-256 checksum
How to use checksums
5ed0812a6a34538d36c6946eef9af024fc8754941bb8c819ed97276995f2ad80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / mammoclip-0.1.8-py3-none-any.whl

Download URL mammoclip-0.1.8-py3-none-any.whl
Size 3.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
02655d600300866f3bd91000e91eeb646ab44b9d04b561f5ef1e484a5fe73c24
BLAKE2b-256 checksum
How to use checksums
4834e1375929f8b9783d0e8442903341f6fec8ef8d3a56d116124d15e3f16fe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Security for mammoclip 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page