Skip to main content

A package to visualize h5 models

Project description

h5visualizer

Welcome to h5visualizer! This is a Python tool that allows you to visualize Keras model layers as cubes in 3D. It's a simple yet cool way to get a 3D representation of your Keras model, helping you understand its structure better. You can adjust the scale of the visualization, and the script supports both direct command-line usage and interactive file input.

Features:

  • Visualizes Keras models (saved as .h5 files) in 3D.
  • You can adjust the scale of the model layers with the --scale argument (optional).
  • Easy-to-use, just clone, install, and run.

Installation

Clone the Repository:

First, clone this repository to your local machine:

git clone https://github.com/krazykarthik2/h5visualizer.git
cd h5visualizer

Install the Package: Next, install the package in editable mode:

pip install --editable .

This will install the tool and make it globally accessible, so you can use it anywhere on your machine.

Usage

Once everything is set up, you can run the visualizer by providing the path to your .h5 model file and optionally adjusting the scale. Here's the basic syntax:

python -m h5visualizer --filepath "path_to_your_model.h5" --scale 0.1
--filepath: Path to the .h5 Keras model file (required).
--scale: Scale factor for the 3D model layers (optional, default is 0.1).

If you don’t provide the scale, it will use the default value of 0.1. You can easily change this to zoom in or out the model layers.

If you don’t pass the file path via the command line, the tool will prompt you to enter it interactively.

Example:

python -m h5visualizer --filepath "path_to_model.h5" --scale 0.2

This will load the model from "path_to_model.h5", visualize it with a scale of 0.2, and show it in 3D!

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

h5visualizer-0.0.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

h5visualizer-0.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file h5visualizer-0.0.1.tar.gz.

File metadata

  • Download URL: h5visualizer-0.0.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for h5visualizer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2fc57806da8c60322a44977de5bc6c54a276d0c352cffe65286e8182dbd18d03
MD5 93e885dd8473c12873d569a00d551e04
BLAKE2b-256 a5f192df52f250f9c76c32381948a1bc8eb0028f384df826245ef718988ef7e2

See more details on using hashes here.

File details

Details for the file h5visualizer-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: h5visualizer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for h5visualizer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e3fc92720ef0930fdac8c06516d6884bd5bafdf20b359cdd13967d897948884
MD5 074098425ca59aa49340bf570d8f84c7
BLAKE2b-256 988a1738e8129abfa5ed6d1e2d77e9279e69c10d20f7ab0a3fae89f428e5393f

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