Downloads · 30 days
0
hiimivantang/plant-disease-clip
plant-disease-clip is a image classification model from hiimivantang. Use it when you need a label for an image. It is set up for open_clip. The card lists the license as mit.
This is a fine-tuned CLIP ViT-B-32 model for plant disease recognition.
Downloads · 30 days
0
Access
Public
Updated Nov 6, 2025
Repo size
351 MB
Likes
0
Public
Click a slice to open those files.
.pt351 MB · 100%
From the Hugging Face model README
This is a fine-tuned CLIP ViT-B-32 model for plant disease recognition.
The model was trained on the following plant disease classes:
import torch
import open_clip
from PIL import Image
# Load the model
model, _, preprocess = open_clip.create_model_and_transforms('ViT-B-32', pretrained='openai')
checkpoint = torch.load('model.pt', map_location='cpu')
model.visual.load_state_dict(checkpoint['vision_encoder'])
model.eval()
# Process an image
image = preprocess(Image.open('plant_image.jpg')).unsqueeze(0)
with torch.no_grad():
image_features = model.visual(image)
image_features = image_features / image_features.norm(dim=-1, keepdim=True)
# Use embeddings for similarity search in your vector database
This model is designed for:
The model was fine-tuned on the Plant Disease Dataset containing images of:
If you use this model, please cite the original CLIP paper:
@inproceedings{radford2021learning,
title={Learning Transferable Visual Models From Natural Language Supervision},
author={Radford, Alec and Kim, Jong Wook and Hallacy, Chris and Ramesh, Aditya and Goh, Gabriel and Agarwal, Sandhini and Sastry, Girish and Askell, Amanda and Mishkin, Pamela and Clark, Jack and others},
booktitle={International Conference on Machine Learning},
pages={8748--8763},
year={2021},
organization={PMLR}
}