协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
model-architecture【开发与工程】Guides inspection and adaptation of the legacy Tacotron TensorFlow 1.x graph, including input shapes, CBHG blocks, attention, decoder outputs, and audio reconstruction settings.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
num_mels,
num_freq, outputs_per_step, embed_depth, encoder/attention/decoder
depths, and max_iters.models.create_model('tacotron', hparams) and call
Tacotron.initialize(inputs, input_lengths, mel_targets, linear_targets).
Omit targets for inference; provide both for training.mel_outputs, linear_outputs, and alignments as the public graph
outputs. Add loss and optimizer only in training graphs.The inspector is a skill asset, while source imports must use the checkout root:
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 for the graph
flow, references/api-reference.md for shape
contracts, and references/troubleshooting.md
for TensorFlow-version and checkpoint mismatch guidance. The bundled
scripts/inspect_model_shapes.py is safe by
default and only builds a tiny graph when --build-graph is explicitly used.