Commit Graph

73 Commits (8feb29de4035bccb23f24bd9516cdd97b4ddc0cb)

Author SHA1 Message Date
toshiaki1729 c3252d8325
Merge changes in standalone version (#93)
* Merge changes in standalone version
 - New Taggers and Custom Tagger
 - a little bit stable UI
2024-05-08 03:58:58 +09:00
ArrowM 7a2f4c53fb
rename package (#80) 2023-06-05 19:12:00 +09:00
Chris Mekarski c1c78f5976
Add max image resolution option (#70)
* Add max image resolution option

* disable webUI's custom feature when max_res is specified

---------

Co-authored-by: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
2023-04-02 20:15:32 +09:00
toshiaki1729 b8730ad53b Feature to replace new-line with comma on loading 2023-03-23 09:55:06 +09:00
toshiaki1729 b70eb4b18b just move variables 2023-03-10 12:28:50 +09:00
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 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 7191240d59 fix always using json metadata even if it is disabled 2023-02-26 14:32:13 +09:00
toshiaki1729 a646ebd065 Accept kohya-ss's metadata json as both input and output 2023-02-26 14:14:15 +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 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 4e00a69570 implement #37: prefix/suffix and regex on tag search 2023-02-09 20:36:27 +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 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 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 5a61a9b2da remove codes just for develop 2023-01-03 09:27:17 +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
toshiaki1729 d0ae14ff68 Update main.py 2022-12-18 22:25:48 +09:00
toshiaki1729 b7ae307239 implement #28 2022-12-18 22:20:43 +09:00
toshiaki1729 17fc95d207 Update main.py 2022-12-18 17:54:59 +09:00
toshiaki1729 edcfadbdd7 Squashed commit of the following:
commit 039783edd6dba784bbe5cc260549a20528003efa
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Sun Dec 18 01:10:37 2022 +0900

    allow using modified gallery without filter

commit a2d1821e1357245e6f0bb5a25373c39e0abc1be0
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Sun Dec 18 00:57:33 2022 +0900

    changed to manage selection on gallery totally

commit dc26b65259651600091646b325c5189dba08397f
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Fri Dec 16 21:17:27 2022 +0900

    allow selecting from gallery

commit d8b02f6c9c4bc4aa68bc8964ff518af0309e9fd0
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Fri Dec 16 17:53:32 2022 +0900

    filter gallery without reloading images

    cannot use allow key or click in gallery
    may select hidden images
2022-12-18 01:17:04 +09:00
toshiaki1729 a252ab1948 Update main.py 2022-12-16 10:50:07 +09:00
toshiaki1729 04ca3a9d95 fix showing wrong dataset info 2022-12-16 00:41:00 +09:00
toshiaki1729 90ed6991a1 warn if change in caption not saved
implement #26
2022-12-16 00:36:22 +09:00
toshiaki1729 8f7751f22c remove duplicated tags
#27
on Batch Edit Captions tab
2022-12-15 02:25:58 +09:00
toshiaki1729 4b6d4e0410 Update main.py 2022-12-13 22:48:57 +09:00
toshiaki1729 a5d7219982 fix error when no config.json 2022-12-13 22:40:18 +09:00
toshiaki1729 0e7273ef73 add accordion to enable hiding load settings 2022-12-13 22:35:14 +09:00
toshiaki1729 fe7816463d add reload settings button, hide setting buttons
hide buttons because there is too many buttons on UI
2022-12-13 22:30:33 +09:00
toshiaki1729 ec1e230230 save settings (#24) 2022-12-13 22:01:54 +09:00
toshiaki1729 5bc984cd30 fix wrong Selected Tags and Target dataset num 2022-12-12 01:21:15 +09:00
toshiaki1729 d28ae3f005 fix showing wrong "selected tags" 2022-12-12 00:05:01 +09:00