Coder Social home page Coder Social logo

demo-automatic1111-sd-webui's People

Contributors

xuxant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

demo-automatic1111-sd-webui's Issues

TypeError: 'NoneType' object is not subscriptable

When I deployed the project to banana and send the post request to https://xxxx.run.banana.dev/txt2img, it responsed:

An error occured. Type: PotassiumError StatusCode: 500 Message: Traceback (most recent call last): File "/opt/conda/lib/python3.8/site-packages/potassium/potassium.py", line 114, in _handle_generic out = endpoint.func(req) File "/opt/conda/lib/python3.8/site-packages/potassium/potassium.py", line 67, in wrapper out = func(self._context, request) File "<string>", line 100, in handler TypeError: 'NoneType' object is not subscriptable

The payload of the request is
{ "params": { "prompt": "a cute dog", "negative_prompt": "low quality", "steps": 25, "sampler_name": "Euler a", "cfg_scale": 7.5, "seed": 42, "batch_size": 1, "n_iter": 1, "width": 400, "height": 400, "tiling": "false" } }

how to fix it?

init must return dictionary

ERROR: Encountered an error healthchecking your source code
��------
��Starting Potassium Server 🍌
��Running init()
�WLoading weights [8f2082e149] from /app/webui/models/Stable-diffusion/model.safetensors
�ACreating model from config: /app/webui/configs/v1-inference.yaml
�0LatentDiffusion: Running in eps-prediction mode
�&DiffusionWrapper has 859.52 M params.
�2Applying cross attention optimization (Doggettx).
�)Textual inversion embeddings loaded(0): 
��Model loaded in 1.9s (create model: 0.4s, apply weights to model: 0.2s, apply half(): 0.2s, load VAE: 0.9s, move model to device: 0.3s).
�#Traceback (most recent call last):
�'  File "app.py", line 134, in <module>
��    app.serve()
�[  File "/opt/conda/lib/python3.8/site-packages/potassium/potassium.py", line 209, in serve
��    self._init_func()
�\  File "/opt/conda/lib/python3.8/site-packages/potassium/potassium.py", line 60, in wrapper
�A    raise Exception("Potassium init() must return a dictionary")
�5Exception: Potassium init() must return a dictionary

INTERNAL ERROR: Build server encountered an unexpected error

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.