Commit Graph

59 Commits (72f2d8aeb0e96a12f1f717b6341d5c846bdc6cc3)

Author SHA1 Message Date
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
toshiaki1729 f7d29328b5 Squashed commit of the following:
commit 106b43466a15f9eca6241eedf77fd4a414f5a148
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Sun Dec 11 18:15:12 2022 +0900

    add method to score manually

commit 1b1d94f7879c73fce259ee8ad3c7bd34023b19ac
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Sun Dec 11 18:06:11 2022 +0900

    save tag scores on loading

commit 2abade6c4925c0797bad21fdfaa6b9bb4a1f1486
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Sun Dec 11 17:57:16 2022 +0900

    fix wrong params, wrong clip

commit 4ca3da6a47d951979e70079eefcc032512813cc5
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Sun Dec 11 17:46:17 2022 +0900

    allow using wdv1.4 tagger when loading

    #21

commit 3df922552e503612826300e44ff25da4df260b0a
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Sun Dec 11 16:32:28 2022 +0900

    implement wdv1.4 tagger (on the way)

    wdv1.4 tagger now available only in selected image

commit e4062bb79f31543bbe675e2e119e346b26efcb0c
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Sun Dec 11 16:07:18 2022 +0900

    implement interrogator to test wdv1.4 tagger

commit 07067ea79569b5869e94e5fa42eadee30cfd33b4
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Sun Dec 11 15:35:39 2022 +0900

    just rearrange importing

commit ee3710237eb4beeb6332c660293a30b7913d8e0d
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Sun Dec 11 15:33:09 2022 +0900

    implement tag scorer (not tested)
2022-12-11 18:15:49 +09:00
toshiaki1729 60799cf329 fix wrong param making negative filter positive 2022-12-11 00:11:41 +09:00
toshiaki1729 e743f736fb clear caption of selected image when the gallery updated
#23
2022-12-10 23:39:04 +09:00
toshiaki1729 71d8c8e988 Fix default behavior of tag filters 2022-12-10 21:25:11 +09:00
toshiaki1729 759772e2f3 add option to autofill textbox to edit caption
#23
2022-12-10 19:42:03 +09:00
toshiaki1729 12d6c3826b add option to show only selected tags in common tags textbox
#22
2022-12-10 19:06:48 +09:00
toshiaki1729 c82017c9ae move or delete files: show 0 if nothing selected 2022-12-10 12:54:22 +09:00
toshiaki1729 2668d5ef3d fix move or delete target sometime shows wrong num files 2022-12-10 12:49:28 +09:00
toshiaki1729 0f9b290eb7 move or delete files
#12
2022-12-10 12:36:18 +09:00
toshiaki1729 6020090ca5 allow regex in search & replace
(#20)
2022-12-08 23:32:40 +09:00
toshiaki1729 aefbe80bec change text 2022-12-07 23:26:33 +09:00
toshiaki1729 a3a2e4a8b3 Squashed commit of the following:
commit 9d1667049d84a462c5e89b3df15a8b370323dcf8
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Wed Dec 7 23:09:58 2022 +0900

    show what tags are "selected"

commit d2f385a5fb0073d2ba7809359b2ce29f1110ae64
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Wed Dec 7 22:52:37 2022 +0900

    invert behavior in exclusive filter

commit ba6ff5e00f85fbdf074d073ccc7dbb7eb0258a89
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Wed Dec 7 22:46:47 2022 +0900

    Update main.py

commit 76067e51a3fd0bca421a6b258cf872275c7f7b11
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Wed Dec 7 22:40:56 2022 +0900

    logic filter, batch text search and replace

    #11 #13 #15

commit f3688fa6aa3ec8e2b1e964a7d4291185ebd7f100
Merge: 05412b1 fddf4d9
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Wed Dec 7 00:26:23 2022 +0900

    Merge branch 'main' into logic-filter

commit 05412b1afdda7ac32467298e407a1f83e2a70690
Merge: cfbeec2 3c5987e
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Tue Dec 6 01:06:37 2022 +0900

    Merge branch 'main' into logic-filter

commit cfbeec208fa0645df7912f2bc43959ee704bdbcb
Merge: 88ecf79 d46f1a5
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Mon Dec 5 08:48:59 2022 +0900

    Merge branch 'main' into logic-filter

commit 88ecf79d8dc11c6e5a686e0154fbd6d40d2474d2
Merge: a746882 c3d3a69
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Mon Dec 5 08:29:09 2022 +0900

    Merge branch 'main' into logic-filter

commit a746882aab440396a3e24a6bd6f7eb022ec67cb8
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Mon Dec 5 00:58:57 2022 +0900

    replace text( on the way)

    #13

commit 9018e4c5754ef06caad733302cb7bfa3c9083188
Author: toshiaki1729 <116595002+toshiaki1729@users.noreply.github.com>
Date:   Sun Dec 4 19:05:58 2022 +0900

    separate tag replace feature from tag filter feature
2022-12-07 23:10:51 +09:00
toshiaki1729 3c5987e588 Update main.py 2022-12-06 01:01:39 +09:00
toshiaki1729 d46f1a5520 update tag list when caption is edited
related to #16
2022-12-05 08:43:23 +09:00