-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy argparse reading from inference.py (GDL)
add qgis_models
- Loading branch information
Showing
15 changed files
with
5,841 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Deep learning configuration file ------------------------------------------------ | ||
# This config is to use massachusetts_buildings image out of the box WITH ONLY MANDATORY PARAMETERS. | ||
# For that, unzip the file data/massachusetts_buildings.zip before running images_to_samples.py or other command. | ||
# Five sections : | ||
# 1) Global parameters; those are re-used amongst the next three operations (sampling, training and inference) | ||
# 2) Inference parameters | ||
# 3) Post-processing parameters | ||
|
||
# Global parameters | ||
global: | ||
task: 'segmentation' | ||
number_of_bands: 4 # Number of bands in input imagery | ||
# Set to True if the first three channels of imagery are blue, green, red. Set to False if Red, Green, Blue | ||
BGR_to_RGB: True | ||
classes: | ||
1: 'buildings' | ||
|
||
# Inference parameters; used in inference.py -------- | ||
inference: | ||
img_dir_or_csv_file: #/path/to/img_dir_or_csv_file | ||
state_dict_path: # /path/to/model/weights/for/inference/checkpoint.pth.tar | ||
|
||
# Post-processing parameters; used in post-process.py | ||
post-processing: | ||
r2vect_cellsize_resamp: 0 # (int) Resample raster before vectorization with this amount of pixels. Default:0 | ||
removeholesunder: 4 # (int) Remove holes under this number in all classes | ||
simptol: 0.75 # (float) tolerance for simplification (Douglas-Peucker). Does not apply to 'buildings' (Visvalingam) | ||
redbenddiamtol: 3 # (int) tolerance for reduce bend algorithm. Applies to all classes | ||
buildings: # buildings-specific parameters | ||
recttol: 0.80 # if 1, will exclude all buildings that are not rectangles | ||
compacttol: 0.85 # if 1, will exclude all buildings that are not a circle | ||
patterntol: 0.75 # if 1, will exclude all buildings that don't fit perfectly under one of the hardcoded patterns | ||
orthogonalize_ang_thresh: 20 # max angle formed by 3 vertices that will be orthogonalized (to 90° or 180°) | ||
|
||
to_cog: True # (bool) Convert raster inference to cog (will compress with LZW) | ||
keep_non_cog: False # (bool) if False, will delete inferences after they are converted to cog (only applies when to_cog=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.