ComfyUI-DynamiCrafterWrapper
Run ComfyUI Easily with InstaSD
Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:
- One-click deployment
- Any model, any node
- Powerful GPUs for rapid iteration
Available Nodes
DownloadAndLoadDynamiCrafterModel
DownloadAndLoadDynamiCrafterModel Node Documentation
Overview
The DownloadAndLoadDynamiCrafterModel node is part of the ComfyUI-DynamiCrafterWrapper library and serves as a critical component for integrating DynamiCrafter models into ComfyUI workflows. This node automates the process of downloading and loading pre-trained DynamiCrafter models necessary for animating open-domain images. It provides a streamlined approach to work with different model configurations and precisions, enabling users to generate high-quality animations with varying resource requirements.
Functionality
This node is designed to:
- Download pre-trained DynamiCrafter models from a remote repository, specifically from the Hugging Face Hub.
- Load the selected model with the specified data type (e.g., fp32, fp16, bf16, auto).
- Return a loaded model object that can be used in subsequent animation or interpolation workflows within ComfyUI.
Inputs
The DownloadAndLoadDynamiCrafterModel node requires the following inputs:
-
Model: A selection of the DynamiCrafter model to download and load. Available models include:
tooncrafter_512_interp-pruned-fp16.safetensorsdynamicrafter_512_fp16_pruned.safetensorsdynamicrafter_512_interp_fp16_pruned.safetensorsdynamicrafter_1024_fp16_pruned.safetensorsdynamicrafter-CIL-512-no-watermark-fixed-pruned-fp16.safetensorsdynamicrafter-CIL-1024-no-watermark-pruned-fp16.safetensors
The default option is
tooncrafter_512_interp-pruned-fp16.safetensors. -
Data Type (dtype): Specifies the floating-point precision to be used when loading the model. Choices include:
fp32(float32)fp16(float16)bf16(bfloat16)auto(automatically selects the appropriate precision based on the device and configuration)
-
FP8 UNet: A boolean option (
TrueorFalse) indicating whether to use an FP8 precision for the UNet model component. The default isFalse.
Outputs
The node generates a single output:
- DynCraft_model: A loaded DynamiCrafter model object that is ready to be used for image animations or interpolations in ComfyUI workflows.
Usage in ComfyUI Workflows
This node is typically used at the beginning of workflows that require the DynamiCrafter model to animate static images or perform frame interpolations. By integrating this node, users can ensure that they have the correct model version and precision settings according to their hardware capabilities and memory constraints.
Workflows that utilize this node often follow this sequence:
- Model Loading: The first step involves using the
DownloadAndLoadDynamiCrafterModelnode to ensure the correct model is downloaded and loaded. - Image Preparation: Additional nodes may preprocess images and create the necessary conditioning data.
- Animation or Interpolation: Other nodes in the workflow utilize the loaded model output (
DynCraft_model) to synthesize animations or interpolate frames. - Post-processing: The workflow may end with nodes that refine or enhance the generated video output.
Special Features and Considerations
- Automated Model Management: This node automates the downloading and management of heavy model files, which simplifies the setup process for users.
- Precision Flexibility: Users can choose the floating-point precision based on their system's capability, allowing them to optimize for memory usage or performance.
- Integration with ComfyUI: The node is seamlessly integrated into ComfyUI, providing users with the flexibility to build rich and complex workflows for dynamic content creation.
- Memory Handling: The use of different data types and support for FP8 UNet configurations enables more efficient VRAM usage on systems with varying hardware specifications. Users can achieve results under constrained VRAM settings with careful model and input configuration selection.