Skip to main content

Framework-agnostic neural network architecture visualizer — publication-quality diagrams without executing a forward pass.

Project description

ModelVision

Framework-agnostic neural network architecture visualizer. Renders publication-quality, fully styleable diagrams for models built in PyTorch, TensorFlow/Keras, JAX/Flax, JAX/Haiku, Hugging Face Transformers, scikit-learn, and ONNX — without running a forward pass.

Status: early development (Week 0 foundations landing; M1 next). See PRD_ModelVision.md for the full spec.

Install

uv add modelvision                    # core only
uv add "modelvision[torch]"           # per-framework extras
uv add "modelvision[all]"             # everything

Quick start

import torchvision.models as models
import modelvision as mvision

model = models.vgg16()
mvision.render(
    model,
    output="vgg16.svg",
    theme="dark",
    layer_palette={
        "Conv2d":    "#4a90d9",
        "ReLU":      "#27ae60",
        "MaxPool2d": "#e67e22",
        "Linear":    "#9b59b6",
    },
)

CLI

uvx modelvision model.py MyNet --output diagram.svg --theme dark
uvx modelvision model.onnx --output diagram.html

Development

git clone https://github.com/pianistprogrammer/ModelVision.git
cd modelvision
uv sync --all-extras --extra dev
uv run pytest

License

MIT

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

modelvision-0.1.0.tar.gz (289.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

modelvision-0.1.0-py3-none-any.whl (91.6 kB view details)

Uploaded Python 3

File details

Details for the file modelvision-0.1.0.tar.gz.

File metadata

  • Download URL: modelvision-0.1.0.tar.gz
  • Upload date:
  • Size: 289.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for modelvision-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d6d2a1e2e7fbf7d0e5c66a1cdd5632e70c84288759e841c1c776cc62365b3ac7
MD5 b0ad7ee61597f056399795aa450e7d51
BLAKE2b-256 19cf395a11bb3b692d02d9ad83447c0905b2d9483d66b20ce5269cd82cf06951

See more details on using hashes here.

File details

Details for the file modelvision-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: modelvision-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 91.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for modelvision-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46171d1ecfb24f5e925e036533061ad5cea2d3504b1425726e0a3b6b3a77e668
MD5 32db7ba7cd3ed665186b9559410adf63
BLAKE2b-256 218bad8389bf082477e8b5ec2cb6d0541dd848512d00967a01d1c82ba4c6880f

See more details on using hashes here.

Supported by

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