GithubHelp home page GithubHelp logo

runpod / serverless-workers Goto Github PK

View Code? Open in Web Editor NEW
50.0 6.0 17.0 245.99 MB

⚙️ | REPLACED BY https://github.com/runpod-workers | Official set of serverless worker provided by RunPod as endpoints.

Home Page: https://github.com/runpod-workers

License: MIT License

Python 96.75% Dockerfile 0.36% Shell 0.37% Makefile 0.01% C++ 2.18% C 0.15% Cuda 0.19%
ai containers runpod serverless workers anything-v3 openjourney stable-diffusion whisper docker

serverless-workers's People

Contributors

andreemic avatar flash-singh avatar jleifeld avatar justinmerrell avatar therealadityashankar avatar zhl146 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

serverless-workers's Issues

breaking run

/v2/stable-diffusion-v1/runsync

{
    "input": {
        "prompt": "a cute magical flying dog, fantasy art drawn by disney concept artists",
        "seed": 13,
        "init_image": "https://www.fashionbubbles.com/wp-content/uploads/2021/04/quarto-de-casal.jpg"
    }
}
{
    "delayTime": 373,
    "error": "handler: cannot identify image file 'input_objects/7ff70615-e373-4e1d-b313-a77068abbbea.jpg' \ntraceback: Traceback (most recent call last):\n  File \"/root/.pyenv/versions/3.10.10/lib/python3.10/site-packages/runpod/serverless/modules/job.py\", line 47, in run_job\n    job_output = handler(job)\n  File \"/src/runpod_infer.py\", line 114, in run\n    img_paths = MODEL.predict(\n  File \"/root/.pyenv/versions/3.10.10/lib/python3.10/site-packages/torch/autograd/grad_mode.py\", line 27, in decorate_context\n    return func(*args, **kwargs)\n  File \"/root/.pyenv/versions/3.10.10/lib/python3.10/site-packages/torch/amp/autocast_mode.py\", line 14, in decorate_autocast\n    return func(*args, **kwargs)\n  File \"/src/predict.py\", line 162, in predict\n    \"init_image\": Image.open(init_image).convert(\"RGB\"),\n  File \"/root/.pyenv/versions/3.10.10/lib/python3.10/site-packages/PIL/Image.py\", line 3283, in open\n    raise UnidentifiedImageError(msg)\nPIL.UnidentifiedImageError: cannot identify image file 'input_objects/7ff70615-e373-4e1d-b313-a77068abbbea.jpg'\n",
    "executionTime": 357,
    "id": "sync-35822e14-ccf8-4e21-b8cc-a306523c03a9",
    "status": "FAILED"
}

Standard Return SD

Expand the information that is returned for SD outputs to include more details similar to DB output.

DreamBooth __MACOSX Folder

Need to completely remove the folder before processing, this can be accomplished via zip -r YOURZIPFILE.zip . -x '/.*' -x '/__MACOSX'

Sizes of tensors must match

Input:

{"width"=>512, "height"=>512, "prompt"=>"Beautiful voluptuous post apocalyptic portrait of male Ryan Gosling , attractive detailed render eyecandy breathtaking 8k resolution concept art Greg Rutkowski, Artgerm, WLOP, Alphonse Mucha dynamic lighting hyperdetailed intricately detailed Splash art trending on Artstation triadic colors Unreal Engine 5 volumetric lighting", "scheduler"=>"K-LMS", "num_outputs"=>4, "guidance_scale"=>14.5, "negative_prompt"=>"outside, unproportionable, unsymmetrical, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, ugly, blurry, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, ugly, extra limbs, bad anatomy, gross proportions, malformed limbs, extra arms, extra legs, mutated hands, fused fingers, too many fingers, mask, face mask, long neck", "num_inference_steps"=>105}

Output:
Sizes of tensors must match except in dimension 0. Expected size 3072 but got size 768 for tensor number 1 in the list.

Cannot build docker for controlnet

Hi i run docker build for controlnet but error, please help me !

Dockerfile:23

21 |
22 | RUN apt-get update && apt-get install -y --no-install-recommends
23 | >>> RUN apt-get install software-properties-common -y
24 | RUN add-apt-repository ppa:deadsnakes/ppa
25 | RUN apt-get install python3.8 -y

ERROR: failed to solve: process "/bin/bash -o pipefail -c apt-get install software-properties-common -y" did not complete successfully: exit code: 100

ckpt Issue

2023-04-06T13:02:06.168985065Z huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/src/stable-diffusion-custom'. Use `repo_type` argument if needed.
2023-04-06T13:02:06.861009415Z Traceback (most recent call last):
2023-04-06T13:02:06.861049155Z   File "/usr/local/bin/accelerate", line 8, in <module>
2023-04-06T13:02:06.861249321Z     sys.exit(main())
2023-04-06T13:02:06.861287175Z   File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/accelerate_cli.py", line 43, in main
2023-04-06T13:02:06.861346261Z     args.func(args)
2023-04-06T13:02:06.861357645Z   File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/launch.py", line 837, in launch_command
2023-04-06T13:02:06.861757908Z     simple_launcher(args)
2023-04-06T13:02:06.861770689Z   File "/usr/local/lib/python3.10/dist-packages/accelerate/commands/launch.py", line 354, in simple_launcher
2023-04-06T13:02:06.861963661Z     raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
2023-04-06T13:02:06.862018626Z subprocess.CalledProcessError: Command '['/usr/bin/python', '/src/diffusers/examples/dreambooth/train_dreambooth_rnpdendpt.py', '--train_text_encoder', '--dump_only_text_encoder', '--pretrained_model_name_or_path=/src/stable-diffusion-custom', '--instance_data_dir=job_files/4b9d92f0-5660-4095-bf4d-855adf62428e/clean_data', '--instance_prompt=', '--output_dir=job_files/4b9d92f0-5660-4095-bf4d-855adf62428e/model', '--seed=555', '--resolution=512', '--train_batch_size=1', '--max_train_steps=400', '--gradient_accumulation_steps=1', '--learning_rate=2e-06', '--lr_scheduler=polynomial', '--lr_warmup_steps=0', '--mixed_precision=fp16', '--image_captions_filename']' returned non-zero exit status 1.

Handle NSWF Gracefully

NSFW images should not result in job error and have an indicator to the user as to what happened.

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.