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
.h5files) in 3D. - You can adjust the scale of the model layers with the
--scaleargument (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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file h5visualizer-0.0.5.tar.gz.
File metadata
- Download URL: h5visualizer-0.0.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f29599a3ab6efe88bffe6ec7894fdc1c4e8e8fdeef4fe2dc287b6df5926e7802
|
|
| MD5 |
320b0fac8ac24580cef98def80a93eac
|
|
| BLAKE2b-256 |
c286756166a24faf60d6d3c03f197887917859705fc98f2a18b0385c820436e2
|
File details
Details for the file h5visualizer-0.0.5-py3-none-any.whl.
File metadata
- Download URL: h5visualizer-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0a2d44c1020ce7401e62a3ddffb94558523fa9ac55cc746396ca7c75d07fcfc
|
|
| MD5 |
77d8a646532c1fb8a2e60ca2876253c7
|
|
| BLAKE2b-256 |
0e91ebb300f5c50ddd51e0b180b374a846891fe3cd70cc1b0ed23cf8e701695e
|