PyTorch adaptation of the Lucid feature visualization library
Top 52.9% on sourcepulse
Lucent is a Python library that adapts the Lucid library for PyTorch, enabling feature visualization for PyTorch models. It is targeted at researchers and practitioners in machine learning and computer vision who want to understand and visualize the internal representations of neural networks. The primary benefit is providing PyTorch users with a familiar and powerful tool for interpretability.
How It Works
Lucent leverages PyTorch's autograd capabilities to perform gradient ascent on specific layers or neurons within a neural network. By optimizing an input image to maximize the activation of a chosen feature, it generates visualizations that reveal what the network has learned. This approach is advantageous as it integrates seamlessly with the PyTorch ecosystem.
Quick Start & Requirements
pip install torch-lucent
Highlighted Details
Maintenance & Community
greentfrapp/lucent
.#proj-lucid
and #circuits
.Licensing & Compatibility
Limitations & Caveats
The library is explicitly stated to be in a "pre-alpha phase," indicating potential instability, incomplete features, and ongoing development. The authors note they are solely responsible for any issues or bugs.
4 months ago
Inactive