Skip to content

Commit

Permalink
Kning/update comfy docs (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
kning authored Mar 19, 2024
1 parent e03b322 commit ff4ef53
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions 06_gpu_and_ml/comfyui/comfy_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,13 @@
# ## Define container image
#
# Fun with ComfyUI begins with pre-trained model checkpoints.
# Add downloadable checkpoint urls to checkpoints.txt e.g. [huggingface.co/dreamlike-art/dreamlike-photoreal-2.0](https://huggingface.co/dreamlike-art/dreamlike-photoreal-2.0).
# Add downloadable checkpoints to CHECKPOINTS e.g. [huggingface.co/dreamlike-art/dreamlike-photoreal-2.0](https://huggingface.co/dreamlike-art/dreamlike-photoreal-2.0).
# The ComfyUI repository has other recommendations listed in this file:
# [notebooks/comfyui_colab.ipynb](https://github.com/comfyanonymous/ComfyUI/blob/master/notebooks/comfyui_colab.ipynb).
CHECKPOINTS = [
"https://huggingface.co/dreamlike-art/dreamlike-photoreal-2.0/resolve/main/dreamlike-photoreal-2.0.safetensors"
]

PLUGINS = [
{
"url": "https://github.com/coreyryanhanson/ComfyQR",
"requirements": "requirements.txt",
}
]


def download_checkpoints():
import httpx
Expand All @@ -59,10 +52,16 @@ def download_checkpoints():
num_bytes_downloaded = stream.num_bytes_downloaded


# You can specify ComfyUI plugins to load into the image in `plugins.json`, which is a list of dictionaries with two keys:
# `url` for the github url and an optional `requirements`` for the name of a requirements.txt to pip install (remove this key if there is none for the plugin).
# Add plugins to PLUGINS, a list of dictionaries with two keys:
# `url` for the github url and an optional `requirements` for the name of a requirements.txt to pip install (remove this key if there is none for the plugin).
# For recommended plugins, see this list:
# [WASasquatch/comfyui-plugins](https://github.com/WASasquatch/comfyui-plugins).
PLUGINS = [
{
"url": "https://github.com/coreyryanhanson/ComfyQR",
"requirements": "requirements.txt",
}
]


def download_plugins():
Expand Down

0 comments on commit ff4ef53

Please sign in to comment.