Skip to main content

Picasso

https://img.shields.io/pypi/v/picasso-viz.svg https://img.shields.io/travis/merantix/picasso.svg Documentation Status https://img.shields.io/codecov/c/github/merantix/picasso/master.svg

A CNN model visualizer

See the Medium post for an introduction to Picasso.

If you use Picasso in your research, please cite our paper:

@misc{picasso2017,
      Author = {Ryan Henderson and Rasmus Rothe},
      Title = {Picasso: A Neural Network Visualizer},
      Year = {2017},
      Eprint = {arXiv:1705.05627},
      Url = {https://arxiv.org/abs/1705.05627}
     }

Quickstart

Picasso uses Python 3.5+ so use a virtual environment if necessary (e.g. virtualenv env --python=python3) and activate it!

  1. Install with pip or from source.

    With pip:

    pip install picasso-viz

    From the repository:

    git clone git@github.com:merantix/picasso.git
    cd picasso
    pip install -e .

    Note: you’ll need the Tensorflow backend for Keras for these examples to work. Make sure your ~/.keras/keras.json file looks like:

    {
        "backend": "tensorflow",
        "image_dim_ordering": "tf",
        "floatx": "float32",
        "epsilon": 1e-07
    }
  2. Start the Flask server

    export FLASK_APP=picasso
    flask run

    Point your browser to 127.0.0.1:5000 and you should see the landing page! When you’re done, Ctrl+C in the terminal to kill your Flask server.

Building the docs

The documentation is much more extensive than this README, and includes instructions on getting the Keras VGG16 and Tensorflow NMIST models working, as well as guides on building your own visualizations and using custom models. This assumes you’ve cloned the repository. First install the required packages:

pip install -e .[docs]

Then build them:

cd docs/
make html

Then you can open _build/html/index.html in your browser of choice.

Notes

  1. Models generated on Keras using the Theano backend should in principle be supported. The only difference is the array ordering of convolutions. I haven’t tried this yet though, so an extra config parameter may be needed.

Credits

History

0.2.0 (2017-06-07)

  • Add RESTful API

  • Rework configuration loaders

  • Major refactor

0.1.2 (2017-06-07)

  • Fix Keras loading issues

  • Check tensorflow installation before installing

0.1.1 (2017-05-16)

  • First release on PyPI.

Metadata

Release files for picasso-viz 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for picasso-viz 0.2.0
File Size Uploaded Provenance Actions
picasso_viz-0.2.0.tar.gz 9.4 MB Without provenance Details for picasso_viz-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for picasso-viz 0.2.0
File Interpreter ABI Platform Actions
picasso_viz-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for picasso_viz-0.2.0-py2.py3-none-any.whl

Total release size: 18.3 MB

Release files / picasso_viz-0.2.0.tar.gz

Download URL picasso_viz-0.2.0.tar.gz
Size 9.4 MB
Tags Source
SHA-256 checksum
How to use checksums
279b10f99ca5e954b3c1c196ec615fa129990a95d2ca9f24a0023123ffac97f6
BLAKE2b-256 checksum
How to use checksums
c75483aa526e1b546399742843c089334703fa215113565a4db34310755dbecc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / picasso_viz-0.2.0-py2.py3-none-any.whl

Download URL picasso_viz-0.2.0-py2.py3-none-any.whl
Size 8.9 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
608565bd2c4f86377b63428e5f4e9e71be31f18b17a4d3960368940f16b71a08
BLAKE2b-256 checksum
How to use checksums
54c55c1d5589263ab711243c2617a75747d6942a7e63187d17786f53deafa597
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for picasso-viz 0.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page