diff --git a/doc/CAPTION_GUI.md b/doc/CAPTION_GUI.md index 0540b69..b6a9770 100644 --- a/doc/CAPTION_GUI.md +++ b/doc/CAPTION_GUI.md @@ -1,4 +1,4 @@ -# MSteven's tools +# MStevenson's tools ## Caption GUI @@ -10,7 +10,11 @@ A sidecar file is created for each image with the same name and a .txt extension ### Controls: [control/command + o] to open a folder of images. + [page down] and [page up] to go to next and previous images. Hold shift to skip 10 images. + [shift + home] and [shift + end] to go to first and last images. + [shift + delete] to move the current image into a '_deleted' folder. + [escape] to exit the app. \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 3590971..b3da28c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,5 @@ aiohttp>=3.8.3 #open_clip_torch>=1.26.12 timm fairscale==0.4.4 -transformers==4.19.2 \ No newline at end of file +transformers==4.19.2 +opencv-python>=4.6.0 \ No newline at end of file diff --git a/scripts/createtxtfromfilename.py b/scripts/createtxtfromfilename.py index 93c09e5..e420d9f 100644 --- a/scripts/createtxtfromfilename.py +++ b/scripts/createtxtfromfilename.py @@ -2,7 +2,6 @@ import glob import os import argparse - def create_txt_from_filename(path): """ create a .txt file for each file in the path so you can lengthen the caption @@ -22,7 +21,6 @@ def create_txt_from_filename(path): text_file.write(caption) if __name__ == "__main__": - parser = argparse.ArgumentParser() parser.add_argument("--path", type=str, help="path to folder") args = parser.parse_args()