stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Interrogate weights are very wrong for interrogate files (way too high)

Open asimard1 opened this issue 2 years ago • 2 comments

Describe the bug When using interrogate, the weights that are given for terms are way too high. I'm getting things like a painting of a plate of sushi, by NHK Animation, (watercolor:81.51690363883972), (a watercolor painting:88.43751549720764), (photorealism:52.55442261695862) but weights of 50+ are impossible when even (watercolor:2) is exaggerated (that would be like adding 7 set of parentheses around the words).

To Reproduce Steps to reproduce the behavior:

  1. Go to img2img
  2. Upload image
  3. Use interrogate CLIP
  4. Weights are too high for files added in interrogate folder.

Expected behavior Weights between 0 and 1.5 maximum.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Commit revision c344ba3b325459abbf9b0df2c1b18f7bf99805b2

Additional information Having a weight of 50 is like having 41 parentheses around a word...

asimard1 avatar Oct 14 '22 18:10 asimard1

Also, I'd like to completely disable weights for terms, but there is no such option, for some reason it affects CLIP interrogator too

image

My interrogation settings: image

--deepdanbooru disabled

DenkingOfficial avatar Oct 15 '22 21:10 DenkingOfficial

I created a pull request which fixes this strange behavior https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/2907

DenkingOfficial avatar Oct 16 '22 22:10 DenkingOfficial