How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("zero-shot-image-classification", model="SeriYann/MicroscopyCLIP")
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("SeriYann/MicroscopyCLIP")
model = AutoModelForZeroShotImageClassification.from_pretrained("SeriYann/MicroscopyCLIP", device_map="auto")
Quick Links

MicroscopyCLIP

Fine-tuned from openai/clip-vit-base-patch32 on microscopy image-text pairs (full-parameter fine-tuning).

Downloads last month
23
Safetensors
Model size
0.2B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for SeriYann/MicroscopyCLIP

Finetuned
(163)
this model