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! You can also check out the lucent-notebooks repo to clone all the 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.
Metadata
Release files for torch-lucent 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| torch-lucent-0.1.8.tar.gz | 35.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torch_lucent-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 81.9 kB
Release files / torch-lucent-0.1.8.tar.gz
| Download URL | torch-lucent-0.1.8.tar.gz |
|---|---|
| Size | 35.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d658af8f950bc3e582d7c10a9983ee83d32c04c3049ad84707d823550950a71e
|
|
BLAKE2b-256 checksum How to use checksums |
cd2b981db9254c6aa5c86718240e76154e985b9d7a763f16e96a5e6e277aa778
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / torch_lucent-0.1.8-py3-none-any.whl
| Download URL | torch_lucent-0.1.8-py3-none-any.whl |
|---|---|
| Size | 46.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccd184a0447946dd55ba925046e39d43ad05e8067cf447730cf3bf6256ab4696
|
|
BLAKE2b-256 checksum How to use checksums |
9f8da1edbdf9ba0a2a84e832b36a7b4a1b22ce073649969a9ec2cbfc003f0ff0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.23.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for torch-lucent 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.