How zetane/viewer works
This repository is not a single application; it is a curated collection of model demos and assets for the Zetane Viewer desktop tool. The repo’s purpose is to let an engineer load prebuilt neural-network artifacts, inspect graph structure, and visualize tensors, feature maps, and weights.
The core architectural boundary is external: the Zetane Viewer reads the artifacts in this repo, but the repo itself does not contain the viewer runtime. Its files are inputs to that viewer, not a server or service stack.
The repository is organized as a model zoo under models/, with one self-contained subdirectory per example. Each subdirectory typically contains:
• a Python script that generates or prepares the model export,
• an ONNX model file for cross-framework import,
• a Zetane-native .ztn workspace for direct loading,
• model-specific helper files, label maps, specs, or sample inputs,
• a README explaining that particular example.
The main data flow is: framework-specific model code or an exported model is converted into ONNX and/or ZTN artifacts, then those artifacts are loaded into Zetane Viewer for interactive analysis. In some folders, the scripts appear to exist mainly to reproduce the exported artifacts or to create the workspace metadata used by Zetane.
The model families are clearly separated by task:
• image classification: AlexNet, EfficientNet, ResNet50v2,
• object detection: SSD, YOLOv3, RFB_320, VGG-based age/gender models,
• image segmentation: U-Net,
• image manipulation: super-resolution and style transfer,
• explainable AI examples: Keras and PyTorch XAI demos,
• classical ML: a scikit-learn Iris random forest exported to ONNX,
• emotion/face analysis: FERPlus and related models.
A notable architectural pattern is that several examples include “exposed nodes” ONNX variants. These are specialized exports intended to surface intermediate tensors or internal nodes so the viewer can inspect deeper parts of the computational graph, not just the final outputs.
The repo also includes model-specific support assets that shape the inference path:
• image files and sample inputs for running demonstrations,
• class-label text files for classification/XAI examples,
• detection spec files and box utilities for object-detection postprocessing,
• .npy / .npz inputs for deterministic model runs.
Technologically, the repo spans Python-based model preparation, ONNX as the interchange format, and Zetane’s .ztn format as the viewer-native workspace format. Some folders include notebooks or HTML exports, suggesting the examples were authored or validated in interactive Python workflows before being packaged.
There is little shared application code across models. The repository is intentionally modular: each folder is an isolated demo with its own assets and helper scripts, rather than a layered library with common services, APIs, or a runtime orchestration layer.
At the top level, the README and screenshots act as documentation for how the viewer consumes the artifacts. The architecture to diagram should emphasize “artifact generation → model export → Zetane Viewer import → interactive tensor/graph inspection,” with the repo serving as the artifact source and the desktop viewer serving as the execution/visualization boundary.
Main entry points: README.md Models guide · alexnet.py AlexNet · SSD.py SSD · unet.py U-Net
Components 18
Docs
Repository and model-zoo guidance
- README · Top-level entry points and viewer-oriented overview
README.md - Models guide · Index for the curated model zoo under models/
models/README.md
Image classification
Classification demo bundles and exports
- AlexNet · Python prep script with ONNX and ZTN workspace for inspection
models/alexnet/alexnet.py - EfficientNet · Lite4 export packaged for Viewer loading
models/efficientnet/efficientnet.py - ResNet50v2 · Image-classification export with a Viewer workspace
models/resnet50v2/resnet50v2.py
Object detection
Detection demo bundles and exports
- SSD · Object-detection example with specs and postprocessing helpers
models/ssd/SSD.py - YOLOv3 · Detection export with sample inputs and specs
models/yolo_V3/yolo_V3.py - RFB_320 · Detection bundle including exposed-node ONNX variant
models/RFB_320/RFB_320.py - Age model · VGG-based age analysis export with exposed-node variant
models/vgg_ilsvrc_16_age/vgg_ilsvrc_16_age.py - Gender model · VGG-based gender analysis export with exposed-node variant
models/vgg_ilsvrc_16_gen/vgg_ilsvrc_16_gen.py
Segmentation and manipulation
Dense prediction and image transform demos
- U-Net · Segmentation model packaged as ONNX and ZTN
models/unet/unet.py - Super-resolution · Upsampling example with notebook-derived artifacts
models/super-resolution/super-resolution.py - Style transfer · Multiple style-transfer exports plus exposed-node variants
models/style_transfer/style_transfer.py
XAI demos
Explainability-focused model examples
Classical ML
Non-deep-learning export example
- Iris RF · Scikit-learn random forest exported to ONNX and ZTN
models/sklearn_iris/sklearn_iris.py
Emotion analysis
FERPlus-style facial emotion demo
- FERPlus8 · Facial emotion example with ONNX and workspace bundle
models/emotion_ferplus8/emotion_ferplus8.py
Other components
- Zetane Viewer · Desktop tool that loads ONNX and ZTN artifacts for inspection
Connections 22
- README → Models guide: points to · Top-level docs direct readers to the model zoo
- Models guide → AlexNet: indexes · Representative classification example
- Models guide → SSD: indexes · Representative detection example
- Models guide → U-Net: indexes · Representative segmentation example
- Models guide → XAI Keras: indexes · Representative explainability example
- Models guide → Iris RF: indexes · Representative classical ML example
- Models guide → FERPlus8: indexes · Representative emotion example
- AlexNet → Zetane Viewer: loaded by · ONNX and ZTN artifacts are consumed in the desktop viewer
- EfficientNet → Zetane Viewer: loaded by · ONNX and ZTN artifacts are consumed in the desktop viewer
- ResNet50v2 → Zetane Viewer: loaded by · ONNX and ZTN artifacts are consumed in the desktop viewer
- SSD → Zetane Viewer: loaded by · Detection artifacts and workspace load into the viewer
- YOLOv3 → Zetane Viewer: loaded by · Detection artifacts and workspace load into the viewer
- RFB_320 → Zetane Viewer: loaded by · Exposed-node and standard ONNX exports load into the viewer
- Age model → Zetane Viewer: loaded by · Exposed-node and standard ONNX exports load into the viewer
- Gender model → Zetane Viewer: loaded by · Exposed-node and standard ONNX exports load into the viewer
- U-Net → Zetane Viewer: loaded by · Segmentation artifacts and workspace load into the viewer
- Super-resolution → Zetane Viewer: loaded by · Image transform artifacts and workspace load into the viewer
- Style transfer → Zetane Viewer: loaded by · Style-transfer artifacts and workspace load into the viewer
- XAI Keras → Zetane Viewer: loaded by · Explainability artifacts and label maps load into the viewer
- XAI Torch → Zetane Viewer: loaded by · Explainability artifacts and label maps load into the viewer
- Iris RF → Zetane Viewer: loaded by · Classical ML ONNX and workspace load into the viewer
- FERPlus8 → Zetane Viewer: loaded by · Emotion-analysis artifacts and workspace load into the viewer