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
File size: 648 Bytes
cf2d372 e8ab6bd cf2d372 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | [tasks.build]
description = "Build the package"
run = "rm -rf dist/ && uv build"
[tasks.publish]
depends = ["build"]
description = "Publish the package"
run = "uv publish"
[tasks.bump]
description = "Bump the version (usage: mise run bump [patch|minor|major])"
run = "uv run --group maintain bump-my-version bump {{ arg(i=0, name='part', default='patch') }} --verbose"
[tasks."bump-dry"]
description = "Dry-run version bump"
run = "uv run --group maintain bump-my-version bump {{ arg(i=0, name='part', default='patch') }} --dry-run --verbose --allow-dirty"
[tasks.push]
description = "Push commits and tags"
run = "git push && git push --tags"
|