The tensor best_A.pth has shape (d, m) where d is the backbone embedding dimension and m is the number of concepts in the dataset's concept vocabulary.
Quickstart
1. Download a checkpoint
bash
1pip install huggingface-hub
23# Download all checkpoints4hf download oonat/ezpc-checkpoints \5 --local-dir .\6 --include "checkpoints/*"78# Or just one9hf download oonat/ezpc-checkpoints \10 --local-dir .\11 --include "checkpoints/CIFAR-100_backbone_RN50_weight_1.0_epoch_10000_lr_0.01_bs_1000000/*"
2. Load and use it
The checkpoint can be loaded directly with PyTorch:
python
1import torch
23A = torch.load(4"checkpoints/CIFAR-100_backbone_RN50_weight_1.0_epoch_10000_lr_0.01_bs_1000000/best_A.pth",5 weights_only=True,6).float()7print(A.shape)# (d, m)
To run zero-shot evaluation, qualitative concept visualizations, faithfulness
analyses, or any of the experiments from the paper, clone the
EZPC GitHub repo.
Evaluation also requires the pre-computed image and cached text embeddings.
Download them from the embeddings dataset
into ./data:
hf download oonat/ezpc-embeddings --repo-type dataset --local-dir data
Then point --checkpoint_path at the downloaded best_A.pth:
1@InProceedings{Ozdemir_2026_CVPR,
2 author = {Ozdemir, Onat and Christensen, Anders and Alaniz, Stephan and Akata, Zeynep and Akbas, Emre},
3 title = {Explaining CLIP Zero-shot Predictions Through Concepts},
4 booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
5 month = {June},
6 year = {2026},
7 pages = {31336-31345}
8}
Acknowledgements
The concept vocabularies and class label mapping files were originally curated by the Label-free Concept Bottleneck Models authors. We thank them for open-sourcing these resources.
License
Released under the MIT License.
Note that these checkpoints were trained on embeddings derived from CIFAR-100, CUB-200-2011, Places365, ImageNet, and ImageNet-100. Users are responsible for complying with the original license and terms of use of those datasets, which may restrict commercial use — notably ImageNet and CUB-200-2011, which are released for non-commercial research only.