Commit Graph

1501 Commits

Author SHA1 Message Date
ebolam
f826c39b43 Additional error message 2022-11-23 07:33:30 -05:00
ebolam
773d143c86 Preset Rework 2022-11-22 21:27:36 -05:00
Henk
2603f1fd5d Version bump 2022-11-20 16:22:33 +01:00
ebolam
dd006c355b Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-19 19:04:20 -05:00
ebolam
a7747be519 More TTS stuff. Now generates OGG files (dependencies not included in requirements yet) 2022-11-19 19:04:15 -05:00
ebolam
25826c6169 World info Save Load Bug Fix 2022-11-19 14:22:41 -05:00
somebody
cec9d3d429 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into ui2-chat2-again 2022-11-18 16:08:41 -06:00
ebolam
f09408a092 Potential fix for https://github.com/ebolam/KoboldAI/issues/295 2022-11-18 09:27:01 -05:00
ebolam
0e1a235e3a Dynamic World Info Scanner Fix 2022-11-17 20:48:28 -05:00
Robert Vining
0eef307172 Updated text2img_api and UI_2_generate_image
- Refactored new configuration vars to be used directly instead of making copies in the function.
- Rewrote post assembly for text2img_api so that it passes values correctly.

Signed-off-by: viningr
2022-11-15 18:47:19 +10:00
Robert Vining
edf04bfb06 Updated image generation functions with extra configurable settings for:
koboldai_vars.img_gen_art_guide
koboldai_vars.img_gen_negative_prompt (local SD API only until Horde supports passing negative prompts.)
koboldai_vars.img_gen_steps
koboldai_vars.img_gen_cfg_scale
Added toggle for the image_generating flag to allow resetting it in the case of interruption without needing to restart KoboldAI.
- Found error in payload format for SD api post request and resolved by consolidating prompt and settings values into single object.
- Refactored new variables to be accessed directly in functions instead of copying to local vars.
- New variables are now working correctly with SD api requests. Need testing with horde and local.

Signed-off-by: viningr
2022-11-15 18:37:04 +10:00
somebody
36cee7768c Revert "Basic Contrastive Search support"
This reverts commit 0f52281af5.
2022-11-14 18:01:16 -06:00
Henk
3084552c05 Sampler Order Fix for Models 2022-11-14 17:15:39 +01:00
Henk
13dff68de8 Sampler Order Loading Fix 2022-11-14 16:59:53 +01:00
somebody
d54c7891ed Stop spamming the console with 404s 2022-11-12 16:51:22 -06:00
somebody
ad7fa36c2f Combine constant with types in wi 2022-11-12 16:47:23 -06:00
somebody
4a27ad20e4 WI Images 2022-11-12 13:37:21 -06:00
Henk
a66e1443fd New Models 2022-11-12 16:54:40 +01:00
ebolam
f3380d1a8b Initial Model Load Fix 2022-11-11 19:19:42 -05:00
ebolam
d70ed69dae Fixed new sampler showing in Original UI
Initial skeleton for tts (experimental feature)
2022-11-11 18:36:48 -05:00
ebolam
125064feca Merge pull request #293 from one-some/ui2-contrastive-search
Basic Contrastive Search support for GPUs
2022-11-11 09:24:04 -05:00
somebody
0f52281af5 Basic Contrastive Search support 2022-11-10 18:10:29 -06:00
ebolam
7c7b68e4dd Working on Deterministic AI UI changes and dynamic world info bug 2022-11-10 13:38:29 -05:00
ebolam
875c56c5e7 Added URL for local stable web api 2022-11-09 19:46:57 -05:00
ebolam
0cd70fdb56 Fix for image generation using horde 2022-11-09 19:36:03 -05:00
somebody
c43d0f9aa1 Add context manager for sandboxing invasive transformers patches 2022-11-09 17:31:25 -06:00
ebolam
9bfc84880e Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-07 17:28:32 -05:00
ebolam
ba2eb0ab1b Fix for valid_story model loading bug 2022-11-07 17:28:19 -05:00
Robert Vining
bbe2f9b1c4 - Updated code in text2img_api to better handle output from stable-diffusion=webui api.
- updated code for PNG text handling, only adds prompt to PNG tex.

Signed-off-by: Robert Vining
2022-11-05 22:19:48 +10:00
ebolam
52b6d26977 Fix for action count on story load screen 2022-11-04 17:20:27 -04:00
ebolam
11ca7d421a Model welcome text positioning fix
Fix for options showing up when scrolling
2022-11-04 11:31:28 -04:00
ebolam
1f2e755f9a Merge pull request #278 from Viningr/master
Updated Image Gen function to support local stable-diffusion-webui API endpoint.
2022-11-01 16:06:37 -04:00
ebolam
09e1bb8366 Add back in horde generation if statement 2022-11-01 15:03:47 -04:00
ebolam
6c146b805d Remove debug prints 2022-11-01 14:58:55 -04:00
ebolam
6710b100b7 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-01 14:54:47 -04:00
ebolam
87f7d20d4a Added privacy mode (ctrl+L). Will blur the screen until a password is entered (configured in the interface tab under the UI section). 2022-11-01 14:54:38 -04:00
Viningr
dd7c429005 Merge branch 'ebolam:UI2' into master 2022-11-01 23:29:42 +10:00
Robert Vining
0bb6e0afae - Updated UI_2_generate_image()to reference new option in the Image Generation dropdown menu.
- Using Local SD-WebUI API option will send a post request to stable-diffusion-webui running with the --api switch on http://127.0.0.1:7860/sdapi/v1/txt2img

Signed-off-by: Robert Vining
2022-11-01 23:24:19 +10:00
Robert Vining
107bbfa291 Added new function text2img_api()
- sends prompt to locally hosted stable-diffusion-webui API and retrieves
 image result. info from SD API is embedded in png file as it is saved.
 image files are named with the current date at generation and saved
 in /stories/art/

Modified UI_2_generate_image() to call text2img_api() instead of text2img_horde


Signed-off-by: Robert Vining <offers@robertrvining.com>
2022-11-01 18:01:20 +10:00
Llama
77813df2f0 Re-enable and fix several issues with phrase bias
Add the PhraseBiasLogitsProcessor to the logits processor list

Fix an issue with bias phrases that contain the start token
multiple times.  Because we were searching backwards for the first
occurrence of the start token, we would restart the phrase when
we encountered a subsequent instance of the token.  We now search
forwards from the maximum possible overlap to find the maximum overlap.

Fix an issue with the phrase bias token index not accounting for
non-matching words.  Previously, once we found the start token,
we would apply the bias for each token in the bias phrase even if
subsequent tokens in the context didn't match the bias phrase.

Do not apply phrase completion if the bias score is negative.

If multiple phrases apply a score modifier to the same token, add
the scores rather than replacing the modifier with the last occurrence.

Increase the maximum range of the bias slider.  For extremely
repetitive text on large models, -12 is insufficient to break the
model out of its loop.  -50 to 50 is potentially excessive, but it's
safer to give the user some additional control over the bias score.
2022-11-01 00:20:15 -07:00
ebolam
48852f650f Fix for story rename 2022-10-30 20:21:31 -04:00
ebolam
9291e11088 Fix for colab theme loading bug 2022-10-29 11:55:12 -04:00
ebolam
972744c947 Added notification when dynamic world info is triggered 2022-10-29 10:29:53 -04:00
ebolam
16e3478fa6 Popup fixes 2022-10-28 21:50:26 -04:00
ebolam
8476083490 Missing Quote Fixed (wasn't needed anymore 2022-10-28 20:59:54 -04:00
ebolam
72121519de Whoops 2022-10-28 19:23:23 -04:00
ebolam
f48d5efac1 Potential Colab Fix 2022-10-28 19:19:58 -04:00
ebolam
0aa558f17b Fix for position of debug dump on popups 2022-10-28 19:10:27 -04:00
ebolam
c3ccdb0b50 Potential Colab URL fix 2022-10-28 14:19:50 -04:00
ebolam
8859704c44 Merge pull request #255 from one-some/ui2-notifs
Notifications
2022-10-28 09:40:51 -04:00