From 8f3b6adfdf884a88a8be66dfe86d457b42f5e89a Mon Sep 17 00:00:00 2001 From: Elizabeth Campolongo <38985481+egrace479@users.noreply.github.com> Date: Mon, 15 Dec 2025 09:42:21 -0500 Subject: [PATCH] fix code-snippet run location and point to low-code option --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 37b07e7..8c66e99 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ The above script is RAM intensive on large datasets. To process individually run ### Trait Segmentation For one-shot trait/part segmentation, please run the following demo code: ```bash -python code/segment.py --support_image /path/to/sample/image.png \ +python src/sst/segment.py --support_image /path/to/sample/image.png \ --support_mask /path/to/greyscale_mask.png \ --query_images /path/to/query/images/folder \ --output /path/to/output/folder \ @@ -107,7 +107,7 @@ python code/segment.py --support_image /path/to/sample/image.png \ ### Trait-Based Retrieval For trait-based retrieval, please refer to the demo code below: ```bash -python code/trait_retrieval.py --support_image /path/to/sample/image.png \ +python src/sst/trait_retrieval.py --support_image /path/to/sample/image.png \ --support_mask /path/to/greyscale_mask.png \ --trait_id 1 \ # target trait to retrieve, denote by the value in support mask \ --query_images /path/to/query/images/folder \ @@ -116,6 +116,10 @@ python code/trait_retrieval.py --support_image /path/to/sample/image.png \ --top_k 5 # n top retrievals to save as results ``` +### Low-Code Implementation + +In the [`gui/`](gui) directory, there is a low-code option for users. Follow the directions in that `README` to install and run the interface. + ## 📊 Dataset Beetle part segmentation dataset is available [here](data/neon_beetles/).