Skip to content

What do CLIP Vision Transformers learn? Feature Visualization can show you!

Notifications You must be signed in to change notification settings

zer0int/CLIP-ViT-visualization

Repository files navigation

generate-some-vit-viz

CLIP-ViT-Visualization

Standing on the shoulders of giants:

Info

  • Check / install requirements.txt

  • Check the comments in "run_visualization.py" -> Easy lightweight configuration

  • Configure: model, optimizer, single-feature vs. multi-feature/layer, intermediate steps, ...

  • From the console, use "python run_visualization.py"

  • Saves output in neatly organized and named way (subfolders)

  • Work in progress

  • Currently non-deterministic. A "rose neuron" gets you a rose; but a slightly different one each time.

Warning about CLIP feature visualizations

  • CLIP has been trained on "pretty much the entire internet".
  • One neuron gets you a cat, a rose; another may encode explicit / sensitive / offensive / violent content.
  • Use responsibly / at your own discretion.
  • For more information, refer to the CLIP Model Card.

About

What do CLIP Vision Transformers learn? Feature Visualization can show you!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages