Comments (5)
Yup! negative_prompt
modelInput, as it seems you worked out.
The modelInput
's are passed directly to the relevant diffusers' pipeline, so you can use whatever arguments are supported by that pipeline. I made this a little clearer in the README a few days ago with links to the common diffusers pipelines, as I admit it wasn't so obvious until then 😅
There's also a note there now about using the lpw_stable_diffusion
pipeline which supports longer prompts and prompt weights.
Thanks for all the kind words! 🙌
from docker-diffusers-api.
Hey, @digiphd! Thanks for getting this on my radar. I'll have a chance to take a look during this coming week.
As a preliminary comment, I like the idea of being able to switch the VAE at runtime, although there will be a lot of work involved to adapt how we currently cache models.
P.S. If you're impatient, in the meantime, I think you could probably:
- Clone https://huggingface.co/runwayml/stable-diffusion-v1-5/tree/fp16
- Replace the
vae
directory with the contents from https://huggingface.co/stabilityai/sd-vae-ft-mse/tree/main - Upload that "new" model back to HuggingFace and build docker-diffusers-api with that (it's possible without uploading back to huggingface, but a bit more complicated).
Alternatively, with your current setup, it's possible that if you set MODEL_PRECISION=""
and MODEL_REVISION=""
, you might get past that error by using full precision (but inference will be slower; nevertheless, maybe something useful in the interim).
Anyways, have a great weekend and we'll be in touch next week 😀
from docker-diffusers-api.
Hey @gadicc great, thanks for your suggestions I will give them ago! You're a legend!
Another thing I was wondering, was if docker-diffusers-api text-to-image supports negative keywords?
I did put it as an argument and it seemed to negatively affect the output images.
from docker-diffusers-api.
Hey @digiphd, I had a quick moment to try dreamlike-art/dreamlike-photoreal-2.0
and it works out the box for me, in both full and half precision. What version of docker-diffusers-api
are you using?
These worked for me:
$ python test.py txt2img --call-arg MODEL_ID="dreamlike-art/dreamlike-photoreal-2.0" --call-arg MODEL_PRECISION=""
$ python test.py txt2img --call-arg MODEL_ID="dreamlike-art/dreamlike-photoreal-2.0" --call-arg MODEL_PRECISION="fp16"
I just tried in the default "runtime" config. If you have this issue specifically in the -build-download
variant, let me know.
from docker-diffusers-api.
Related: #26
from docker-diffusers-api.
Related Issues (20)
- Checkpoint conversion failure should halt build
- [storage] Cloudflare R2 support HOT 4
- prompt weightings HOT 1
- ldm upsampling
- don't log secrets HOT 1
- ability to return nsfw images WITH a tag if they're nsfw
- Apple M1 / M2 / MPS support HOT 13
- Currently RUNTIME_DOWNOADS requires a MODEL_URL callInput HOT 1
- The automated release is failing 🚨 HOT 16
- CLIP guidance HOT 1
- inpaint error HOT 1
- Blurred & noisy images when used with stable-diffusion-2 and stable-diffusion-2-1 HOT 8
- Make sure xformers is installed correctly and a GPU is available HOT 5
- Fetching files on requests cause timeout HOT 3
- Need help using custom ckpt file from S3 HOT 7
- Cuda out of memory error. HOT 3
- Banana.dev - does not appear to have a file named model_index.json. HOT 1
- Is CPU only supported? HOT 2
- Clearer error when container's data isn't in `{ modelInputs, callInputs }` format. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-diffusers-api.