From ff4ef53ae53a62fd52566f701b35d57286c36db6 Mon Sep 17 00:00:00 2001 From: Kenny Ning Date: Tue, 19 Mar 2024 13:38:40 -0400 Subject: [PATCH] Kning/update comfy docs (#656) --- 06_gpu_and_ml/comfyui/comfy_ui.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/06_gpu_and_ml/comfyui/comfy_ui.py b/06_gpu_and_ml/comfyui/comfy_ui.py index 85c982343..a67e6b556 100644 --- a/06_gpu_and_ml/comfyui/comfy_ui.py +++ b/06_gpu_and_ml/comfyui/comfy_ui.py @@ -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 @@ -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():