Skip to main content

Inspired by Lucid, Luna is a Feature Visualization package for Tensorflow2.

Project description

Luna

Inspired by Lucid, Luna is a Feature Visualization package for Tensorflow. While Lucid is not supporting Tensorflow 2, and thus misses out on many modern features and the ability to use modern models, Luna was built with Tensorflow 2 at its core.

Luna is under active development. It is not production-ready research code and misses many features of Lucid.

Usage

You can use this package directly with your code. If you place this package next to your python file, you can use it like this in your file:

from luna.pretrained_models import models
from luna.featurevis import featurevis, images, image_reader

model = models.get_model("inceptionV3")
# model.summary()
image = images.initialize_image(224, 224)
opt_param = featurevis.OptimizationParameters(iterations=2000, learning_rate=0.7)
aug_param = featurevis.AugmentationParameters(blur= False, scale= True, pad_crop=True, flip=False,
                                                    rotation=False, noise=False, color_aug=False)
loss, image = featurevis.visualize_filter(image, model, layer_name,
                                            channel_num, opt_param, aug_param)
images.save_image(image, name="test")
image_reader.save_npy_as_png("test.npy")

Recomended Reading

Related Talks

Community

While we admire their work, we have no affiliation with the Lucid authors or project. Nonetheless, if you are interested in research like this, the Distill slack (join link) might be a good place for you to get to know other people in this area.

On the awesome Distill slack, Lucid has its own #proj-lucid channel, where general questions about the technology are discussed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

luna-fviz-0.0.3.tar.gz (474.8 kB view hashes)

Uploaded Source

Built Distribution

luna_fviz-0.0.3-py3-none-any.whl (16.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page