Downloads · 30 days
17
13% of all-time downloads
lens-ai/clip-vit-base-patch32_pcam_finetuned
clip-vit-base-patch32_pcam_finetuned is a feature extraction model from lens-ai. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains a fine-tuned version of the CLIP ViT Base Patch32 model on the PatchCamelyon (PCAM) dataset. The model is optimized for histopathological image classification.
Downloads · 30 days
17
13% of all-time downloads
All-time downloads
134
Public
Parameters
87.5M
700 MB on disk
Likes
0
Public
Click a slice to open those files.
.pt350 MB · 50%
From the Hugging Face model README
This repository contains a fine-tuned version of the CLIP ViT Base Patch32 model on the PatchCamelyon (PCAM) dataset. The model is optimized for histopathological image classification.
openai/clip-vit-base-patch32PatchCamelyonEnsure you have transformers, torch, and safetensors installed:
pip install transformers torch safetensors
from transformers import CLIPProcessor, CLIPModel
import torch
model_path = "lens-ai/clip-vit-base-patch32_pcam_finetuned"
model = CLIPModel.from_pretrained(model_path)
processor = CLIPProcessor.from_pretrained(model_path)
from PIL import Image
image = Image.open("sample_image.png")
inputs = processor(images=image, return_tensors="pt")
outputs = model.get_image_features(**inputs)
We plan to release additional metrics, including robustness evaluation with adversarial attacks in future updates.
This model is released under the MIT License.
For any questions, please reach out to Venkata Tej at LensAI.