toshiaki1729
43d8d8f65f
implement some features to manage token count ( #52 )
...
Add:
- Count and truncate by tokens amount (#40 )
- Sort tags by token count
Change:
- Move "use raw clip token..." setting to "Settings" tab
- Show tag frequency, length or token count depending on the "Sort by"
2023-03-07 22:23:48 +09:00
toshiaki1729
09272f2840
implement token count
2023-03-07 00:57:19 +09:00
toshiaki1729
25e51b2de8
Add type hint for developer (need python>=3.7) ( #49 )
...
Change nothing in behavior at all
2023-03-06 11:15:59 +09:00
toshiaki1729
2406fc8139
move from wrong pos
2023-03-05 21:15:41 +09:00
toshiaki1729
d94664e5ae
version 0.1.1
...
implement #46
minor fix
2023-03-05 21:10:47 +09:00
toshiaki1729
79f10c8365
fix #46
...
and some minor fix in behavior
2023-03-05 21:06:55 +09:00
toshiaki1729
262128e1ce
Huge refactoring of UI related codes ( #48 )
2023-03-05 19:03:55 +09:00
toshiaki1729
8f1f045e59
fix #45
2023-02-28 19:27:40 +09:00
toshiaki1729
7191240d59
fix always using json metadata even if it is disabled
2023-02-26 14:32:13 +09:00
toshiaki1729
d93c84a6f9
refactoring
2023-02-26 14:29:18 +09:00
toshiaki1729
a646ebd065
Accept kohya-ss's metadata json as both input and output
2023-02-26 14:14:15 +09:00
toshiaki1729
9db35c0a45
use DirectML
2023-02-26 12:33:31 +09:00
toshiaki1729
c0aa72e100
enable wd-v14-tagger for AMD GPU users ( #43 )
2023-02-26 12:24:27 +09:00
toshiaki1729
77a4c42ab0
use pathlib instead of os.path
...
I'm not sure but may fix #42
2023-02-25 05:28:49 +09:00
toshiaki1729
c01f7c54f7
first aid for #42
...
Add option to force image gallery to use temporary files
2023-02-25 04:15:31 +09:00
toshiaki1729
09cdc65b30
use S=R threshold values for wd-v1-4-taggers
2023-02-25 00:40:49 +09:00
toshiaki1729
4b2a4a49e8
Fix: doesn't sort caption when save from dialog
2023-02-24 23:26:27 +09:00
Christopher Crockett
952bd8f119
Added tag sorting to UI
...
This implementation utilizes the pre-existing DatasetTagEditor.sort_tags method.
Currently sorting is hardcoded as ascending alphabetical ("123abc"), but
it should be trivial to provide a UI for the various other options
provided by the method if anyone particularly wants alternative sorting.
Tags may be sorted as a batch for all filtered tags via a new button
- Found under: Batch Edit Captions > Extras > Sort selected tags
- The "Extras" menu was created as part of this commit
There is also an option to automatically sort tags upon clicking the
"Apply changes to selected image" button when editing tags via the
"Edit Caption of Selected Image" menu
- Disabled by default
- Enabled via: "Sort caption on save" checkbox (same menu)
2023-02-23 14:51:52 -05:00
toshiaki1729
8190f910e9
fix change in behavior ( #39 )
2023-02-18 16:29:34 +09:00
toshiaki1729
ddde7b756e
fix #39
2023-02-18 16:24:32 +09:00
toshiaki1729
7123254545
fix holding images on RAM when move or delete ( #39 )
2023-02-18 16:19:36 +09:00
toshiaki1729
6b1c76849a
Squashed commit of the following:
...
commit d445c1e15ded70cb511dfbf46ad414063d877294
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date: Sat Feb 18 01:28:26 2023 +0900
Update dataset_tag_editor.py
commit 08342e87eb0501b2bd793ed91df0c2bc9e3ad9c9
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date: Sat Feb 18 01:27:30 2023 +0900
Add file path info to image not for gallery to make temp file (#38 )
2023-02-18 01:36:13 +09:00
toshiaki1729
0eff08c170
split tag if comma in text when search and replace
2023-02-15 00:47:07 +09:00
toshiaki1729
4e00a69570
implement #37 : prefix/suffix and regex on tag search
2023-02-09 20:36:27 +09:00
toshiaki1729
dc77b5a1b6
add sort by "Length" option in TagSelectUI
2023-02-09 19:41:30 +09:00
toshiaki1729
7e2558fb75
implement #36
2023-02-07 22:49:03 +09:00
toshiaki1729
772ddd4798
added license information
2023-02-05 03:10:08 +09:00
toshiaki1729
3acaaffb6a
kohya-ss's finetuning metadata json file
2023-02-05 02:43:25 +09:00
toshiaki1729
5962f4f0bc
fix #35 by closing selected image when some filter applied and cleaning up tag filter before being applied
2023-02-04 22:46:24 +09:00
toshiaki1729
5618359a19
fix the tag sort is broken when delete tag
2023-02-04 21:18:01 +09:00
toshiaki1729
057b8345e3
fix #34 by escaping special characters used in glob
2023-02-04 21:04:31 +09:00
toshiaki1729
4ec8d234a2
use glob instead of my redundant code
2023-01-29 01:07:41 +09:00
toshiaki1729
a95bd49f78
implement some wd tagger v1 and v2, use multi dropdown for selecting interrogator
2023-01-22 14:48:44 +09:00
toshiaki1729
e694417747
show messages on load/save settings, prepend "[tag-editor]" to messages
2023-01-15 17:08:38 +09:00
toshiaki1729
8931563fa4
use caption file extension setting both on load and save
2023-01-15 16:57:36 +09:00
toshiaki1729
289802fc5c
enable loading caption files with not ".txt" extension
2023-01-15 16:46:07 +09:00
toshiaki1729
3ddfdf9b02
fix sort order is not applied to tags after loading settings
2023-01-15 16:19:45 +09:00
toshiaki1729
97f30fd25e
Update main.py
2023-01-14 13:15:16 +09:00
toshiaki1729
7ae140152b
refactoring, implement #33 (but not available for now)
2023-01-14 00:57:52 +09:00
toshiaki1729
768c3f36aa
fix "Use Interrogator Caption" "If Empty" not working
2023-01-07 12:39:38 +09:00
toshiaki1729
5a61a9b2da
remove codes just for develop
2023-01-03 09:27:17 +09:00
toshiaki1729
7e74ec66bc
give up intellisense and make modules to be loaded once
2023-01-03 09:24:08 +09:00
toshiaki1729
2afec67eeb
fix #31
2023-01-03 08:53:12 +09:00
toshiaki1729
cd052a0672
Fix #30
2023-01-03 01:51:14 +09:00
toshiaki1729
09b77d50cf
Update main.py
2023-01-03 01:12:20 +09:00
toshiaki1729
16aaa2d3d7
enable changing tag score threshold on extension
2023-01-03 00:38:09 +09:00
toshiaki1729
9bea5f502e
enable hotreload with "Apply and restart UI" on Extensions tab
2022-12-29 19:44:46 +09:00
toshiaki1729
7f823bc015
Update main.py
2022-12-19 00:12:22 +09:00
toshiaki1729
3012dc9ef2
Update main.py
2022-12-18 22:44:30 +09:00
toshiaki1729
1e85fdcd71
Update main.py
...
is this better English?
2022-12-18 22:27:34 +09:00