界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

resnet-training

resnet-training

【效率与协作】Guides Tencent ML-Images TensorFlow 1.x ResNet graph, pretraining, finetuning, flags, and training troubleshooting.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: resnet-training description: "Guides Tencent ML-Images TensorFlow 1.x ResNet graph, pretraining, finetuning, flags, and training troubleshooting." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

ResNet Training

Use this sub-skill when the task is about the Tencent ML-Images ResNet model, ML-Images multi-label pretraining, ImageNet finetuning, training flags, checkpoint restore, or training/runtime diagnostics.

Read first

Bundled helpers

  • scripts/build_train_command.py prints a safe train.py command template for ML-Images pretraining. It does not run training.
  • scripts/build_finetune_command.py prints a safe finetune.py command template for ImageNet finetuning. It does not run training and calls out legacy example-script misspellings.
  • scripts/resnet_graph_smoke.py checks whether a user's local Tencent ML-Images checkout and TensorFlow 1.x runtime can import flags and models.resnet and build a small graph.

Route by task

  • Need TFRecords or data layout first: route to ../data-preparation/SKILL.md. Training reads split directories; it does not create TFRecords itself.
  • Build a pretraining command: use scripts/build_train_command.py, then verify the data root has train/ and val/ shards and the class count is 11166.
  • Build a finetuning command: use scripts/build_finetune_command.py, then verify ImageNet-style scalar-label TFRecords, class_num=1000, and a compatible checkpoint.
  • Inspect the model graph: read references/model-reference.md, then run scripts/resnet_graph_smoke.py --repo-root <checkout> inside a TensorFlow 1.x environment if a local checkout is available.
  • Diagnose failures: start with references/troubleshooting.md. Many issues are legacy TensorFlow/Python compatibility rather than user data mistakes.

Do not overclaim

  • The public code is single-node and practical training is GPU/long-running. Do not present a CPU smoke or command render as evidence that full ML-Images pretraining was reproduced.
  • The README notes that the authors' real ML-Images training used an internal distributed framework that is not released. The generated skill can guide the public single-node code only.
  • Benchmark numbers and checkpoint links are provenance facts from the public README. Do not claim they were remeasured unless a separate experiment did so.
我的收藏