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.2.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.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: h5visualizer-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 97a33dde7d1453ae9e629899ef9d586effc9cd54b5c77d44cf426cf408e88050
MD5 98bd65b891f2b574cde9615d3e653c5c
BLAKE2b-256 25b466c3e7ee16718c6d0c595613bfd8911595e589b006db7d21146b3cc826b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: h5visualizer-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4919883d0ae401868c5f268cb68366f995b0afdb37565097d71fc5af7a29d061
MD5 1f406132154363932c66880a2368b4f5
BLAKE2b-256 b803bd34b41df4da301792bef8b1ec39293ee3bde02fbeb9bbc71349bcb7bafd

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