Skip to content
Back to skills

Model Architecture

ASecurity

"Guides inspection and adaptation of the legacy Tacotron TensorFlow

  • 247 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 9, 2026
developmentpythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill model-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Model Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Model Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-model-architecture-01028037/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-model-architecture-01028037)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: model-architecture
description: "Guides inspection and adaptation of the legacy Tacotron TensorFlow
  1.x graph, including input shapes, CBHG blocks, attention, decoder outputs,
  and audio reconstruction settings."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Model architecture

Use this route when a task concerns graph construction, tensor shapes, model
components, hparams that alter dimensions, or why a checkpoint cannot be used
with a new configuration. This is the original Tacotron implementation using
TensorFlow 1.x graph APIs and `tf.contrib`; it is not a TensorFlow 2 migration
recipe.

## Workflow

1. Start with the hparams that define input/output dimensions: `num_mels`,
   `num_freq`, `outputs_per_step`, `embed_depth`, encoder/attention/decoder
   depths, and `max_iters`.
2. Build the model through `models.create_model('tacotron', hparams)` and call
   `Tacotron.initialize(inputs, input_lengths, mel_targets, linear_targets)`.
   Omit targets for inference; provide both for training.
3. Treat `mel_outputs`, `linear_outputs`, and `alignments` as the public graph
   outputs. Add loss and optimizer only in training graphs.
4. Use the bundled shape inspector for graph/API checks, and read the detailed
   architecture reference before changing dimensions or restoring a checkpoint.
## Command roots and verification boundary

The inspector is a skill asset, while source imports must use the checkout root:

```bash
SKILL_ROOT=/path/to/tacotron-skill
CHECKOUT_ROOT=/path/to/tacotron-checkout
cd "$SKILL_ROOT" && python sub-skills/model-architecture/scripts/inspect_model_shapes.py --repo-root "$CHECKOUT_ROOT"
cd "$SKILL_ROOT" && python sub-skills/model-architecture/scripts/inspect_model_shapes.py --repo-root "$CHECKOUT_ROOT" --build-graph
```

The graph smoke requires a compatible TensorFlow 1.x runtime and checks graph
construction only. It loads no checkpoint and does not validate real audio,
Griffin-Lim quality, vocoder output, training convergence, or GPU behavior.

Read [`references/architecture.md`](references/architecture.md) for the graph
flow, [`references/api-reference.md`](references/api-reference.md) for shape
contracts, and [`references/troubleshooting.md`](references/troubleshooting.md)
for TensorFlow-version and checkpoint mismatch guidance. The bundled
[`scripts/inspect_model_shapes.py`](scripts/inspect_model_shapes.py) is safe by
default and only builds a tiny graph when `--build-graph` is explicitly used.

Files in this skill

  • SKILL.md2.5 KB
  • references/api-reference.md1.3 KB
  • references/architecture.md1.5 KB
  • references/troubleshooting.md1 KB
  • scripts/inspect_model_shapes.py2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.