From ba7b310c024f31f654d64d13f95ae009b33015bc Mon Sep 17 00:00:00 2001 From: Clemence Herny Date: Wed, 24 Jan 2024 09:24:03 +0000 Subject: [PATCH] change <> path/folder in lower cases --- README.md | 4 ++-- config/config_det.yaml | 4 ++-- scripts/README.md | 26 +++++++++++++------------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index cf5ec56..97b952b 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ $ stdl-objdet assess_detections config/config_trne.yaml ```bash $ mkdir -p input/input_det/logs -$ cp output/output_trne/logs/ input/input_det/logs +$ cp output/output_trne/logs/ input/input_det/logs $ python scripts/prepare_data.py config/config_det.yaml ``` @@ -266,7 +266,7 @@ Copy the detections files `oth_detections_at_0dot3_threshold_year-{year}_{filter ```bash $ mkdir input/input_track -$ cp output/output_det/ input/input_track +$ cp output/output_det/ input/input_track $ python scripts/track_detections.py config/config_track.yaml $ python scripts/plots.py config/config_track.yaml ``` diff --git a/config/config_det.yaml b/config/config_det.yaml index 9cd8c75..64403ef 100644 --- a/config/config_det.yaml +++ b/config/config_det.yaml @@ -6,7 +6,7 @@ prepare_data.py: srs: "EPSG:2056" # Projection of the input file datasets: - shapefile: ./input/input_det/AoI/ + shapefile: ./input/input_det/AoI/ output_folder: ./output/output_det zoom_level: 16 # z, keep between 15 and 18 @@ -57,7 +57,7 @@ make_detections.py: filter_detections.py: year: detections: ./output/output_det/oth_detections_at_0dot3_threshold.gpkg - shapefile: ./input/input_det/AoI/ + shapefile: ./input/input_det/AoI/ dem: ./input/input_det/DEM/switzerland_dem_EPSG2056.tif elevation: 1200.0 # m, altitude threshold score: 0.95 # detection score (from 0 to 1) provided by detectron2 diff --git a/scripts/README.md b/scripts/README.md index edd01df..6adf9d9 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -21,8 +21,8 @@ It works along the config files `config_trne.yaml` and `config_det.yaml`. Input prepare_data.py: srs: datasets: - shapefile: ./input/ - output_folder: ./output/ + shapefile: ./input/ + output_folder: ./output/ zoom_level: ``` @@ -30,11 +30,11 @@ The **srs** key provides the geographic framework to ensure that all the input d The labels (ground truth) polygons are used for the **Training and evaluation** workflow: - = tlm-hr-trn-topo.shp + = tlm-hr-trn-topo.shp A region of Switzerland polygon is used for the **Detection** workflow: - = swissimage_footprint_.shp + = swissimage_footprint_.shp The outputs are `tiles.geojson` corresponding to shapefiles of the tiles obtained for the given AoI and `labels.geojson` corresponding to shapefiles of the input labels. @@ -67,12 +67,12 @@ Input and output paths of the config file must be adapted if necessary. The scri filter_detections.py: year: input: ./output/output_det/oth_detections_at__threshold.gpkg - shapefile: ./input/input_det/ - dem: ./input/input_det/ - elevation: - score: - distance: - area: + shapefile: ./input/input_det/ + dem: ./input/input_det/ + elevation: + score: + distance: + area: output: ./output/output_det/oth_detections_at_0dot*_threshold_year-{year}_score-{score}_area-{area}_elevation-{elevation}_distance-{distance}.geojson ``` @@ -98,7 +98,7 @@ filter_detections.py: The script can be run by executing the following command: ```bash -$ python /scripts/filter_detections.py /config/config_det.yaml +$ python /scripts/filter_detections.py /config/config_det.yaml ``` ## Track detections @@ -128,7 +128,7 @@ Input and output paths of the config file must be adapted if necessary. The scri The script can be run by executing the following command: ```bash -$ python /scripts/track_detections.py /config/config_track.yaml +$ python /scripts/track_detections.py /scripts/filter_detections.py /config/config_track.yaml +$ python /scripts/filter_detections.py /config/config_track.yaml ```