Skip to content

Interpreting and Analyzing CLIP's Zero-Shot Image Classification via Mutual Knowledge, NeurIPS 2024

Notifications You must be signed in to change notification settings

fawazsammani/clip-interpret-mutual-knowledge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Official code for our paper: Interpreting and Analyzing CLIP's Zero-Shot Image Classification via Mutual Knowledge, NeurIPS 2024

demo

In order to keep this repo clean and readable, only the code for a single example is provided. If you need codes for other analysis/ablations/experiments/datasets, please submit an issue or email me, and i will provide it directly.

To avoid running the CLIP text encoder on all classes and descriptors everytime, we save its output as the weights of a nn.Linear layer for ease and convenient loading. Please download the imagenet classifiers from here and place in the directory of this repo.

Additional Libraries

About

Interpreting and Analyzing CLIP's Zero-Shot Image Classification via Mutual Knowledge, NeurIPS 2024

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published