Files
ComfyUI_Kaggle/notebooks/wan-2-2-image-to-video-comfyui-setup-kaggle.ipynb
T

1 line
30 KiB
Plaintext

{"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.12.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"kaggle":{"accelerator":"nvidiaTeslaT4","dataSources":[],"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":5,"nbformat":4,"cells":[{"id":"45c14ef4-fb4d-4ab6-b36c-affc233810ad","cell_type":"markdown","source":"# Install ComfyUI and dependencies","metadata":{}},{"id":"2d925b20-b2f3-4677-a1dd-c99e9a03a35d","cell_type":"code","source":"\n# Install ComfyUI and dependencies\n!pip install -q torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118\n!pip install -q huggingface_hub\n!mkdir -p /kaggle/tmp\n!git clone https://github.com/comfyanonymous/ComfyUI.git /kaggle/tmp/ComfyUI\n%cd /kaggle/tmp/ComfyUI\n!pip install -q -r requirements.txt\n\n# Install ComfyUI-Manager\n!git clone https://github.com/ltdrdata/ComfyUI-Manager.git custom_nodes/ComfyUI-Manager\n\n \n# Install ComfyUI-KJNodes (helper nodes used in the official LTX-2.3 GGUF workflow)\n!git clone https://github.com/kijai/ComfyUI-KJNodes.git custom_nodes/ComfyUI-KJNodes\n!pip install -q -r custom_nodes/ComfyUI-KJNodes/requirements.txt\n\n# Install the missing GGUF loader custom node\n!git clone https://github.com/city96/ComfyUI-GGUF.git custom_nodes/ComfyUI-GGUF\n%cd /kaggle/tmp/ComfyUI/custom_nodes/ComfyUI-GGUF\n\n# 1. Install required python libraries for GGUF parsing\n!pip install -q -r requirements.txt\n!pip install -q gguf sentencepiece\n\nprint(\"\\nGGUF library dependencies successfully patched!\")\n!git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite.git custom_nodes/ComfyUI-VideoHelperSuite\n# 1. Move into the video helper suite directory\n%cd /kaggle/tmp/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite\n\n# 2. Force install the required system and video manipulation libraries\n!pip install -q -r requirements.txt\n!pip install -q decord av simplejson imageio-ffmpeg\n\n# Install cloudflared to expose the URL publicly\n!wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O cloudflared\n!chmod +x cloudflared\n\n\n%cd /kaggle/tmp/ComfyUI","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-07-05T07:51:10.433659Z","iopub.execute_input":"2026-07-05T07:51:10.433927Z","iopub.status.idle":"2026-07-05T07:52:20.038245Z","shell.execute_reply.started":"2026-07-05T07:51:10.433904Z","shell.execute_reply":"2026-07-05T07:52:20.037489Z"}},"outputs":[{"name":"stdout","text":"Cloning into '/kaggle/tmp/ComfyUI'...\nremote: Enumerating objects: 42712, done.\u001b[K\nremote: Counting objects: 100% (140/140), done.\u001b[K\nremote: Compressing objects: 100% (34/34), done.\u001b[K\nremote: Total 42712 (delta 126), reused 106 (delta 106), pack-reused 42572 (from 2)\u001b[K\nReceiving objects: 100% (42712/42712), 83.68 MiB | 23.99 MiB/s, done.\nResolving deltas: 100% (28959/28959), done.\n/kaggle/tmp/ComfyUI\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m26.6/26.6 MB\u001b[0m \u001b[31m67.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m15.4/15.4 MB\u001b[0m \u001b[31m93.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m0:01\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m7.0/7.0 MB\u001b[0m \u001b[31m107.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m346.8/346.8 kB\u001b[0m \u001b[31m25.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m63.8/63.8 kB\u001b[0m \u001b[31m5.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.7/2.7 MB\u001b[0m \u001b[31m74.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m100.1/100.1 MB\u001b[0m \u001b[31m19.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m89.4/89.4 MB\u001b[0m \u001b[31m21.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m89.1/89.1 MB\u001b[0m \u001b[31m21.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m104.3/104.3 MB\u001b[0m \u001b[31m18.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m00:01\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m61.2/61.2 kB\u001b[0m \u001b[31m3.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m35.5/35.5 MB\u001b[0m \u001b[31m56.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m00:01\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m320.8/320.8 kB\u001b[0m \u001b[31m20.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m4.6/4.6 MB\u001b[0m \u001b[31m98.0 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m:00:01\u001b[0m\n\u001b[?25hCloning into 'custom_nodes/ComfyUI-Manager'...\nremote: Enumerating objects: 31274, done.\u001b[K\nremote: Counting objects: 100% (195/195), done.\u001b[K\nremote: Compressing objects: 100% (94/94), done.\u001b[K\nremote: Total 31274 (delta 143), reused 118 (delta 101), pack-reused 31079 (from 3)\u001b[K\nReceiving objects: 100% (31274/31274), 173.31 MiB | 36.58 MiB/s, done.\nResolving deltas: 100% (23180/23180), done.\nCloning into 'custom_nodes/ComfyUI-KJNodes'...\nremote: Enumerating objects: 5720, done.\u001b[K\nremote: Counting objects: 100% (2810/2810), done.\u001b[K\nremote: Compressing objects: 100% (526/526), done.\u001b[K\nremote: Total 5720 (delta 2468), reused 2284 (delta 2284), pack-reused 2910 (from 2)\u001b[K\nReceiving objects: 100% (5720/5720), 25.86 MiB | 33.10 MiB/s, done.\nResolving deltas: 100% (3900/3900), done.\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.8/1.8 MB\u001b[0m \u001b[31m45.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m00:01\u001b[0m\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m67.1/67.1 kB\u001b[0m \u001b[31m4.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25hCloning into 'custom_nodes/ComfyUI-GGUF'...\nremote: Enumerating objects: 814, done.\u001b[K\nremote: Counting objects: 100% (508/508), done.\u001b[K\nremote: Compressing objects: 100% (198/198), done.\u001b[K\nremote: Total 814 (delta 458), reused 310 (delta 310), pack-reused 306 (from 2)\u001b[K\nReceiving objects: 100% (814/814), 190.09 KiB | 6.79 MiB/s, done.\nResolving deltas: 100% (543/543), done.\n/kaggle/tmp/ComfyUI/custom_nodes/ComfyUI-GGUF\n\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m118.5/118.5 kB\u001b[0m \u001b[31m4.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n\u001b[?25h\nGGUF library dependencies successfully patched!\nCloning into 'custom_nodes/ComfyUI-VideoHelperSuite'...\nremote: Enumerating objects: 3368, done.\u001b[K\nremote: Counting objects: 100% (12/12), done.\u001b[K\nremote: Compressing objects: 100% (9/9), done.\u001b[K\nremote: Total 3368 (delta 5), reused 3 (delta 3), pack-reused 3356 (from 2)\u001b[K\nReceiving objects: 100% (3368/3368), 814.63 KiB | 15.37 MiB/s, done.\nResolving deltas: 100% (1977/1977), done.\n","output_type":"stream"}],"execution_count":1},{"id":"14f2fb72-8534-4b6e-b8c4-18ff4a52c813","cell_type":"markdown","source":"# Download models","metadata":{}},{"id":"6647d521-419a-4729-a2bb-8b9aa4caf3ce","cell_type":"code","source":"%cd /kaggle/tmp/ComfyUI\n\n# 3. Create the required directory for clip_vision models\n!mkdir -p models/clip_vision\n# Create standard target directories\n!mkdir -p models/unet\n!mkdir -p models/text_encoders\n!mkdir -p models/vae\n!mkdir -p models/clip_vision\n\n\n# Use huggingface_hub to fetch your chosen befox GGUF model paths\nfrom huggingface_hub import hf_hub_download\n\n\nprint(\"Downloading clip_vision_h.safetensors from the correct repository...\")\nhf_hub_download(\n repo_id=\"Comfy-Org/Wan_2.1_ComfyUI_repackaged\", # Switched repo path\n filename=\"split_files/clip_vision/clip_vision_h.safetensors\",\n local_dir=\"models/clip_vision\",\n local_dir_use_symlinks=False\n)\n\nprint(\"Downloading the correct Image-to-Video (I2V) GGUF file...\")\nhf_hub_download(\n repo_id=\"befox/WAN2.2-14B-Rapid-AllInOne-GGUF\",\n filename=\"v10/wan2.2-i2v-rapid-aio-v10-nsfw-Q4_K.gguf\", # Notice the i2v swap here\n local_dir=\"models/unet\",\n local_dir_use_symlinks=False\n)\n\nprint(\"Downloading Wan 2.1 VAE...\")\nhf_hub_download(\n repo_id=\"Comfy-Org/Wan_2.2_ComfyUI_Repackaged\",\n filename=\"split_files/vae/wan_2.1_vae.safetensors\",\n local_dir=\"models/vae\",\n local_dir_use_symlinks=False\n)\n\nprint(\"Downloading Text Encoder...\")\nhf_hub_download(\n repo_id=\"Comfy-Org/Wan_2.1_ComfyUI_repackaged\",\n filename=\"split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors\",\n local_dir=\"models/text_encoders\",\n local_dir_use_symlinks=False\n)\n\nprint(\"All set! Files successfully downloaded to /kaggle/tmp/ComfyUI/models/.\")","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-07-05T07:52:20.039993Z","iopub.execute_input":"2026-07-05T07:52:20.040216Z","iopub.status.idle":"2026-07-05T07:53:54.109688Z","shell.execute_reply.started":"2026-07-05T07:52:20.04019Z","shell.execute_reply":"2026-07-05T07:53:54.108882Z"}},"outputs":[{"name":"stdout","text":"/kaggle/tmp/ComfyUI\nDownloading clip_vision_h.safetensors from the correct repository...\n","output_type":"stream"},{"name":"stderr","text":"/usr/local/lib/python3.12/dist-packages/huggingface_hub/utils/_validators.py:205: UserWarning: The `local_dir_use_symlinks` argument is deprecated and ignored in `hf_hub_download`. Downloading to a local directory does not use symlinks anymore.\n warnings.warn(\nWarning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.\n","output_type":"stream"},{"output_type":"display_data","data":{"text/plain":"split_files/clip_vision/clip_vision_h.sa(…): 0%| | 0.00/1.26G [00:00<?, ?B/s]","application/vnd.jupyter.widget-view+json":{"version_major":2,"version_minor":0,"model_id":"d35fb0f9127a4a639b30abedc2513412"}},"metadata":{}},{"name":"stdout","text":"Downloading the correct Image-to-Video (I2V) GGUF file...\n","output_type":"stream"},{"output_type":"display_data","data":{"text/plain":"v10/wan2.2-i2v-rapid-aio-v10-nsfw-Q4_K.g(…): 0%| | 0.00/10.8G [00:00<?, ?B/s]","application/vnd.jupyter.widget-view+json":{"version_major":2,"version_minor":0,"model_id":"ec98afc5aea64625844827f37f5feadf"}},"metadata":{}},{"name":"stdout","text":"Downloading Wan 2.1 VAE...\n","output_type":"stream"},{"output_type":"display_data","data":{"text/plain":"split_files/vae/wan_2.1_vae.safetensors: 0%| | 0.00/254M [00:00<?, ?B/s]","application/vnd.jupyter.widget-view+json":{"version_major":2,"version_minor":0,"model_id":"65fafcd55dc148a993ca9f5103651538"}},"metadata":{}},{"name":"stdout","text":"Downloading Text Encoder...\n","output_type":"stream"},{"output_type":"display_data","data":{"text/plain":"split_files/text_encoders/umt5_xxl_fp8_e(…): 0%| | 0.00/6.74G [00:00<?, ?B/s]","application/vnd.jupyter.widget-view+json":{"version_major":2,"version_minor":0,"model_id":"70d2d1ce59b74b8881a2fea876703ee0"}},"metadata":{}},{"name":"stdout","text":"All set! Files successfully downloaded to /kaggle/tmp/ComfyUI/models/.\n","output_type":"stream"}],"execution_count":2},{"id":"576e01e2-0e0d-4003-890e-0f10611e4ab9","cell_type":"markdown","source":"# Install cloudflared for the tunnel public URL for the comfy UI","metadata":{}},{"id":"18d93790-ceda-4911-9f3b-faafe532f046","cell_type":"code","source":"!wget -q https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -O /kaggle/tmp/cloudflared\n!chmod +x /kaggle/tmp/cloudflared\n!ls -lh /kaggle/tmp/cloudflared","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-07-05T07:53:54.111178Z","iopub.execute_input":"2026-07-05T07:53:54.111417Z","iopub.status.idle":"2026-07-05T07:53:54.779566Z","shell.execute_reply.started":"2026-07-05T07:53:54.11139Z","shell.execute_reply":"2026-07-05T07:53:54.77858Z"}},"outputs":[{"name":"stdout","text":"-rwxr-xr-x 1 root root 38M Jun 18 14:40 /kaggle/tmp/cloudflared\n","output_type":"stream"}],"execution_count":3},{"id":"0a18c0c5-84de-466c-b06c-88287a3390cc","cell_type":"markdown","source":"# Start Comfy UI","metadata":{}},{"id":"c42dcf05-77ef-4bdd-80eb-48a5e47bc948","cell_type":"code","source":"import subprocess, time\n \n# Added the --enable-manager flag and forced custom node checking\nproc = subprocess.Popen([\"python\", \"main.py\", \"--listen\", \"0.0.0.0\", \"--port\", \"8182\", \"--enable-manager\"])\ntime.sleep(5)","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-07-05T07:55:04.865611Z","iopub.execute_input":"2026-07-05T07:55:04.866335Z","iopub.status.idle":"2026-07-05T07:55:09.87106Z","shell.execute_reply.started":"2026-07-05T07:55:04.8663Z","shell.execute_reply":"2026-07-05T07:55:09.870159Z"}},"outputs":[{"name":"stderr","text":"\u001b[32m[INFO]\u001b[0m setup plugin alembic.autogenerate.schemas\n\u001b[32m[INFO]\u001b[0m setup plugin alembic.autogenerate.tables\n\u001b[32m[INFO]\u001b[0m setup plugin alembic.autogenerate.types\n\u001b[32m[INFO]\u001b[0m setup plugin alembic.autogenerate.constraints\n\u001b[32m[INFO]\u001b[0m setup plugin alembic.autogenerate.defaults\n\u001b[32m[INFO]\u001b[0m setup plugin alembic.autogenerate.comments\n\u001b[1m\u001b[33m[WARNING]\u001b[0m \n\nTo use the `--enable-manager` feature, the `comfyui-manager` package must be installed first.\ncommand:\n\t/usr/bin/python3 -m pip install -r /kaggle/tmp/ComfyUI/manager_requirements.txt\nor using uv:\n\tuv pip install -r /kaggle/tmp/ComfyUI/manager_requirements.txt\n\n","output_type":"stream"},{"name":"stdout","text":"FETCH ComfyRegistry Data: 5/159\n[START] Security scan\n[DONE] Security scan\n## ComfyUI-Manager: installing dependencies done.\n** ComfyUI startup time: 2026-07-05 07:55:08.756\n** Platform: Linux\n** Python version: 3.12.13 (main, Mar 4 2026, 09:23:07) [GCC 11.4.0]\n** Python executable: /usr/bin/python3\n** ComfyUI Path: /kaggle/tmp/ComfyUI\n** ComfyUI Base Folder Path: /kaggle/tmp/ComfyUI\n** User directory: /kaggle/tmp/ComfyUI/user\n** ComfyUI-Manager config path: /kaggle/tmp/ComfyUI/user/__manager/config.ini\n** Log path: /kaggle/tmp/ComfyUI/user/comfyui.log\nFETCH ComfyRegistry Data: 10/159\n","output_type":"stream"},{"name":"stderr","text":"\u001b[32m[INFO]\u001b[0m \nPrestartup times for custom nodes:\n\u001b[32m[INFO]\u001b[0m 6.7 seconds: /kaggle/tmp/ComfyUI/custom_nodes/ComfyUI-Manager\n\u001b[32m[INFO]\u001b[0m \n","output_type":"stream"},{"name":"stdout","text":"FETCH ComfyRegistry Data: 15/159\n","output_type":"stream"},{"name":"stderr","text":"\u001b[1m\u001b[33m[WARNING]\u001b[0m WARNING: You need pytorch with cu130 or higher to use optimized CUDA operations.\n\u001b[32m[INFO]\u001b[0m Found comfy_kitchen backend triton: {'available': True, 'disabled': True, 'unavailable_reason': None, 'capabilities': ['adaln', 'apply_rope', 'apply_rope1', 'apply_rope_split_half', 'apply_rope_split_half1', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'int8_linear', 'quantize_and_rotate_rowwise', 'quantize_int8_rowwise', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8']}\n\u001b[32m[INFO]\u001b[0m Found comfy_kitchen backend cuda: {'available': True, 'disabled': True, 'unavailable_reason': None, 'capabilities': ['adaln', 'apply_rope', 'apply_rope1', 'apply_rope_split_half', 'apply_rope_split_half1', 'dequantize_int8_convrot_weight', 'dequantize_int8_convrot_weight_dtype', 'dequantize_int8_simple', 'dequantize_int8_simple_dtype', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'gemv_awq_w4a16', 'int8_linear', 'quantize_and_rotate_rowwise', 'quantize_int8_convrot_weight', 'quantize_int8_rowwise', 'quantize_int8_tensorwise', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'scaled_mm_nvfp4', 'scaled_mm_svdquant_w4a4', 'stochastic_rounding_fp8']}\n\u001b[32m[INFO]\u001b[0m Found comfy_kitchen backend eager: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['adaln', 'apply_rope', 'apply_rope1', 'apply_rope_split_half', 'apply_rope_split_half1', 'dequantize_int8_convrot_weight', 'dequantize_int8_convrot_weight_dtype', 'dequantize_int8_simple', 'dequantize_int8_simple_dtype', 'dequantize_mxfp8', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'gemv_awq_w4a16', 'int8_linear', 'quantize_and_rotate_rowwise', 'quantize_int8_convrot_weight', 'quantize_int8_rowwise', 'quantize_int8_tensorwise', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'quantize_svdquant_w4a4', 'scaled_mm_mxfp8', 'scaled_mm_nvfp4', 'scaled_mm_svdquant_w4a4', 'stochastic_rounding_fp8']}\n\u001b[32m[INFO]\u001b[0m Checkpoint files will always be loaded safely.\n\u001b[32m[INFO]\u001b[0m Total VRAM 14912 MB, total RAM 32100 MB\n\u001b[32m[INFO]\u001b[0m pytorch version: 2.10.0+cu128\n\u001b[32m[INFO]\u001b[0m Set vram state to: NORMAL_VRAM\n\u001b[32m[INFO]\u001b[0m Device: cuda:0 Tesla T4 : cudaMallocAsync\n\u001b[32m[INFO]\u001b[0m Device: cuda:1 Tesla T4 : cudaMallocAsync\n\u001b[32m[INFO]\u001b[0m Using async weight offloading with 2 streams\n\u001b[32m[INFO]\u001b[0m Enabled pinned memory 28890.0\n\u001b[32m[INFO]\u001b[0m working around nvidia conv3d memory bug.\n\u001b[32m[INFO]\u001b[0m Using pytorch attention\n","output_type":"stream"},{"name":"stdout","text":"FETCH ComfyRegistry Data: 20/159\n","output_type":"stream"},{"name":"stderr","text":"aimdo: /project/src-posix/cuda-funchooks.c:52:DEBUG:aimdo_setup_hooks: hooks successfully installed\naimdo: /project/src/control.c:247:INFO:comfy-aimdo inited for GPU: Tesla T4 (VRAM: 14911 MB)\naimdo: /project/src/control.c:247:INFO:comfy-aimdo inited for GPU: Tesla T4 (VRAM: 14911 MB)\n\u001b[32m[INFO]\u001b[0m DynamicVRAM support detected and enabled\n\u001b[32m[INFO]\u001b[0m Python version: 3.12.13 (main, Mar 4 2026, 09:23:07) [GCC 11.4.0]\n\u001b[32m[INFO]\u001b[0m ComfyUI version: 0.27.0\n\u001b[32m[INFO]\u001b[0m comfy-aimdo version: 0.4.10\n\u001b[32m[INFO]\u001b[0m comfy-kitchen version: 0.2.16\n\u001b[32m[INFO]\u001b[0m comfyui-frontend-package version: 1.45.20\n\u001b[32m[INFO]\u001b[0m comfyui-workflow-templates version: 0.11.2\n\u001b[32m[INFO]\u001b[0m comfyui-embedded-docs version: 0.5.6\n\u001b[32m[INFO]\u001b[0m comfy-kitchen version: 0.2.16\n\u001b[32m[INFO]\u001b[0m comfy-aimdo version: 0.4.10\n\u001b[32m[INFO]\u001b[0m [Prompt Server] web root: /usr/local/lib/python3.12/dist-packages/comfyui_frontend_package/static\n\u001b[32m[INFO]\u001b[0m Asset seeder disabled\n\u001b[32m[INFO]\u001b[0m No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'\n","output_type":"stream"},{"name":"stdout","text":"FETCH ComfyRegistry Data: 25/159\n","output_type":"stream"},{"name":"stderr","text":"\u001b[32m[INFO]\u001b[0m ### Loading: ComfyUI-Manager (V3.41)\n\u001b[32m[INFO]\u001b[0m [ComfyUI-Manager] network_mode: public\n\u001b[32m[INFO]\u001b[0m [ComfyUI-Manager] ComfyUI per-queue preview override detected (PR #11261). Manager's preview method feature is disabled. Use ComfyUI's --preview-method CLI option or 'Settings > Execution > Live preview method'.\n\u001b[32m[INFO]\u001b[0m ### ComfyUI Version: v0.27.0-17-g7f287b70 | Released on '2026-07-04'\n\u001b[32m[INFO]\u001b[0m ComfyUI-GGUF: Allowing full torch compile\n\u001b[32m[INFO]\u001b[0m \nImport times for custom nodes:\n\u001b[32m[INFO]\u001b[0m 0.0 seconds: /kaggle/tmp/ComfyUI/custom_nodes/websocket_image_save.py\n\u001b[32m[INFO]\u001b[0m 0.0 seconds: /kaggle/tmp/ComfyUI/custom_nodes/ComfyUI-KJNodes\n\u001b[32m[INFO]\u001b[0m 0.0 seconds: /kaggle/tmp/ComfyUI/custom_nodes/ComfyUI-GGUF\n\u001b[32m[INFO]\u001b[0m 0.1 seconds: /kaggle/tmp/ComfyUI/custom_nodes/ComfyUI-Manager\n\u001b[32m[INFO]\u001b[0m \n\u001b[32m[INFO]\u001b[0m Context impl SQLiteImpl.\n\u001b[32m[INFO]\u001b[0m Will assume non-transactional DDL.\n\u001b[1m\u001b[31m[ERROR]\u001b[0m Failed to initialize database. Please ensure you have installed the latest requirements. If the error persists, please report this as in future the database will be required: Could not acquire lock on database '/kaggle/tmp/ComfyUI/user/comfyui.db'. Another ComfyUI process may already be using it. Use --database-url to specify a separate database file.\n\u001b[32m[INFO]\u001b[0m [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json\n\u001b[32m[INFO]\u001b[0m [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json\n\u001b[32m[INFO]\u001b[0m [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json\n\u001b[32m[INFO]\u001b[0m [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json\n\u001b[32m[INFO]\u001b[0m Using RAM pressure cache.\n\u001b[32m[INFO]\u001b[0m Starting server\n\n\u001b[1m\u001b[31m[ERROR]\u001b[0m Port 8182 is already in use on address 0.0.0.0. Please close the other application or use a different port with --port.\n\u001b[32m[INFO]\u001b[0m [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json\n","output_type":"stream"},{"name":"stdout","text":"Cannot connect to comfyregistry.\nFETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json[ComfyUI-Manager] Due to a network error, switching to local mode.\n=> custom-node-list.json\n=> cannot schedule new futures after shutdown\nFETCH DATA from: /kaggle/tmp/ComfyUI/custom_nodes/ComfyUI-Manager/custom-node-list.json [DONE]\n","output_type":"stream"},{"name":"stderr","text":"\u001b[32m[INFO]\u001b[0m [ComfyUI-Manager] All startup tasks have been completed.\n","output_type":"stream"},{"name":"stdout","text":"FETCH ComfyRegistry Data: 30/159\nFETCH ComfyRegistry Data: 35/159\nFETCH ComfyRegistry Data: 40/159\nFETCH ComfyRegistry Data: 45/159\nFETCH ComfyRegistry Data: 50/159\nFETCH ComfyRegistry Data: 55/159\nFETCH ComfyRegistry Data: 60/159\nFETCH ComfyRegistry Data: 65/159\nFETCH ComfyRegistry Data: 70/159\nFETCH ComfyRegistry Data: 75/159\nFETCH ComfyRegistry Data: 80/159\nFETCH ComfyRegistry Data: 85/159\nFETCH ComfyRegistry Data: 90/159\nFETCH ComfyRegistry Data: 95/159\nFETCH ComfyRegistry Data: 100/159\nFETCH ComfyRegistry Data: 105/159\nFETCH ComfyRegistry Data: 110/159\nFETCH ComfyRegistry Data: 115/159\nFETCH ComfyRegistry Data: 120/159\nFETCH ComfyRegistry Data: 125/159\nFETCH ComfyRegistry Data: 130/159\nFETCH ComfyRegistry Data: 135/159\nFETCH ComfyRegistry Data: 140/159\nFETCH ComfyRegistry Data: 145/159\nFETCH ComfyRegistry Data: 150/159\nFETCH ComfyRegistry Data: 155/159\nFETCH ComfyRegistry Data [DONE]\n","output_type":"stream"},{"name":"stderr","text":"\u001b[32m[INFO]\u001b[0m [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes\n\u001b[32m[INFO]\u001b[0m [ComfyUI-Manager] All startup tasks have been completed.\n","output_type":"stream"},{"name":"stdout","text":"FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [DONE]\n","output_type":"stream"},{"name":"stderr","text":"\u001b[1m\u001b[33m[WARNING]\u001b[0m [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.\n\u001b[1m\u001b[33m[WARNING]\u001b[0m [DEPRECATION WARNING] Detected import of deprecated legacy API: /extensions/core/groupNode.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.\n\u001b[1m\u001b[33m[WARNING]\u001b[0m [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/buttonGroup.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.\n\u001b[1m\u001b[33m[WARNING]\u001b[0m [DEPRECATION WARNING] Detected import of deprecated legacy API: /scripts/ui/components/button.js. This is likely caused by a custom node extension using outdated APIs. Please update your extensions or contact the extension author for an updated version.\n\u001b[32m[INFO]\u001b[0m got prompt\n\u001b[1m\u001b[33m[WARNING]\u001b[0m invalid prompt: {'type': 'missing_node_type', 'message': \"Node 'ID #8' has no class_type. The workflow may be corrupted or a custom node is missing.\", 'details': \"Node ID '#8'\", 'extra_info': {'node_id': '8', 'class_type': None, 'node_title': None}}\n","output_type":"stream"}],"execution_count":6},{"id":"21f2b7cd-0b1a-48ae-8009-053919f15c37","cell_type":"markdown","source":"# Create tunnel and get URL","metadata":{}},{"id":"9b3f0de5-02ec-4026-b1e8-51a9b6bceb9c","cell_type":"code","source":"import subprocess\n\ntunnel = subprocess.Popen(\n [\"/kaggle/tmp/cloudflared\", \"tunnel\", \"--url\", \"http://localhost:8182\"],\n stdout=subprocess.PIPE,\n stderr=subprocess.STDOUT\n)\n\nprint(\"Waiting for URL... (may take 15-20 seconds)\")\nfor line in iter(tunnel.stdout.readline, b\"\"):\n line = line.decode().strip()\n print(line)\n if \"https://\" in line and \"trycloudflare.com\" in line:\n for word in line.split():\n if word.startswith(\"https://\") and \"trycloudflare.com\" in word:\n print(\"\\n\\u2705 Your ComfyUI URL:\", word)\n break\n break","metadata":{"trusted":true,"execution":{"iopub.status.busy":"2026-07-05T07:54:13.923214Z","iopub.execute_input":"2026-07-05T07:54:13.923489Z","iopub.status.idle":"2026-07-05T07:54:19.207101Z","shell.execute_reply.started":"2026-07-05T07:54:13.923466Z","shell.execute_reply":"2026-07-05T07:54:19.206365Z"}},"outputs":[{"name":"stdout","text":"Waiting for URL... (may take 15-20 seconds)\n2026-07-05T07:54:14Z INF Thank you for trying Cloudflare Tunnel. Doing so, without a Cloudflare account, is a quick way to experiment and try it out. However, be aware that these account-less Tunnels have no uptime guarantee, are subject to the Cloudflare Online Services Terms of Use (https://www.cloudflare.com/website-terms/), and Cloudflare reserves the right to investigate your use of Tunnels for violations of such terms. If you intend to use Tunnels in production you should use a pre-created named tunnel by following: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps\n2026-07-05T07:54:14Z INF Requesting new quick Tunnel on trycloudflare.com...\n[START] Security scan\n[DONE] Security scan\n## ComfyUI-Manager: installing dependencies done.\n** ComfyUI startup time: 2026-07-05 07:54:15.358\n** Platform: Linux\n** Python version: 3.12.13 (main, Mar 4 2026, 09:23:07) [GCC 11.4.0]\n** Python executable: /usr/bin/python3\n** ComfyUI Path: /kaggle/tmp/ComfyUI\n** ComfyUI Base Folder Path: /kaggle/tmp/ComfyUI\n** User directory: /kaggle/tmp/ComfyUI/user\n** ComfyUI-Manager config path: /kaggle/tmp/ComfyUI/user/__manager/config.ini\n** Log path: /kaggle/tmp/ComfyUI/user/comfyui.log\n","output_type":"stream"},{"name":"stderr","text":"\u001b[32m[INFO]\u001b[0m \nPrestartup times for custom nodes:\n\u001b[32m[INFO]\u001b[0m 7.6 seconds: /kaggle/tmp/ComfyUI/custom_nodes/ComfyUI-Manager\n\u001b[32m[INFO]\u001b[0m \n","output_type":"stream"},{"name":"stdout","text":"2026-07-05T07:54:19Z INF +--------------------------------------------------------------------------------------------+\n2026-07-05T07:54:19Z INF | Your quick Tunnel has been created! Visit it at (it may take some time to be reachable): |\n2026-07-05T07:54:19Z INF | https://find-supplies-rca-opt.trycloudflare.com |\n\n✅ Your ComfyUI URL: https://find-supplies-rca-opt.trycloudflare.com\n","output_type":"stream"}],"execution_count":5}]}