技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
tensorflow-yolov3【数据与研究】Guides legacy TensorFlow 1.x YOLOv3 workflows for data preparation, checkpoint conversion, frozen-graph inference, training, and Pascal VOC mAP evaluation.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a task mentions YunYang1994/tensorflow-yolov3, TensorFlow 1.x YOLOv3, core.yolov3.YOLOV3, yolov3_coco.pb, COCO checkpoint conversion, VOC annotation lists, train.py, evaluate.py, or the bundled mAP workflow.
This is a legacy script-style repository, not an installable Python package. Most source scripts assume they are run from a YOLOv3 working directory where relative paths like ./data/classes/coco.names, ./data/anchors/basline_anchors.txt, ./checkpoint/..., and ./mAP/... exist.
Read repository provenance before deciding whether this skill is current for a checkout.
Read environment notes before installing dependencies or debugging TensorFlow import failures.
Run the bundled environment checker from the runtime skill root when a user has a local working copy:
python scripts/check_environment.py --repo-root <repo-root>
Route the user request to the narrowest sub-skill below.
--train_from_coco, freezing yolov3_coco.pb, output tensor names, and known Darknet conversion script bugs..pb image/video/camera inference, tensor contract checks, preprocessing, postprocessing, NMS, and empty-detection troubleshooting.core/config.py training fields, Dataset, two-stage training, logs/checkpoints, COCO initialization, and long-run/GPU/data risk checks.evaluate.py, generated mAP/ground-truth and mAP/predicted files, Pascal VOC AP/mAP formats, and isolated mAP fixture checks.For a local working copy, use a TensorFlow 1.x-capable environment and run from the working copy root:
python - <<'PY'
import tensorflow as tf
from core.yolov3 import YOLOV3
tf.reset_default_graph()
input_data = tf.placeholder(dtype=tf.float32, shape=(1, 416, 416, 3), name='input_data')
model = YOLOV3(input_data, trainable=False)
print(model.pred_sbbox.shape.as_list()) # [1, 52, 52, 3, 85] for COCO classes
print(model.pred_mbbox.shape.as_list()) # [1, 26, 26, 3, 85]
print(model.pred_lbbox.shape.as_list()) # [1, 13, 13, 3, 85]
PY
If that import fails before the graph is built, read environment and troubleshooting first. A common cause is importing core.utils outside a working directory where ./data/classes/coco.names exists.
The checkout used for this skill did not include full checkpoint shards, a frozen PB, or complete VOC image datasets. The generated guidance was verified with source inspection, TensorFlow 1.x CPU graph construction, and safe helper/script checks. Full training, real inference, and checkpoint conversion still require user-supplied model/data artifacts and a compatible TensorFlow 1.x runtime.