question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Have issue working with weight syntanx and editing prompt

See original GitHub issue
  1. Interfere vanilla hotkey to chagne weight, i.e. select a word and press ctrl+↑ or ctrl+↓ to quick change weight of it. With tagcomplete runnig, this hotkey no longer works

    For example double click to select word dog in prompt girl, (sad:1.5), dog and press ctrl+↑, the prompt changes to girl, (sad:1.5), (dog:1.1) automatically, when tagcomplete is not installed

  2. Have problem showing complete drop list inside weight parenthesis when edit existed tag

    For example select dog in girl, (sad:1.5), dog and type runn to overwrite it, the tagcomplete list shows and I can tab to select running But select sad and type runn to overwrite it, no list shows. Select sad and type runn still no list show. Select sad and type runn the list shows but tab or click running nothing happens.

    demo An1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DominikDoomcommented, Oct 29, 2022

Editing inside brackets should work now, as long as the hard-coding bug is fixed for you on the webui side.

https://user-images.githubusercontent.com/34448969/198831834-6d31418c-1ad9-41d0-b928-808587ec6059.mp4

1reaction
DominikDoomcommented, Oct 29, 2022

Yeah I’m aware, I do some complex prompts from time to time myself. With my current WIP regex it would look like this: image Everything that is green was matched as a weighted tag, while brown tries to match “normal” tags. As you can see, it already works pretty well, even for nested tags - as long as they have no spaces, which is a limitation of all tags currently.

So when editing a tag that was already inserted, you’d have use underscores: image to still get a proper match. Maybe I’ll automate or work around that in the future somehow, but for now it’s out of scope.

With spaces ignored, it matches all of them as expected though, so I know the regex will also work for the future. image I just can’t ignore them for now because I have no mechanism in place to search & insert tags with underscores or spaces seen as the same.

Read more comments on GitHub >

github_iconTop Results From Across the Web

InvokeAI/PROMPTS.md at main - GitHub
Attention weighting​​ Append a word or phrase with - or + , or a weight between 0 and 2 ( 1 =default), to...
Read more >
How do I fix this error in the notebook? 12 - Hugging Face
I seem to have no way to proceed now. Edit: Seems fixed when I tried again today. Everything else was the same. Strange.....
Read more >
An advanced guide to writing prompts for Midjourney ( text-to ...
This article helps you in writing better prompts for Midjourney. ... You have 2 free member-only stories left this month. ... Weights to...
Read more >
How to Write an Awesome Stable Diffusion Prompt
Try tweaking this first. Sampling Method: How the image is refined from noise into recognizable shapes.
Read more >
User Manual - Midjourney Documentation - GitBook
Some are required, like a prompt, others are optional and will change how the prompt is ... --iw Sets image prompt weight relative...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found