aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2024-07-27 12:28:38 -0500
committerAnthony Wang2024-07-27 12:28:38 -0500
commitc8c59690ab4f2d841340a21c36296424fd5e2c9c (patch)
tree1ac25016fad73c2a7953973b7187fc05b315e6c0
parentcd89259c8db0bf233c50f8807ae27455cb9af856 (diff)
Gwenview doesn't preserve order
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 443cc5b..7ad3fe2 100644
--- a/README.md
+++ b/README.md
@@ -14,4 +14,4 @@ If you don't need PyTorch with GPU support, first run `pip3 install torch torchv
This program uses a client-server architecture to watch directories with inotify and keep the model loaded in memory. It takes around 15 seconds to load the model so it wouldn't be great if every query had to wait on that.
-Run `python server.py DIRS_TO_INDEX` to start the server. Then, run `python client.py SEARCH_TEXT NUM_RESULTS` to get a list of the most similar files.
+Run `python server.py DIRS_TO_INDEX` to start the server. Then, run `python client.py SEARCH_TEXT NUM_RESULTS` to get a list of the most similar files. You can pass this to an image viewer such as `gwenview $(python client.py SEARCH_TEXT NUM_RESULTS)` to get thumbnails of image results. Note that Gwenview doesn't preserve the order of the images.