Skip to content

Latest commit

 

History

History
127 lines (101 loc) · 7.68 KB

File metadata and controls

127 lines (101 loc) · 7.68 KB

Jetson-Example: Run ComfyUI (Stable Diffusion GUI) on NVIDIA Jetson Orin 🚀

One-Click Quick Deployment of Plug-and-Play Stable Diffusion GUI

comfyui

Introduction 📘

ComfyUI will let you design and execute advanced stable diffusion pipelines using a graph/nodes/flowchart based interface. In this project, you can quickly deploy ComfyUI on Nvidia Jetson Orin devices with one click.

Key Features:

  • One-click installation and configuration support for Nvidia Jetson Orin devices.

  • GPU acceleration to optimize the performance of stable diffusion pipelines.

  • Nodes/graph/flowchart interface to experiment and create complex Stable Diffusion workflows without needing to code anything.

  • Fully supports SD1.x, SD2.x, SDXL, Stable Video Diffusion, Stable Cascade, SD3 and Stable Audio

  • Flux

  • Asynchronous Queue system

  • Many optimizations: Only re-executes the parts of the workflow that changes between executions.

  • Smart memory management: can automatically run models on GPUs with as low as 1GB vram.

    For other features, please refer to the original project ComfyUI.

    Workflow examples can be found on the Examples page

Get a Jetson Orin Device 🛒

Device Model Description Link
Jetson Orin Nano Dev Kit, Orin Nano 8GB, 40TOPS Developer kit for NVIDIA Jetson Orin Nano Buy Here
reComputer J4012, powered by Orin NX 16GB, 100 TOPS Embedded computer powered by Orin NX Buy Here

Quickstart

Modify Docker Daemon Configuration (Optional)

To enhance the experience of quickly loading models in Docker, you need to add the following content to the /etc/docker/daemon.json file:

{
  "default-runtime": "nvidia",
  "runtimes": {
    "nvidia": {
      "path": "nvidia-container-runtime",
      "runtimeArgs": []
    }
  },
  "storage-driver": "overlay2",
  "data-root": "/var/lib/docker",
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "100m",
    "max-file": "3"
  },
  "no-new-privileges": true,
  "experimental": false
}

After modifying the daemon.json file, you need to restart the Docker service to apply the configuration:

sudo systemctl restart docker

Installation via PyPI (Recommended) 🐍

  1. Install the package:

    pip install jetson-examples
  2. Restart your reComputer:

    sudo reboot
  3. Run ComfyUI with one command:

    reComputer run comfyui
  • Input Dir: Mount the input directory in Docker to the host directory ~/ComfyUI/input.

  • Output Dir: Mount the output directory in Docker to the host directory ~/ComfyUI/output.

  • Models Dir: Mount the models directory in Docker to the host directory ~/ComfyUI/models.

For more tutorials 🔧

Shortcuts

Keybind Explanation
Ctrl + Enter Queue up current graph for generation
Ctrl + Shift + Enter Queue up current graph as first for generation
Ctrl + Z/Ctrl + Y Undo/Redo
Ctrl + S Save workflow
Ctrl + O Load workflow
Ctrl + A Select all nodes
Alt + C Collapse/uncollapse selected nodes
Ctrl + M Mute/unmute selected nodes
Ctrl + B Bypass selected nodes (acts like the node was removed from the graph and the wires reconnected through)
Delete/Backspace Delete selected nodes
Ctrl + Backspace Delete the current graph
Space Move the canvas around when held and moving the cursor
Ctrl/Shift + Click Add clicked node to selection
Ctrl + C/Ctrl + V Copy and paste selected nodes (without maintaining connections to outputs of unselected nodes)
Ctrl + C/Ctrl + Shift + V Copy and paste selected nodes (maintaining connections from outputs of unselected nodes to inputs of pasted nodes)
Shift + Drag Move multiple selected nodes at the same time
Ctrl + D Load default graph
Alt + + Canvas Zoom in
Alt + - Canvas Zoom out
Ctrl + Shift + LMB + Vertical drag Canvas Zoom in/out
Q Toggle visibility of the queue
H Toggle visibility of history
R Refresh graph
Double-Click LMB Open node quick search palette

License

This project is licensed under the GNU General Public License v3.0