Giter Site home page Giter Site logo

Limited prompt about shark HOT 3 CLOSED

workpioupiou avatar workpioupiou commented on June 14, 2024
Limited prompt

from shark.

Comments (3)

NeedsMoar avatar NeedsMoar commented on June 14, 2024

If you mean at 64 / 77 tokens, then yes. The "infinite prompt" thing is an extension in automatic1111 and such that splits longer prompts and feeds them into the model in stages.

from shark.

one-lithe-rune avatar one-lithe-rune commented on June 14, 2024

Shark should currently detect and build a different unet if you go over 64 / 77 token, one that supports a longer prompts, and uses that. (I think up to 512 tokens? The .vmfb files get unet512 in the naming rather than just unet, but I'm not super sure of how it works).

It doesn't use that unet by default as that one creates somewhat different images to the 64 / 77 version with the same seed even when a longer prompt isn't needed.

from shark.

NeedsMoar avatar NeedsMoar commented on June 14, 2024

That's odd. I'm guessing I'm going over most of the time without knowing it. Looking at my built .vmfbs most are using unet512. At the same time I've had it error out saying the model could only handle 64/77 tokens when the prompt was nowhere near 512 tokens, so I'm not sure. I think this only happened when I had a really long negative prompt, so it's possible only the positive prompt is checked to see which it should use? I searched the codebase for related terms and saw quite a bit about unet512 upconvert in the chat models but not in diffusers.

from shark.

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.