From b3ff48cb33ab3aafbb6511b6aa892fcaed369d8b Mon Sep 17 00:00:00 2001 From: chau-fifiwy Date: Sun, 3 Aug 2025 23:30:32 +0800 Subject: [PATCH 1/2] Create animated-diff.sh --- .../provisioning_scripts/animated-diff.sh | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 derivatives/pytorch/derivatives/comfyui/provisioning_scripts/animated-diff.sh diff --git a/derivatives/pytorch/derivatives/comfyui/provisioning_scripts/animated-diff.sh b/derivatives/pytorch/derivatives/comfyui/provisioning_scripts/animated-diff.sh new file mode 100644 index 00000000..546bf58b --- /dev/null +++ b/derivatives/pytorch/derivatives/comfyui/provisioning_scripts/animated-diff.sh @@ -0,0 +1,31 @@ +#!/bin/bash +set -euo pipefail + +# Install AnimateDiff-Evolved extension +cd /workspace/ComfyUI/custom_nodes || exit 1 +if [ ! -d "ComfyUI-AnimateDiff-Evolved" ]; then + git clone https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved.git +fi + +MODEL_DIR="/workspace/ComfyUI/models/checkpoints" +mkdir -p "$MODEL_DIR" +cd "$MODEL_DIR" + +# SD 2.1 768 checkpoint +if [ ! -f "v2-1_768-ema-pruned.safetensors" ]; then + wget -O v2-1_768-ema-pruned.safetensors "https://huggingface.co/stabilityai/stable-diffusion-2-1/resolve/main/v2-1_768-ema-pruned.safetensors" +fi + +if [ ! -f "v1-5-pruned-emaonly-fp16.safetensors" ]; then + wget -O v1-5-pruned-emaonly-fp16.safetensors "https://huggingface.co/Comfy-Org/stable-diffusion-v1-5-archive/resolve/main/v1-5-pruned-emaonly-fp16.safetensors" +fi + +WORKFLOW_DIR="/workspace/ComfyUI/user/default/workflows" +mkdir -p "$WORKFLOW_DIR" +WORKFLOW_URL="https://gist.githubusercontent.com/chau-fifiwy/8e7a78adc49b391f3273c707e8394dac/raw/8ee39945f8764c7722e42679effe625ab0e3b06a/gistfile1.json" +WORKFLOW_PATH="$WORKFLOW_DIR/bunny_workflow.json" +if [ ! -f "$WORKFLOW_PATH" ]; then + wget -O "$WORKFLOW_PATH" "$WORKFLOW_URL" +fi + +echo "Provisioning complete!" From 1cec0830f5049abbe72d54e401a25c33ae1e3841 Mon Sep 17 00:00:00 2001 From: chau-fifiwy Date: Sun, 3 Aug 2025 23:51:07 +0800 Subject: [PATCH 2/2] Create animated_diff.json --- .../comfyui/workflows/animated_diff.json | 481 ++++++++++++++++++ 1 file changed, 481 insertions(+) create mode 100644 derivatives/pytorch/derivatives/comfyui/workflows/animated_diff.json diff --git a/derivatives/pytorch/derivatives/comfyui/workflows/animated_diff.json b/derivatives/pytorch/derivatives/comfyui/workflows/animated_diff.json new file mode 100644 index 00000000..9777eaf5 --- /dev/null +++ b/derivatives/pytorch/derivatives/comfyui/workflows/animated_diff.json @@ -0,0 +1,481 @@ +{ + "id": "78e0a213-becf-436a-b928-077732d22dc0", + "revision": 0, + "last_node_id": 10, + "last_link_id": 9, + "nodes": [ + { + "id": 7, + "type": "CLIPTextEncode", + "pos": [ + 413, + 389 + ], + "size": [ + 425.27801513671875, + 180.6060791015625 + ], + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 5 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "slot_index": 0, + "links": [ + 6 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.47", + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "text, watermark" + ] + }, + { + "id": 5, + "type": "EmptyLatentImage", + "pos": [ + 473, + 609 + ], + "size": [ + 315, + 106 + ], + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "slot_index": 0, + "links": [ + 2 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.47", + "Node name for S&R": "EmptyLatentImage" + }, + "widgets_values": [ + 512, + 512, + 1 + ] + }, + { + "id": 3, + "type": "KSampler", + "pos": [ + 863, + 186 + ], + "size": [ + 315, + 262 + ], + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [ + { + "name": "model", + "type": "MODEL", + "link": 1 + }, + { + "name": "positive", + "type": "CONDITIONING", + "link": 4 + }, + { + "name": "negative", + "type": "CONDITIONING", + "link": 6 + }, + { + "name": "latent_image", + "type": "LATENT", + "link": 2 + } + ], + "outputs": [ + { + "name": "LATENT", + "type": "LATENT", + "slot_index": 0, + "links": [ + 7 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.47", + "Node name for S&R": "KSampler" + }, + "widgets_values": [ + 226603171695485, + "randomize", + 20, + 8, + "euler", + "normal", + 1 + ] + }, + { + "id": 8, + "type": "VAEDecode", + "pos": [ + 1209, + 188 + ], + "size": [ + 210, + 46 + ], + "flags": {}, + "order": 6, + "mode": 0, + "inputs": [ + { + "name": "samples", + "type": "LATENT", + "link": 7 + }, + { + "name": "vae", + "type": "VAE", + "link": 8 + } + ], + "outputs": [ + { + "name": "IMAGE", + "type": "IMAGE", + "slot_index": 0, + "links": [ + 9 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.47", + "Node name for S&R": "VAEDecode" + }, + "widgets_values": [] + }, + { + "id": 4, + "type": "CheckpointLoaderSimple", + "pos": [ + 26, + 474 + ], + "size": [ + 315, + 98 + ], + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "MODEL", + "type": "MODEL", + "slot_index": 0, + "links": [ + 1 + ] + }, + { + "name": "CLIP", + "type": "CLIP", + "slot_index": 1, + "links": [ + 3, + 5 + ] + }, + { + "name": "VAE", + "type": "VAE", + "slot_index": 2, + "links": [ + 8 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.47", + "Node name for S&R": "CheckpointLoaderSimple", + "models": [ + { + "name": "v1-5-pruned-emaonly-fp16.safetensors", + "url": "https://huggingface.co/Comfy-Org/stable-diffusion-v1-5-archive/resolve/main/v1-5-pruned-emaonly-fp16.safetensors?download=true", + "directory": "checkpoints" + } + ] + }, + "widgets_values": [ + "v1-5-pruned-emaonly-fp16.safetensors" + ] + }, + { + "id": 9, + "type": "SaveImage", + "pos": [ + 1453.1353759765625, + 141.30868530273438 + ], + "size": [ + 210, + 270 + ], + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "images", + "type": "IMAGE", + "link": 9 + } + ], + "outputs": [], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.47" + }, + "widgets_values": [ + "ComfyUI" + ] + }, + { + "id": 10, + "type": "ADE_AnimateDiffSamplingSettings", + "pos": [ + 1182.533447265625, + 327.1310119628906 + ], + "size": [ + 218.09375, + 274 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [ + { + "name": "noise_layers", + "shape": 7, + "type": "NOISE_LAYERS", + "link": null + }, + { + "name": "iteration_opts", + "shape": 7, + "type": "ITERATION_OPTS", + "link": null + }, + { + "name": "seed_override", + "shape": 7, + "type": "INT", + "link": null + }, + { + "name": "custom_cfg", + "shape": 7, + "type": "CUSTOM_CFG", + "link": null + }, + { + "name": "sigma_schedule", + "shape": 7, + "type": "SIGMA_SCHEDULE", + "link": null + }, + { + "name": "image_inject", + "shape": 7, + "type": "IMAGE_INJECT", + "link": null + }, + { + "name": "ancestral_opts", + "shape": 7, + "type": "ANCESTRAL_OPTS", + "link": null + } + ], + "outputs": [ + { + "name": "settings", + "type": "SAMPLE_SETTINGS", + "links": null + } + ], + "properties": { + "aux_id": "Kosinkadink/ComfyUI-AnimateDiff", + "ver": "a34036b662d69d155a4536b2ac65483ae941e257", + "Node name for S&R": "ADE_AnimateDiffSamplingSettings" + }, + "widgets_values": [ + 0, + "default", + "comfy", + 0, + false + ] + }, + { + "id": 6, + "type": "CLIPTextEncode", + "pos": [ + 415, + 186 + ], + "size": [ + 422.84503173828125, + 164.31304931640625 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "clip", + "type": "CLIP", + "link": 3 + } + ], + "outputs": [ + { + "name": "CONDITIONING", + "type": "CONDITIONING", + "slot_index": 0, + "links": [ + 4 + ] + } + ], + "properties": { + "cnr_id": "comfy-core", + "ver": "0.3.47", + "Node name for S&R": "CLIPTextEncode" + }, + "widgets_values": [ + "a black and white dutch belted lionhead bunny eating carrot" + ] + } + ], + "links": [ + [ + 1, + 4, + 0, + 3, + 0, + "MODEL" + ], + [ + 2, + 5, + 0, + 3, + 3, + "LATENT" + ], + [ + 3, + 4, + 1, + 6, + 0, + "CLIP" + ], + [ + 4, + 6, + 0, + 3, + 1, + "CONDITIONING" + ], + [ + 5, + 4, + 1, + 7, + 0, + "CLIP" + ], + [ + 6, + 7, + 0, + 3, + 2, + "CONDITIONING" + ], + [ + 7, + 3, + 0, + 8, + 0, + "LATENT" + ], + [ + 8, + 4, + 2, + 8, + 1, + "VAE" + ], + [ + 9, + 8, + 0, + 9, + 0, + "IMAGE" + ] + ], + "groups": [], + "config": {}, + "extra": { + "ds": { + "scale": 0.6670694864048351, + "offset": [ + 383.9621352316236, + 62.06733069976091 + ] + }, + "frontendVersion": "1.23.4" + }, + "version": 0.4 +}