From 70dcb068c7ff29b330a3cbcf27d7471881218972 Mon Sep 17 00:00:00 2001 From: Turgeon-Pelchat Date: Wed, 4 Sep 2024 08:09:12 -0400 Subject: [PATCH 1/3] update doc --- README.md | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 73bf182..e5e5b97 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ geo_inference -a ``` - `-a`, `--args`: Path to arguments stored in yaml, consult ./config/sample_config.yaml ```bash -geo_inference -i -br -m -wd -ps -v -d -id -cls -mg +geo_inference -i -br -m -wd -ps -v -d -id -cls -mg -pr ``` - `-i`, `--image`: Path to Geotiff - `-bb`, `--bbox`: AOI bbox in this format "minx, miny, maxx, maxy" (Optional) @@ -86,6 +86,7 @@ geo_inference -i -br -m -wd -ps Date: Wed, 4 Sep 2024 08:13:05 -0400 Subject: [PATCH 2/3] update function docstring --- geo_inference/geo_inference.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geo_inference/geo_inference.py b/geo_inference/geo_inference.py index e798248..db0eb6d 100644 --- a/geo_inference/geo_inference.py +++ b/geo_inference/geo_inference.py @@ -55,6 +55,7 @@ class GeoInference: multi_gpu (bool): Whether to run the inference on multi-gpu or not. gpu_id (int): The ID of the GPU to use for inference (if device is "gpu"). num_classes (int) : The number of classes in the output of the model. + prediction_threshold (float): Prediction probability Threshold (fraction of 1) to use. Attributes: work_dir (Path): The directory where the model and output files will be saved. @@ -145,6 +146,7 @@ async def async_run_inference(self, inference_input Union[Path, str]: The path/url to the geospatial image to perform inference on. bands_requested List[str]: The requested bands to consider for the inference. patch_size (int): The size of the patches to use for inference. + workers (int): Number of workers used by dask, Default = Nb of cores available on the host, minus 1. bbox (str): The bbox or extent of the image in this format "minx, miny, maxx, maxy". Returns: From b7363b5e6b56bdfe75d55174a7d0c967d3cdc51b Mon Sep 17 00:00:00 2001 From: Turgeon-Pelchat Date: Thu, 5 Sep 2024 08:20:27 -0400 Subject: [PATCH 3/3] return type --- geo_inference/geo_inference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geo_inference/geo_inference.py b/geo_inference/geo_inference.py index db0eb6d..0584dcd 100644 --- a/geo_inference/geo_inference.py +++ b/geo_inference/geo_inference.py @@ -108,7 +108,7 @@ def __call__( patch_size: int = 1024, workers: int = 0, bbox: str = None, - ) -> None: + ) -> str: async def run_async():