torch numpy Pillow opencv-python imageio
[](LICENSE)
[]()
Create stunning before-and-after transition videos directly in ComfyUI.
This repository provides two powerful custom nodes for ComfyUI to create stunning before-and-after transition videos. These nodes are designed for visual comparisons, transformations, and creative effects, supporting both standard and depth map-based transitions.
“`bash
cd ComfyUI/custom_nodes
“`
“`bash
git clone https://github.com/SamSeenX/ComfyUI_SSBeforeAfterNode.git
“`
“`bash
pip install -r ComfyUI_SSBeforeAfterNode/requirements.txt
“`
before_image and after_image inputs.Creates before-and-after transition videos using classic fade and wipe effects.
Parameters:
transition_type: fade, wipe_from_left, wipe_from_top, etc.transition_duration: 0.5 – 10.0 seconds.feather: Softness of the wipe edge (0.0 – 1.0).Creates transitions using a depth map, revealing images based on depth (e.g., back-to-front).
Parameters:
depth_map: Input depth map image.transition_type: back_to_front, front_to_back, middle_out.easing_method: Smoothness of the transition.ComfyUI_SSBeforeAfterNode/
├── ss_before_after_video.py # Basic node logic
├── ss_before_after_video_with_depth.py # Depth-aware node logic
├── requirements.txt # Python dependencies
└── README.md
Contributions are welcome!
This project is licensed under the MIT License – see the LICENSE file for details.
If you find this project useful, please consider supporting me:
Created with ❤️ by SamSeen