技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
core-download【数据与研究】Build, validate, and troubleshoot img2dataset CLI/API download runs with safe core options, hashes, retries, SSL, robots handling, and incremental recovery.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a user asks how to start, validate, restart, or debug an img2dataset run through the public Python API (img2dataset.download) or the img2dataset console command.
Read this sub-skill for prompts about:
download(...) call or img2dataset command.thread_count, processes_count, timeout, retries, max_shard_retry, enable_wandb, and incremental_mode.incremental, overwrite, and extend.X-Robots-Tag exclusions, user_agent_token, and opt-out directive policy.Verify the public import in the user's active Python environment:
python - <<'PY'
import inspect
import img2dataset
from img2dataset import download
print("img2dataset import ok")
print(inspect.signature(download))
PY
Verify the CLI help. The command uses Fire; for full function help prefer:
img2dataset -- --help
If the console script is not on PATH, try:
python -m img2dataset.main -- --help
For a no-network smoke path, run the bundled tiny local HTTP demo from this sub-skill directory:
python scripts/tiny_download_demo.py --dry-run
python scripts/tiny_download_demo.py --output-folder tiny-output --output-format files
input-output-formats.processes_count=1, modest thread_count, enable_wandb=False, retries=1, and max_shard_retry=1. Route output-format trade-offs to input-output-formats and distributed tuning to distributed-execution.caption_col when captions exist, extract_exif=True unless EXIF extraction is too costly, compute_hash as sha256 by default, and verify_hash only when the input table has trusted raw-image hashes.X-Robots-Tag opt-out directives unless the user has permission to override; use ignore_ssl_certificate=True only as a last resort for trusted sources.*_stats.json files for status, error_message, success counts, failed downloads, failed resizes, and hash-mismatch patterns.number_sample_per_shard under incremental mode. Use overwrite only to delete and rebuild the output, and extend only to append new shard ids intentionally.input-output-formats for input-format matrices, schema/column mapping, metadata schema details, writer layouts, shard naming details, save_additional_columns deep dives, and output-format audits.image-processing for resize modes, encoding quality/format, interpolation, skip_reencode, disable_all_reencoding, image filters, and bounding-box blur.distributed-execution for PySpark, Ray, multiprocessing performance tuning, W&B performance logging, DNS/filesystem throughput, cluster setup, and subjob_size tuning.X-Robots-Tag filtering or SSL verification without stating the policy/security trade-off.overwrite on an existing output folder unless the user explicitly wants recursive deletion.