-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/NRCan/geo-deep-learning
- Loading branch information
Showing
99 changed files
with
4,011 additions
and
3,112 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
# @package _global_ | ||
augmentation: | ||
# Normalization: parameters for finetuning. For example: | ||
# -> mean: [0.485, 0.456, 0.406] | ||
# -> std: std: [0.229, 0.224, 0.225]) | ||
normalization: | ||
mean: | ||
std: | ||
scale_data: [0, 1] | ||
# Rotate limit: the upper and lower limits for data rotation. | ||
rotate_limit: 45 | ||
# Rotate probability: the probability for data rotation. | ||
rotate_prob: 0.5 | ||
# Horizontal flip: the probability for data horizontal flip. | ||
hflip_prob: 0.5 | ||
# Geometric augmentations | ||
rotate_limit: 45 # Rotate limit: the upper and lower limits for data rotation. | ||
rotate_prob: 0.5 # Rotate probability: the probability for data rotation. | ||
hflip_prob: 0.5 # Horizontal flip: the probability for data horizontal flip. | ||
crop_size: # size to crop data (image and labels samples) during training | ||
|
||
# Radiometric augmentations | ||
noise: # Standard deviation of Gaussian Noise | ||
# Range of the random percentile: | ||
# the range in which a random percentile value will | ||
# be chosen to trim values. This value applies to | ||
# both left and right sides of the raster's histogram. | ||
# the range in which a random percentile value will be chosen to trim values. | ||
# This value applies to both left and right sides of the raster's histogram. | ||
random_radiom_trim_range: [ 0.1, 2.0 ] | ||
brightness_contrast_range: # Not yet implemented | ||
noise: # Standard deviation of Gaussian Noise (optional) | ||
|
||
# Augmentations done immediately before conversion to torch tensor | ||
normalization: # Normalization: parameters for finetuning. See examples below: | ||
mean: # -> mean: [0.485, 0.456, 0.406] | ||
std: # -> std: std: [0.229, 0.224, 0.225]) | ||
scale_data: [ 0, 1 ] # Min and max value to scale values of input imagery | ||
|
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,26 @@ | ||
# @package _global_ | ||
dataset: | ||
# dataset-wide | ||
name: | ||
input_dim: 32 | ||
overlap: | ||
use_stratification: False | ||
train_val_percent: {'trn':0.7, 'val':0.3, 'tst':0} | ||
raw_data_csv: tests/sampling/sampling_segmentation_multiclass_ci.csv | ||
raw_data_dir: ${general.raw_data_dir} | ||
|
||
# imagery | ||
bands: [R, G, B] | ||
|
||
# ground truth | ||
attribute_field: properties/Quatreclasses | ||
attribute_values: [1,2,3,4] | ||
min_annotated_percent: | ||
class_name: # will follow in the next version | ||
classes_dict: {'WAER':1, 'FORE':2, 'ROAI':3, 'BUIL':4} | ||
class_weights: | ||
ignore_index: 255 | ||
|
||
# outputs | ||
sample_data_dir: ${general.sample_data_dir} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# @package _global_ | ||
inference: | ||
img_dir_or_csv_file: tests/inference/inference_segmentation_ci.csv | ||
state_dict_path: ${general.save_weights_dir}/checkpoint.pth.tar | ||
chunk_size: # if empty, will be calculated automatically from max_pix_per_mb_gpu | ||
# Maximum number of pixels each Mb of GPU Ram to allow. E.g. if GPU has 1000 Mb of Ram and this parameter is set to | ||
# 10, chunk_size will be set to sqrt(1000 * 10) = 100. | ||
max_pix_per_mb_gpu: 25 | ||
|
||
# GPU parameters | ||
gpu: ${training.num_gpus} | ||
max_used_perc: ${training.max_used_perc} # If RAM usage of detected GPU exceeds this percentage, it will be ignored | ||
max_used_ram: ${training.max_used_ram} # If GPU's usage exceeds this percentage, it will be ignored | ||
|
||
# Post-processing | ||
ras2vec: False # if True, a polygonized version of the inference (.gpkg) will be created with rasterio tools |
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
# @package _global_ | ||
inference: | ||
img_dir_or_csv_file: tests/sampling/sampling_segmentation_multiclass_ci.csv | ||
state_dict_path: ${general.save_weights_dir}/checkpoint.pth.tar | ||
chunk_size: # if empty, will be calculated automatically from max_pix_per_mb_gpu | ||
# Maximum number of pixels each Mb of GPU Ram to allow. E.g. if GPU has 1000 Mb of Ram and this parameter is set to | ||
# 10, chunk_size will be set to sqrt(1000 * 10) = 100. | ||
max_pix_per_mb_gpu: 25 | ||
|
||
# GPU parameters | ||
gpu: ${training.num_gpus} | ||
max_used_perc: ${training.max_used_perc} # If RAM usage of detected GPU exceeds this percentage, it will be ignored | ||
max_used_ram: ${training.max_used_ram} # If GPU's usage exceeds this percentage, it will be ignored | ||
|
||
# Post-processing | ||
ras2vec: False # if True, a polygonized version of the inference (.gpkg) will be created with rasterio tools |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.