AGENT SKILL

robosat

Guides RoboSat aerial and satellite imagery segmentation workflows with Slippy Map data preparation, U-Net model lifecycle, feature post-processing, CLI usage, configs, and legacy environment troubleshooting.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
robosat
license
MIT
metadata
{ "disco-role": "operating" }
description
Guides RoboSat aerial and satellite imagery segmentation workflows with Slippy Map data preparation, U-Net model lifecycle, feature post-processing, CLI usage, configs, and legacy environment troubleshooting.
disable-model-invocation
true

02 资源文件 8

03 SKILL.md 正文

RoboSat

Use this repo skill when a task involves RoboSat, the robosat Python package, the rs CLI, aerial/satellite imagery semantic segmentation, Slippy Map tile trees, OSM-derived feature masks, U-Net checkpoints, probability PNGs, or GeoJSON feature extraction.

RoboSat is a legacy Mapbox package for feature extraction from aerial and satellite imagery. It organizes data as Slippy Map tiles, trains a PyTorch U-Net-style segmentation model, predicts binary foreground probabilities, and post-processes masks into GeoJSON features.

Start here

  1. Read installation and environment when installing, importing, checking the CLI, choosing CPU/CUDA, or debugging old dependency stacks.
  2. Read CLI reference to route an rs command or build a command line.
  3. Read configuration before editing dataset/model TOML files.
  4. Use troubleshooting for cross-cutting install, CRS, tile layout, backend, token, or binary-class issues.
  5. Use repo provenance before refreshing this skill against a newer checkout.

Route by task

User task Read
Extract OSM buildings/roads/parking, create tile CSVs, download imagery, rasterize labels, validate tile trees, compute class weights, or subset image/label tiles data-preparation
Train or resume U-Net models, export ONNX, run batch prediction, serve mask tiles, inspect losses/metrics/transforms/checkpoints, or decide CPU vs CUDA model-lifecycle
Convert probability PNGs to masks, extract parking GeoJSON, merge/dedupe predicted polygons, compare image/label/mask mosaics, or validate vector outputs feature-postprocessing

Minimal environment check

After installing RoboSat in an environment, prefer the installed package entry points rather than a source-checkout wrapper:

python -c "import robosat; print('robosat import ok')"
rs --help
python -m robosat.tools --help
python scripts/check_robosat_env.py --check-cli

The bundled check_robosat_env.py checks imports, rtree/libspatialindex, pyproj ESRI CRS lookup, optional torch/CUDA state, and CLI help. Use create_config_templates.py to write CPU-safe dataset/model TOML templates.

Important constraints

  • RoboSat is legacy Python-era software. Python 3.6 plus the documented runtime dependency family is the safest source-install target; Docker CPU/GPU images were the original operational path.
  • GPU is optional in this skill. This skill generation verified CPU import, CLI help, and a CPU U-Net smoke only; it does not claim CUDA training/prediction verification.
  • The default prediction and post-processing path is binary foreground/background. Several helpers assume two classes and parking-specific post-processing.
  • Runtime instructions in this skill are self-contained; do not require the original repository checkout when using the installed package.

Common pipeline

  1. Data preparation: OSM feature extraction -> tile cover CSV -> imagery download -> rasterized masks -> weights.
  2. Model lifecycle: training or checkpoint resume -> optional ONNX export -> prediction probability tiles or on-demand serving.
  3. Feature post-processing: probability tiles -> mask tiles -> parking GeoJSON -> merge/dedupe -> visual comparison.

Use the sub-skill routes above for concrete commands, APIs, data formats, validation scripts, and troubleshooting.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351