name: inference-evaluation
description: "Run checkpoint-backed LaneNet inference, TuSimple batch
evaluation, and postprocess troubleshooting."
metadata:
disco-role: operating
disable-model-invocation: true
license: Apache 2.0
Inference and Evaluation
Use this sub-skill when the task is to run or debug LaneNet checkpoint inference, TuSimple-style batch evaluation, DBSCAN/lane-fit postprocessing, or output interpretation.
Route here for
- Single-image inference from a TensorFlow checkpoint using the image preprocessing and restore behavior expected by LaneNet.
- Batch inference/evaluation over a TuSimple
test_set/clips image tree and saving overlay outputs.
- Diagnosing empty or black lane masks, DBSCAN clustering failures, missing remap files, checkpoint restore mismatches, and headless plotting issues.
- Understanding binary segmentation, instance embedding, clustered mask, fitted lane parameters, and saved overlay outputs.
Route elsewhere
- Dataset conversion, list files, masks, or TFRecord generation: data-preparation.
- Training, checkpoint creation, TensorBoard, or trainer configuration: training.
- Frozen TensorFlow PB or MNN/mobile export: model-export.
Required context before acting
- Confirm the user has a LaneNet repo checkout or equivalent source tree with
lanenet_model/, local_utils/, config/, and the remap file available from the run working directory.
- Confirm a TensorFlow 1.x-compatible Python environment. TensorFlow 1.15 with CUDA is verified for this skill; CPU can run inference/evaluation functionally but is slower.
- Confirm the checkpoint path. Pretrained weights are not bundled. The checkpoint argument should normally be the TensorFlow checkpoint base path, not the
.index or .data-* shard.
- For custom images, ask whether TuSimple lane fitting is appropriate. If not, use
--with_lane_fit 0 and inspect raw clustered masks before tuning fitted curves.
Bundled references and scripts
Operating rules
- Do not imply pretrained weights ship with the skill or the repo checkout; obtain a checkpoint from training or a user-supplied pretrained download.
- Prefer noninteractive saving in automation. Use display only when the environment has a working GUI and blocking windows are acceptable.
- Keep inference/evaluation runs from the repository root or pass
--repo_root to the bundled scripts so repo-relative config and remap loading resolve correctly.
- For custom data, first validate preprocessing, checkpoint compatibility, and binary segmentation before changing DBSCAN or lane-fit settings.