Code Monkey home page Code Monkey logo

Comments (1)

gadicc avatar gadicc commented on June 12, 2024

Hey again @digiphd, thanks for the issue.

Can you give me a bit more info here?
It looks like there's some issue during the build download stage, anything in the banana build logs?
I cloned and tested https://github.com/kiri-art/docker-diffusers-api-build-download as is, (i.e. no changes), and it all works:

Banana build log:

2023-02-18T11:19:14.000Z You've triggered a build + deploy on Banana. It may take ~1 hr to complete. Thanks for your patience. 
Waiting for logs...

SUCCESS: Git Authorization
SUCCESS: Build Started
SUCCESS: Build Finished... Running optimizations

SUCCESS: Model Registered

Your model was updated and is now deployed!

Test:

$ $ BANANA_MODEL_KEY="XXX" python test.py txt2img --banana
Running test: txt2img
{
    "modelInputs": {
        "prompt": "realistic field of grass",
        "num_inference_steps": 20
    },
    "callInputs": {}
}

# [... snipped interim calls from long load after first deploy...]

Request took 341.8s (init: 5.2s, inference: 3.6s)
Saved ./tests/output/txt2img.png

{
    "$meta": {
        "MODEL_ID": "stabilityai/stable-diffusion-2-1-base",
        "PIPELINE": "StableDiffusionPipeline",
        "SCHEDULER": "DPMSolverMultistepScheduler"
    },
    "image_base64": "[512x512 PNG image, 493.5KiB bytes]",
    "$timings": {
        "init": 5168,
        "inference": 3615
    },
    "$mem_usage": 0.7632296154709317
}

Second call (cold start):

Request took 19.2s (init: 3.2s, inference: 3.2s)
Saved ./tests/output/txt2img.png

So:

  1. You're just changing MODEL_ID and nothing else?
  2. Does it work without any changes?
  3. Anything in the banana build log file?

Thanks :)

from docker-diffusers-api.

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.