技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
geoseg【数据与研究】Guide GeoSeg remote-sensing semantic-segmentation data preparation, model/config selection, supervised training, benchmark evaluation, UAVid inference, and huge-image prediction.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this operating graph for the WangLibo1995/GeoSeg toolbox: a PyTorch and
PyTorch Lightning toolkit for semantic segmentation of remote-sensing imagery.
It covers four connected routes without assuming that datasets, pretrained
weights, or checkpoints are present.
For a request spanning routes, use them in this order: data preparation → model/config → training or evaluation/inference. Do not treat preprocessing success as evidence that a model checkpoint or CUDA inference path works.
GeoSeg has no pyproject.toml, setup.py, or console entry-point metadata in
the captured repository. Use a checkout of the project as the source tree and
run the bundled wrappers with an explicit --repo-root; do not assume the
current directory is the checkout. The repository README documents Python 3.8,
CUDA-oriented PyTorch installation, requirements.txt, and optional
causal-conv1d/mamba-ssm for PyramidMamba. The verified core inspection stack
used torch 2.0.1+cu118, torchvision 0.15.2+cu118, pytorch-lightning 2.3.0,
timm 0.9.16, albumentations 1.3.1, ttach, catalyst for legacy inference
imports, and scikit-image for huge-image imports.
Start with a private environment and install a CUDA-compatible PyTorch wheel
for actual training/inference. The root requirements file contains both
lightning and pytorch-lightning; source code imports pytorch_lightning.
If the lightning meta-package conflicts with its resolved pydantic stack,
keep the source-used pytorch-lightning path and record the omitted redundant
package rather than changing source imports. PyramidMamba additionally needs
mamba_ssm; treat that backend as optional until it is installed and smoked.
Run the bundled diagnostics before a workflow when the environment is unclear:
python <path-to-this-skill>/scripts/check_env.py
python <path-to-this-skill>/scripts/metric_smoke.py
python <path-to-this-skill>/scripts/run_geoseg_entrypoint.py \
--wrapper-help
check_env.py verifies core imports and a tiny CUDA allocation without
importing data-bound configs; metric_smoke.py exercises the metric equations;
run_geoseg_entrypoint.py forwards a supported native entry point from an
explicit user checkout. These helpers do not download data, weights, or
checkpoints.
The source snapshot had no datasets, model weights, native tests, notebooks, or examples beyond the README, configs, tools, and root scripts. Core imports, API signatures, and a CUDA allocation were inspected in an isolated Python 3.8 runtime; LoveDA's data-bound import and PyramidMamba's optional extension remain explicit prerequisites. Full native train/evaluation/inference runs are not claimed until real data, compatible checkpoints, and CUDA execution are available.