Views
No views yet
⚠️ Placeholder values below (repo id, class names, dataset, metrics) — fill these in with your actual details before publishing.
openai/clip-vit-base-patch32{{your-username}}/{{your-model-name}}| Metric | Value |
|---|---|
| Accuracy | {{TBD}} |
| F1 (macro) | {{TBD}} |
1from model import MultimodalClassifier
2from inference import load_model, predict
3
4model = load_model("checkpoints/model.pt", num_classes=4,
5 base_model_name="openai/clip-vit-base-patch32")
6
7result = predict(model, image_path="example.jpg", text="a description")
8print(result["predicted_class"], result["confidence"])freeze_backbone=False) and fine-tune end-to-end for
more task-specific performance if you have enough data.model.py — model definition (MultimodalClassifier)train.py — fine-tuning scriptinference.py — single-example inference / CLIrequirements.txt — dependencies