Skip to content

Commit

Permalink
Remove 3 from python command lines
Browse files Browse the repository at this point in the history
  • Loading branch information
cleherny committed Jan 11, 2024
1 parent 2ae1245 commit f7fafbd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ The `proj-dqry` repository contains scripts to prepare and post-process the data

The description of each script can be found [here](./scripts/README.md).

Object detection is performed with tools present in the `object-detector` git repository. A description of the scripts used is presented [here](https://github.com/swiss-territorial-data-lab/object-detector).

Object detection is performed with tools present in the [`object-detector`](https://github.com/swiss-territorial-data-lab/object-detector) git repository.

## Workflow instructions

Expand All @@ -228,7 +227,7 @@ The workflow can be executed by running the following list of actions and comman
**Training and evaluation**:

```bash
$ python3 scripts/prepare_data.py config/config_trne.yaml
$ python scripts/prepare_data.py config/config_trne.yaml
$ stdl-objdet generate_tilesets config/config_trne.yaml
$ stdl-objdet train_model config/config_trne.yaml
$ tensorboard --logdir output/output_trne/logs
Expand All @@ -244,11 +243,11 @@ $ stdl-objdet assess_detections config/config_trne.yaml
**Detection**: copy the selected trained model to `input/input_det/logs` folder (create it if it does not exist).

```bash
$ python3 scripts/prepare_data.py config/config_det.yaml
$ python scripts/prepare_data.py config/config_det.yaml
$ stdl-objdet generate_tilesets config/config_det.yaml
$ stdl-objdet make_detections config/config_det.yaml
$ scripts/get_dem.sh
$ python3 scripts/filter_detections.py config/config_det.yaml
$ python scripts/filter_detections.py config/config_det.yaml
```

The **Detection** workflow has been automated and can be run for a batch of years by executing these commands:
Expand All @@ -262,8 +261,8 @@ $ scripts/batch_process.sh

```bash
$ mkdir input_dt
$ python3 scripts/detections_tracking.py config/config_dt.yaml
$ python3 scripts/plots.py config/config_dt.yaml
$ python scripts/detections_tracking.py config/config_dt.yaml
$ python scripts/plots.py config/config_dt.yaml
```

## Contributors
Expand Down
4 changes: 2 additions & 2 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
$ python3 <dir_path>/scripts/detections_tracking.py <dir_path>/config/config_dt.yaml
$ python <dir_path>/scripts/detections_tracking.py <dir_path>/config/config_dt.yaml
```

The outputs are a _geojson_ and _csv_ (**quarry_time**) files saving detections over the years with their characteristics (ID_object, ID_feature, year, score, area, geometry).
Expand All @@ -152,7 +152,7 @@ Input or output paths must be adapted if necessary. The script takes as input a
The script can be run by executing the following command:

```bash
$ python3 <dir_path>/scripts/filter_detections.py <dir_path>/config/config_dt.yaml
$ python <dir_path>/scripts/filter_detections.py <dir_path>/config/config_dt.yaml
```

Plot(s) will be produced in _png_ format
Expand Down

0 comments on commit f7fafbd

Please sign in to comment.