Lucid for PyTorch. Collection of infrastructure and tools for research in neural network interpretability.
Project description
Lucent
PyTorch + Lucid = Lucent
The wonderful Lucid library adapted for the wonderful PyTorch!
Lucent is not affiliated with Lucid or OpenAI's Clarity team, although we would love to be! Credit is due to the original Lucid authors, we merely adapted the code for PyTorch and we take the blame for all issues and bugs found here.
Usage
Lucent is still in pre-alpha phase and can be installed locally with the following command:
pip install torch-lucent
In the spirit of Lucid, get up and running with Lucent immediately, thanks to Google's Colab!
You can also clone this repository and run the notebooks locally with Jupyter.
Quickstart
import torch
from lucent.optvis import render
from lucent.modelzoo import inceptionv1
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
model = inceptionv1(pretrained=True)
model.to(device).eval()
render.render_vis(model, "mixed4a:476")
Tutorials
Other Notebooks
Here, we have tried to recreate some of the Lucid notebooks!
Recommended Readings
- Feature Visualization
- The Building Blocks of Interpretability
- Using Artificial Intelligence to Augment Human Intelligence
- Visualizing Representations: Deep Learning and Human Beings
- Differentiable Image Parameterizations
- Activation Atlas
Related Talks
- Lessons from a year of Distill ML Research (Shan Carter, OpenVisConf)
- Machine Learning for Visualization (Ian Johnson, OpenVisConf)
Slack
Check out #proj-lucid
and #circuits
on the Distill slack!
Additional Information
License and Disclaimer
You may use this software under the Apache 2.0 License. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for torch_lucent-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bbd78ae39952b51ae9e4748881d3a35f6d5b14b884b2ab5cae6343ad5ccc317 |
|
MD5 | cf9b3303c1f2e4a2eaaea90f437d289f |
|
BLAKE2b-256 | a42983c932ecfee804ba4fc115a7e14601c1f28fe6b1244d7c7ce84a5c05480f |