eideehi / sd-webui-better-prompt Goto Github PK
View Code? Open in Web Editor NEWStable Diffusion web UI extension that provides a better UI for prompt editing.
License: MIT License
Stable Diffusion web UI extension that provides a better UI for prompt editing.
License: MIT License
allow delete prompt by
Hey,
Since I updated automatic1111 I receive an error message in the console. I disabled all other plugins.
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "J:\diffusion\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 429, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "J:\diffusion\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\fastapi\applications.py", line 273, in call
await super().call(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\cors.py", line 84, in call
await self.app(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in call
await responder(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "J:\diffusion\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "J:\diffusion\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "J:\diffusion\venv\lib\site-packages\fastapi\routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "J:\diffusion\venv\lib\site-packages\fastapi\routing.py", line 163, in run_endpoint_function
return await dependant.call(**values)
File "J:\diffusion\extensions\sd-webui-better-prompt\scripts\better_prompt.py", line 137, in get_extra_networks
{"name": item["name"], "preview": item["preview"], "search_term": item["search_term"]})
KeyError: 'search_term'
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "J:\diffusion\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 429, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "J:\diffusion\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\fastapi\applications.py", line 273, in call
await super().call(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\cors.py", line 84, in call
await self.app(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in call
await responder(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\gzip.py", line 44, in call
await self.app(scope, receive, self.send_with_gzip)
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "J:\diffusion\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "J:\diffusion\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "J:\diffusion\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "J:\diffusion\venv\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "J:\diffusion\venv\lib\site-packages\fastapi\routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "J:\diffusion\venv\lib\site-packages\fastapi\routing.py", line 163, in run_endpoint_function
return await dependant.call(**values)
File "J:\diffusion\extensions\sd-webui-better-prompt\scripts\better_prompt.py", line 144, in get_extra_networks
{"name": item["name"], "preview": item["preview"], "search_term": item["search_term"]})
KeyError: 'search_term'
0.1.0
Even if have enabled the notification for the latest version in the settings, there are cases where the notification may not appear when the latest version becomes available.
Please manually check for updates from Extensions > Installed > [Check for updates]. This bug does not occur in version 0.2.0 or later.
This is truly a great extension.
Hey, I am getting quite a lot of lag on the lattest gradio. I dont actually have experience with previous versions of ewbui, but in this one, after i type some prompts, it takes a while to update the buttons underneath. Each letter comes in at 1/5 speed. Very slow. Very unusable. I need to do some testing to see if another extension is conflicting, but this is happening before any generating even happens
Feel like this might be a super enhancement for better prompts to have direct access to the prompt dynamic prompt folder of txt wildcards in order to directly insert the wildcart.txt into the prompt right from better prompt... this would be godsend
Currently, Better Prompt is unable to parse emoticons such as :)
or <3
in the prompts. I'm working on resolving this issue.
Sorry for my English.
Even though the git.exe environment is already in place on the Windows system, it still cannot be used properly.
Error loading script: better_prompt.py
Traceback (most recent call last):
File "D:\Software\Python3.10\userfolder\stable-diffusion-webui-master\modules\scripts.py", line 256, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "D:\Software\Python3.10\userfolder\stable-diffusion-webui-master\modules\script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "D:\Software\Python3.10\userfolder\stable-diffusion-webui-master\extensions\sd-webui-better-prompt\scripts\better_prompt.py", line 240, in <module>
initialize()
File "D:\Software\Python3.10\userfolder\stable-diffusion-webui-master\extensions\sd-webui-better-prompt\scripts\better_prompt.py", line 235, in initialize
print_version()
File "D:\Software\Python3.10\userfolder\stable-diffusion-webui-master\extensions\sd-webui-better-prompt\scripts\better_prompt.py", line 105, in print_version
result = subprocess.check_output([GIT, "log", '--pretty=v%(describe:tags)', "-n", "1"], cwd = EXTENSION_ROOT, shell = True).decode("utf-8")
File "D:\Software\Python3.10\python-3.10.9.amd64\lib\subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "D:\Software\Python3.10\python-3.10.9.amd64\lib\subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['D:\\Software\\git\\bin\\git.exe', 'log', '--pretty=v%(describe:tags)', '-n', '1']' returned non-zero exit status 128.
Please let me know if there is any additional information that needs to be provided. ๐
Thank you.
0.1.0
When selecting a version from the dropdown and clicking 'Apply settings', an error occurs and the version is not changed.
Please update from Extensions > Installed > [Check for updates]. This bug does not occur in version 0.2.0 or later.
If that's something you would be interested in, feel free to come to his discord server, as vlado is always happy to work with other developers on SD. There is a big UI overhaul coming in the near future, and your styles extension does just about everything I think someone could ask for, whereas there are multiple competing prompt extensions with similar functionality and there's probably no chance one of them would be added in.
The network search box on the right has a tendency to delete the contents of the prompt when things are already in the prompt and an item is clicked on. Had it happen a few times, but no idea why.
When something in the network search area is clicked on, it's added to the prompt, if it is clicked on again, it should be removed from the prompt. The current behavior just repeatedly adds it again and again, when that is obviously not what anyone is going to want.
I really love the networks search box system on the right side, it's a very quick and efficient method of accessing the extra networks without having to use the browser. I would love to have that as a separate extension or control over the prompts being visible at least. If it's possible, could you separate them code-wise? At least so I can get a copy of it if nobody else wanted it that way, I simply can't make heads or tails of the massive amount of javascript involved. That may potentially be something that could also be integrated, though I have not brought it up, the space used and functionality provided is a great balance.
Thanks for your consideration, and keep up the good work!
That would be nice to have support for the Lycoris extension : https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris
It creates a new folder called "LyCORIS" in the models tab, and calls them with lyco:xxxxxx:1 but is otherwise the same prompt wise
After using text2img in png info, the Input Field of Better Prompt will not synchronize update prompts.
Hey, Not all my lora's show. Is there a setting or something that determines whether the lora gets recognised and sent to the suggestion area? I can clearly see some lora's that actually are seen in the lora module of webui are not showing on suggestion. Have a feeling it has something to do with the instance prompt. Is it a problem if the instance prompt is contained in the lora filename? Not sure. Would be nice to resolve this issue/non-issue thansks
When using Better Prompt to add a LoRA to your prompt it should follow "Multiplier for extra networks" in Settings > Extra Networks.
Currently it adds the LoRA at strength 1.0.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.