Git Product home page Git Product logo

Comments (4)

aigias avatar aigias commented on July 21, 2024 1

I once found the same issue. In my case, it was caused by a certain prompt. After I removed it, problem resolved.
I guess it's not because that certain words but something wrong was pasted in the prompt box which is unseen. You can try remove each tag and regenerate the image to see if it can be fixed.
This is what I found, or they're not the same cause.

from sd-webui-cutoff.

hnmr293 avatar hnmr293 commented on July 21, 2024

Thank you for your feedback.

  1. Let me know your generation information, especially the prompt, the negative prompt and cutoff tokens.
  2. Let me know your WebUI version - A1111, vladmandic or others, and its commit number.

from sd-webui-cutoff.

cong-bao avatar cong-bao commented on July 21, 2024

@hnmr293
I'm sorry I used Machine translation, but it may not be very clear

Hello, I have also experienced this situation.
I found that this error occurs when the length of my prompt or Negative prompt exceeds 150.

I used the content of Negative prompt when testing prompt

Negative prompt:
((((ugly)))),lowres, bad anatomy, [:((No more than one thumb, index finger, middle finger, ring finger and little finger on one hand),(mutated hands and fingers:1.5 ), fused ears, one hand with more than 5 fingers, one hand with less than 5 fingers,):0.5] bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, Missing limbs, three arms, bad feet, text font ui, signature, blurry, malformed hands, long neck, mutated hands and fingers :1.5).(long body :1.3),(mutation ,poorly drawn :1.2), disfigured, malformed, mutated, multiple breasts, yaoi, three legs,

Finally, this is the version of the extension I am using.

IrisRainbowNeko/DreamArtist-sd-webui-extension@12f8077
KohakuBlueleaf/a1111-sd-webui-haku-img@5069e2b
KohakuBlueleaf/a1111-sd-webui-lycoris@4b005e3
DominikDoom/a1111-sd-webui-tagcomplete@1cb4fc8
pkuliyi2015/multidiffusion-upscaler-for-automatic1111@70b3c5e
nonnonstop/sd-webui-3d-open-pose-editor@f2d5aac
Mikubill/sd-webui-controlnet@d8551e4
3a073e9
zanllp/sd-webui-infinite-image-browsing@55d154e
Physton/sd-webui-prompt-all-in-one@937e45b
d8ahazard/sd_dreambooth_extension@b396af2
toriato/stable-diffusion-webui-wd14-tagger@3ba3a73

from sd-webui-cutoff.

greasyi avatar greasyi commented on July 21, 2024

Yes, sometimes just 1 token is the difference between getting an error or not. I don't think I had any other plugins running. Options for the plugin don't seem make a difference, once a prompt is "bad", it will repro 100% of the time as long as there is 1 target token which matches 1 thing in the prompt.

If I add 5-10 commas to the prompt, the issue goes away.

AssertionError: tensor and t must have same shape
    tensor: torch.Size([154, 768])
     t:torch.Size([77, 768])

The numbers 77 and 154 are suspicious to me, because multiples of 75 are about where prompts get split up. Could be that a mis-match in pre- and post-cutoff prompt lengths is the issue.

from sd-webui-cutoff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.