update
This commit is contained in:
parent
b77f0fc4d9
commit
a0d95ae667
|
@ -1,4 +1,4 @@
|
||||||
# MSteven's tools
|
# MStevenson's tools
|
||||||
|
|
||||||
## Caption GUI
|
## Caption GUI
|
||||||
|
|
||||||
|
@ -10,7 +10,11 @@ A sidecar file is created for each image with the same name and a .txt extension
|
||||||
|
|
||||||
### Controls:
|
### Controls:
|
||||||
[control/command + o] to open a folder of images.
|
[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.
|
[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 + home] and [shift + end] to go to first and last images.
|
||||||
|
|
||||||
[shift + delete] to move the current image into a '_deleted' folder.
|
[shift + delete] to move the current image into a '_deleted' folder.
|
||||||
|
|
||||||
[escape] to exit the app.
|
[escape] to exit the app.
|
|
@ -6,4 +6,5 @@ aiohttp>=3.8.3
|
||||||
#open_clip_torch>=1.26.12
|
#open_clip_torch>=1.26.12
|
||||||
timm
|
timm
|
||||||
fairscale==0.4.4
|
fairscale==0.4.4
|
||||||
transformers==4.19.2
|
transformers==4.19.2
|
||||||
|
opencv-python>=4.6.0
|
|
@ -2,7 +2,6 @@ import glob
|
||||||
import os
|
import os
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
|
||||||
def create_txt_from_filename(path):
|
def create_txt_from_filename(path):
|
||||||
"""
|
"""
|
||||||
create a .txt file for each file in the path so you can lengthen the caption
|
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)
|
text_file.write(caption)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("--path", type=str, help="path to folder")
|
parser.add_argument("--path", type=str, help="path to folder")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
Loading…
Reference in New Issue