Coder Social home page Coder Social logo

docker-comfyui's Introduction

comfyui-docker

The ComfyUI Stable Diffusion client packaged in a Docker container for easy redistribution.

  • Only NVIDIA GPUs supported for now.
  • Make sure to install the NVIDIA Container Toolkit and restart your Docker daemon before first use.
  • View the example compose.yaml for instructions on how to persist things across reboot. WARNING: not persisting the /comfyui folder will cause every dependency to be redownloaded when the container is destroyed and recreated.

Configuration

  • Based on my (extremely limited) testing, xformers can be faster on some older GPUs than PyTorch 2's Cross Attention. If you have an older GPU (RTX 2xxx, maybe some RTX 3xxx GPUs), make sure to set USE_XFORMERS to true when running the container. Newer NVIDIA GPUs should keep it set to false (the default) for greater speedups.
  • Set COMFYUI_COMMIT to a git commit hash to pull a specific commit of ComfyUI, or to master (the default) to pull the latest version of ComfyUI.

Why can't we embed ComfyUI in the image directly? Why is it installed at build-time?
Some ComfyUI custom nodes require other dependencies. We could simply embed ComfyUI in the Docker image directly, but even if we bind-mounted the custom_nodes folder into the container the custom nodes would still need to reinstall their dependencies every run, which makes for quite a slow startup.

docker-comfyui's People

Contributors

isaac-mcfadyen avatar

Stargazers

Björn Wedbratt avatar  avatar

Watchers

 avatar

Forkers

bjornwed

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.