Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

microsoft
/
colipri

Zero-Shot Image Classification
COLIPRI
Safetensors
English
Model card Files Files and versions
xet
Community
5

Instructions to use microsoft/colipri with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • COLIPRI

    How to use microsoft/colipri with COLIPRI:

    pip install colipri
    from colipri import get_model
    from colipri import get_processor
    from colipri import load_sample_ct
    from colipri import ZeroShotImageClassificationPipeline
    
    model = get_model().cuda()
    processor = get_processor()
    pipeline = ZeroShotImageClassificationPipeline("microsoft/colipri", processor)
    
    image = load_sample_ct()
    
    pipeline(image, ["No lung nodules", "Lung nodules"])
    
  • Notebooks
  • Google Colab
  • Kaggle
colipri / src /colipri
26.4 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 3 commits
fepegar's picture
fepegar
Add __version__
0e56342 4 months ago
  • configs
    Add package code and model weights 4 months ago
  • model
    Cast checkpoint path to string 4 months ago
  • __init__.py
    318 Bytes
    Add __version__ 4 months ago
  • checkpoint.py
    1.52 kB
    Add package code and model weights 4 months ago
  • defaults.py
    452 Bytes
    Add package code and model weights 4 months ago
  • pipelines.py
    1.97 kB
    Add package code and model weights 4 months ago
  • pooling.py
    2.67 kB
    Add package code and model weights 4 months ago
  • processor.py
    2.88 kB
    Add package code and model weights 4 months ago
  • sample_data.py
    628 Bytes
    Add package code and model weights 4 months ago
  • types.py
    1.51 kB
    Add package code and model weights 4 months ago