Instructions to use turing552/clip-ROCOv2-radiology-5ep with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use turing552/clip-ROCOv2-radiology-5ep with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="turing552/clip-ROCOv2-radiology-5ep") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("turing552/clip-ROCOv2-radiology-5ep") model = AutoModelForZeroShotImageClassification.from_pretrained("turing552/clip-ROCOv2-radiology-5ep", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
6753b68 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:c2236c01f6268c6025d5ad22dab9eeac43c2e352b73c65f7ef1a6ccf951d3460
size 5240
|