算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
training-and-inference【设计与创意】Configure tf_unet model graphs, training loops, checkpoints, predictions, and visual outputs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about Unet, Trainer, graph construction, losses, optimizers, checkpoints, prediction, accuracy, or image-visualization helpers.
This is the sub-skill for the TensorFlow 1.x model graph. If the task is really about input pipelines, file naming, or dataset loaders, switch to ../data-providers-and-launchers/SKILL.md.
references/api-reference.md for signatures, tensor shapes, and return values.references/workflows.md for toy training and restore recipes.scripts/smoke_train_restore.py when you need a tiny train/save/restore/predict smoke.../../scripts/check_tf_unet_env.py first.layers and features_root to size the U-Net. VALID convolutions shrink the output and create an offset.cost="cross_entropy" for the default one-hot segmentation setup.cost="dice_coefficient" only when the task needs that segmentation-style objective.class_weights or regularizer through cost_kwargs when the workflow needs imbalance handling or L2.summaries=False for tiny inspection runs unless you explicitly want TensorBoard outputs.util.crop_to_shape(label, prediction.shape) before comparing against predictions.Unet constructor resets the default graph and prepares placeholders for x, y, and keep_prob.Trainer.train(...) expects a callable data provider that returns training and verification batches.Trainer.train(...) writes checkpoint and prediction outputs under the paths you provide.predict(...) restores from a checkpoint base path such as model.ckpt.error_rate(...) compares argmax classes across the channel axis.references/api-reference.md — read for the public functions, classes, and shape contracts.references/workflows.md — read for the tiny smoke, checkpoint, and training recipes.references/troubleshooting.md — read when you hit TF1, shape, checkpoint, or loss-selection issues.scripts/smoke_train_restore.py — run a one-step synthetic training flow when you want to verify the training loop and checkpoint restore path.layers or features_root, treat the checkpoint shape as stale and rebuild the graph.