技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
torchgeo【数据与研究】Use for TorchGeo geospatial deep learning work: datasets, samplers, data modules, transforms, pre-trained models, Lightning tasks, and contribution/testing workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when working with the torchgeo Python package, a PyTorch domain library for geospatial and remote-sensing machine learning. The skill is grounded in the TorchGeo repository at commit 51a30d67f28794090f88a59b91deeadf91de1878 and is intended for later Researcher sessions; do not assume the original checkout is available.
GeoDataset/NonGeoDataset, raster/vector IO, sample dictionaries, collate functions, patch samplers, ROI/TOI selection, or fake dataset fixtures: read datasets-and-samplers.DataModule usage, torchgeo CLI/JSONArgParse configs, task classes for classification, segmentation, detection, regression, self-supervised learning, or batch augmentation handoff: read datamodules-and-tasks.get_model, get_weight, list_models, timm/SMP integration, spectral indices, SAR/color/spatial/temporal transforms, or optional model dependencies: read models-and-transforms.GeoDataset instances are indexed by spatiotemporal slices and can be composed with & for intersection and | for union.NonGeoDataset instances behave like torchvision-style benchmark datasets and are indexed by integer sample id.image, mask, label, bbox_xyxy, metadata keys such as crs/bounds, and task-specific keys. Do not assume a fixed schema without reading the dataset class or test fixture.stack_samples for geospatial sample dictionaries and task-specific collate helpers such as detection collation where the datamodule/test uses them.GeoSlice windows; RandomPatchSampler is for stochastic training chips and Grid/GriddedPatchSampler style samplers are for deterministic tiling/evaluation.torchgeo command line entry point is backed by torchgeo.main:main and Lightning/JSONArgParse. Prefer a config file for reproducible task/datamodule/trainer runs.rasterio, pyproj, shapely, geopandas) and ML dependencies (torch, torchvision, lightning, kornia, timm, segmentation-models-pytorch). Optional dataset/model extras are not always installed.tests/data/<dataset>/.scripts/probe_torchgeo_install.py: inspect an installed TorchGeo environment without downloading data.scripts/minimal_geodataset_smoke.py: create a tiny in-memory GeoDataset/sampler smoke check when dependencies are installed.