技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
distributed-execution【数据与研究】Choose and debug img2dataset distributed execution, throughput tuning, logging, and large-scale operations.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when an img2dataset task depends on execution scale rather than on URL-table schema, image transforms, or core downloader options: choosing a distributor, preparing PySpark or Ray, tuning throughput, reading speed/status logs, enabling W&B, or debugging slow and failed distributed shards.
--distributor to use. The supported values are exactly multiprocessing, pyspark, and ray.processes_count, thread_count, subjob_size, number_sample_per_shard, or max_shard_retry for a large run.../core-download/SKILL.md.../input-output-formats/SKILL.md.skip_reencode, disable_all_reencoding, and bbox blurring: route to ../image-processing/SKILL.md.python scripts/check_distributed_backends.py --json from this sub-skill directory.references/distributed-execution.md.processes_count and thread_count; size PySpark dispatch with subjob_size; choose a retry policy with max_shard_retry and a restartable output folder.webdataset for large datasets unless another sibling sub-skill's format contract requires a different output format.--enable_wandb=True adds W&B metrics/status tables when account or anonymous logging is acceptable.references/performance-tuning.md first, then references/troubleshooting.md for backend-specific errors.pyspark and a Java runtime. If no active SparkSession exists, img2dataset creates a local session with local[processes_count] and stops it afterward; if a session already exists, img2dataset uses it and leaves ownership to the caller.--distributor ray.local_mode=True guidance; use current ray.init(...) patterns such as ray.init(num_cpus=1) for a short local smoke or ray.init(address="auto") for a cluster.max_shard_retry is an end-of-run shard retry loop for multiprocessing and PySpark. The current Ray path does not apply that retry loop.references/distributed-execution.md — mode decision tree, PySpark/Ray/SparkSession behavior, self-contained command templates.references/performance-tuning.md — process/thread/shard sizing, bottleneck diagnosis, W&B/stat usage, filesystem and benchmark guidance.references/troubleshooting.md — missing optional dependencies, Java/Spark/Ray/W&B/DNS/filesystem failure modes.scripts/pyspark_download_template.py — dry-run-first PySpark download template; only imports Spark/img2dataset for --run or --check-backends.scripts/check_distributed_backends.py — safe optional-backend checker for PySpark, Java, Ray, TensorFlow/TFIO, W&B, and fsspec.