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
- 参考文档references/cli-reference.md4.5 KB
- 参考文档references/configuration.md3.0 KB
- 参考文档references/installation-and-environment.md4.3 KB
- 参考文档references/repo-provenance.md2.0 KB
- 参考文档references/repo-routing-metadata.json484 B
- 参考文档references/troubleshooting.md4.9 KB
- 脚本scripts/check_robosat_env.py5.1 KB
- 脚本scripts/create_config_templates.py3.5 KB
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
- Read installation and environment when installing, importing, checking the CLI, choosing CPU/CUDA, or debugging old dependency stacks.
- Read CLI reference to route an
rscommand or build a command line. - Read configuration before editing dataset/model TOML files.
- Use troubleshooting for cross-cutting install, CRS, tile layout, backend, token, or binary-class issues.
- 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
- Data preparation: OSM feature extraction -> tile cover CSV -> imagery download -> rasterized masks -> weights.
- Model lifecycle: training or checkpoint resume -> optional ONNX export -> prediction probability tiles or on-demand serving.
- 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
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.
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.
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.
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.
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.
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).