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

image-processing

image-processing

【数据与研究】Choose and debug img2dataset resizing, encoding, filtering, and bounding-box blurring.

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

技能说明

GitHub

name: image-processing description: "Choose and debug img2dataset resizing, encoding, filtering, and bounding-box blurring." disable-model-invocation: true metadata: disco-role: operating license: MIT

Image Processing

Use this sub-skill when the task is about how img2dataset changes image geometry or pixels, especially Resizer and BoundingBoxBlurrer.

Route here for

  • Choosing a resize mode and predicting the output dimensions: no, border, keep_ratio, keep_ratio_largest, center_crop.
  • Picking interpolation strings, codec settings, and blur behavior.
  • Explaining skip_reencode, disable_all_reencoding, alpha matting, and validation filters.
  • Debugging bbox blur input from bbox_col or direct BoundingBoxBlurrer usage.

Do not handle here

  • Input tables, column mapping, metadata layout, or writer/file format choices: route to input-output-formats.
  • URL downloading, retries, hashing, SSL, incremental runs, and command orchestration: route to core-download.
  • Multiprocessing, PySpark, Ray, W&B, shard sizing, or throughput tuning: route to distributed-execution.

Operating workflow

  1. Check image options for the exact mode, codec, and filter semantics.
  2. Use troubleshooting to map errors to the relevant resize, encode, or bbox cause.
  3. If you need a quick repro, run scripts/probe_resize_options.py on a tiny synthetic image.
  4. For bbox blur cases, confirm the coordinates are normalized [x_min, y_min, x_max, y_max] values in [0, 1] and that the final dimensions still come from the chosen resize mode.

Bundled helper

Start with image options and troubleshooting when the user asks why a sample changed shape, codec, or blur coverage.

我的收藏