Commit Graph

33 Commits (main)

Author SHA1 Message Date
uwidev b843d73bd1 feat: convert redundant checkboxes to radio buttons
spaces to underscore, underscore to spaces, or ignore
2024-09-30 11:08:54 -07:00
uwidev 4716fe1149 fix: add check for BRACKET2WEIGHT
Accidentally removed when refactoring.

Fixes #21.
2024-09-30 09:36:46 -07:00
uwi 5920bef70b
Create LICENSE 2024-09-26 11:32:41 -07:00
uwidev e2b86ecabb feat: ignore brackets in networks
do not turn them into weights
2024-09-26 10:49:46 -07:00
uwidev 15711f71b9 refactor: refactor pipeline steps, add tests, fixes, doc
This should hopefully make it easier to approach when applying fixes and
adding new features.
2024-09-26 10:37:42 -07:00
uwidev 207677984c refactor: separate pipeline and ui
to better integrate unit testing
2024-09-24 17:00:01 -07:00
uwidev dd34172058 fix: strip to truncate all whitespace on final returned string
fixes #20
2024-09-24 14:31:09 -07:00
uwidev 61d34f7e3e fix: reference unique Textbox using set instead of list
Fixes #19.

When using PNG Info Send to txt2img/img2img, it will re-create the
entire tab for that workflow. This means that Textbox gets re-created.
On creation, the Textbox is added to the prompts to format, which makes
the old ones stale. Since there's excess, it also results in an uncaught
error.

Solution is to use a set instead of a list to hold the Textbox's to
format. I speculate the components have an internal check to ensure
they don't overlap, perhaps by checking `elem_id` or something.
Regardless, fixed.
2024-08-16 11:55:26 -07:00
Dream 3c0d685004
Add the option to NOT convert spaces and underscores, but to leave them as entered. (#18)
Add Option to preserve Underscores and spaces

Allow the option to NOT convert either underscores or spaces, so that danbooru tags are preserved, while maintaining normal spacing.
2024-05-17 17:29:45 -07:00
uwidev 06f2572e04 Implemented #15, newlines presered 2023-10-26 09:42:51 -07:00
uwidev ab8ec9e37b Wildcard compatability for '_' to ' ' 2023-09-13 12:19:18 -07:00
uwidev 0803e74ee2 Space->Underscore now respects networks 2023-07-24 16:42:25 -07:00
uwi 076598e727
Update README.md
Removed plz ignore on demonstration
2023-06-03 19:00:18 +00:00
uwi bf380406bf
Update README.md
Updated TODOs
2023-06-03 18:59:55 +00:00
uwidev ca3a4014df Updated demo gif 2023-06-03 11:41:10 -07:00
uwidev aaa61fce2a Added settings for prompt formatter, more features
By default, automatically converts underscores to spaces, with the opposite as an option under settings.
Brackets to weight can be disabled.
Commas will now have spaces after them, with an option to disallow it in settings.
2023-06-03 11:18:55 -07:00
blongty 25a15c8ea7 Fixed font-emoji incompatibly on other browsers 2023-05-09 10:16:05 -07:00
blongty 44709fd204 Javescript to move button into tools div row. 2023-05-08 19:25:48 -07:00
blongty b7954ecd27 When adding weight, check now does `\d+.?\d*|\d*.?\d+` instead of `\d+.?\d*` 2023-04-30 16:50:40 -07:00
blongty 0f03e4603f Removed excess spaces on commas to easier keyboard transversal 2023-04-30 08:43:05 -07:00
uwi 6679eba94f
Update README.md 2023-04-28 05:47:22 +00:00
blongty 54d58c2e81 Fixed extension crashing when running with no prompt or only spaces. 2023-04-27 20:59:37 -07:00
blongty c394787c3d Parenthesis and brackets now convert to weightings
Might have some weird issues when combining composable diffusion with square bracketing. It converts, but may not be correct.
2023-04-27 20:52:55 -07:00
blongty 1695f72821 Overhauled technique for cleaning up the prompt and formatting it.
More or less a compete rewrite from a proof of concept to something more consistnt and stable. Now takes into account things like prompt editing, alternating words, and composable diffusion. In the mean time, however, it no longer separates weighted terms. Until I can figure out how to deal with infinitely nested weights and other weird combinations (recursion stuff), it's on hold.

The separation of isolated weights will come later as a togglable option, perhaps with other settings.
2023-04-26 23:30:58 -07:00
blongty 43c47c15fa Bugfix: Tokens already with weight now preserve their parenthesis 2023-04-24 23:59:55 -07:00
uwi a1b35444f2
Update README.md 2023-04-25 06:24:30 +00:00
blongty 46528b8968 Bugfix: [] and {} now conver to () with weights
Bugfix: Brackets convert to weight while properly preserving the token
2023-04-24 23:21:19 -07:00
uwi 673a6a7f7b
Update README.md
Fixed URL install such that you can triple click it and select the entire URL
2023-04-25 04:42:41 +00:00
uwi 010fe0aa90
Create README.md 2023-04-25 04:40:23 +00:00
blongty 773778c2c0 Bracketing->Weight bug fix, demo gif 2023-04-24 21:35:30 -07:00
blongty 3d3ec2bc60 Removed debug print statements 2023-04-24 20:41:21 -07:00
blongty 10cef4bd01 Removed temp dev files 2023-04-24 20:32:54 -07:00
blongty 789f7cf1d5 Version 1 commit 2023-04-24 20:21:27 -07:00