MCPcopy Index your code
hub / github.com/SonwYang/SLP-cropland-parcel-extraction

github.com/SonwYang/SLP-cropland-parcel-extraction @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
181 symbols 487 edges 12 files 38 documented · 21%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Introduction

This repo is the official implementation of our paper: Extraction of cropland field parcels with High-Resolution Remote Sensing Images using multi-task learning. The prediction process is shown in figure below.

  • avatar

Data and checkpoint

Google cloud: https://drive.google.com/drive/folders/1f1jZwUCS4892bkne7Ob1iWmcFhj8aDIZ?usp=sharing

Denmark datastet

link:https://pan.baidu.com/s/1l9W0ekFdvyj8FhKA44CNuQ pw:qazj

How to use

  1. To obtain the cropland parcel(without using patch refinement)

bash python main.py --img ${image_path} --weights ${weights_path} --shp ${the_path_of_output_in_shapefile}

  1. The next step is repair the break line

bash python PatchRefinement.py --lineDN ${lineDN_path} --img ${image_path} --weights ${weights_path} PS:The training code can be found here.

  1. In final, merge the results of the two steps.

bash python postprocess.py --img ${image_path} --shp ${the_path_of_output_in_shapefile}

Training code

The code works a bit cluttered and without comments, download it if you need. link:https://pan.baidu.com/s/1AKwMW9-0t8MA6LoEzgt6VA?pwd=kqau pwd:kqau

Core symbols most depended-on inside this repo

unet18
called by 14
models/unetresnet.py
get_norm_layer
called by 8
models/SOED.py
_make_layer
called by 4
Nets.py
_conv_block
called by 4
models/SOED.py
_conv_block
called by 4
models/SOED.py
_conv_block
called by 4
models/SOED.py
_conv_block
called by 4
models/SOED.py
_conv_block
called by 4
models/SOED.py

Shape

Method 81
Function 70
Class 30

Languages

Python100%

Modules by API surface

models/SOED.py48 symbols
Nets.py31 symbols
utils/toolbox.py26 symbols
models/unetresnet.py15 symbols
Redundancy_predict.py15 symbols
Redundancy_predict_segmentation.py14 symbols
PatchRefinement.py13 symbols
dataset.py9 symbols
utils/image2graph.py5 symbols
postProcess.py2 symbols
main.py2 symbols
config_eval.py1 symbols

For agents

$ claude mcp add SLP-cropland-parcel-extraction \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact