Loading...
Loading...
Four-step image referring-expression pipeline: turns images plus KITTI bounding-box labels into region descriptions, scene captions, grounded referring expressions, and (optionally) verified expressions via VLM distillation. Use when the user wants to generate referring-expression annotations from images with KITTI labels, build region descriptions, produce grouped grounding phrases tied to bboxes, run a double-check verification pass on grounding expressions, auto-label traffic / scene images for referring datasets, or run the image_referring_expression pipeline. Triggers include 'referring expression', 'region description', 'KITTI labels', 'spatial relationship annotation', 'auto-label image referring expression', 'image_referring_expression'.
npx skill4agent add nvidia/skills tao-generate-referring-expressions(image, KITTI labels)annotations.jsonlStep 0: Region expression ──┐
├──▶ Step 2: Grounding expression ──▶ [Step 3: Double check]
Step 1: Image caption ──────┘ (optional)bbox_2dtypecolordescriptionstep_<N>_*/annotations.jsonlworkflow.force_reprocess: truedata.image_dir.jpg.jpeg.pngdata.kitti_label_dir.txt<type> <truncated> <occluded> <alpha> <bbox_left> <bbox_top> <bbox_right> <bbox_bottom> ...annotations.jsonldata.input_annotations_jsonldata.image_dirdata.kitti_label_dirvlm.backend: "gemini"GOOGLE_API_KEYvlm.gemini.api_keyhttps://inference-api.nvidia.com/v1vlm.backend: "openai"base_urlmodel_nameapi_keybase_urlmodel_nameapi_keyvlm.backend: "openai"skills/applications/tao-run-inference-serviceskills/applications/tao-run-inference-service/references/service.yamlvalid_network_arch_config_basenamesbase_urlmodel_nameapi_keyvlm.backend: "openai"base_urlmodel_nameapi_keyvlm.backend: "openai"base_urlmodel_nameapi_keyvlm.backend: "openai"vlm.backend: "openai"base_urlmodel_nameapi_key["0", "1", "2", "3"]["0", "2", "3"]["0", "1", "2"]jsonllegacy.txt.stepNbothauto_labelauto_label generate -e /path/to/spec.yaml \
results_dir=/results \
image_referring_expression.data.image_dir=/data/images \
image_referring_expression.data.kitti_label_dir=/data/labels \
image_referring_expression.vlm.gemini.api_key=$GOOGLE_API_KEYauto_label default_specs results_dir=/results module_name=auto_labelautolabel_type: "image_referring_expression"step_0_region_expr/annotations.jsonlstep_2_grounding_expr/annotations.jsonlstep_3_double_check/annotations.jsonlgemini-2.5-promedia_resolutionmax_output_tokensworkflow.force_reprocess=true| Field | Default | Description |
|---|---|---|
| | Which steps to execute ( |
| | Parallel threads per step (watch API rate limits) |
| | Ignore cached per-step outputs and reprocess from scratch |
| | |
| | |
| required | Directory of input images ( |
| required (unless resuming) | Directory of KITTI-format |
| | Optional pre-seeded |
data.image_dirdata.kitti_label_dir<stem>.txtwidthheightseed_annotations.jsonlresults_dir/data.input_annotations_jsonl{"image_id", "image_path", "width", "height", "kitti_bboxes": [...]}results_dir/seed_annotations.jsonlinput_annotations_jsonlstep_0_region_expr/annotations.jsonlregions[]bboxbbox_2dtypecolordescriptionstep_1_image_caption/annotations.jsonlcaptionstep_2_grounding_expr/annotations.jsonlexpressions[]{text, instances: [{bbox: [x1,y1,x2,y2]}]}step_3_double_check/annotations.jsonlresults_dir/annotations.jsonlworkflow.output_format"legacy""both"step_<N>_*/labels/<stem>.txt.stepNnvcr.io/nvidia/tao/tao-toolkit:6.26.3-pyt