14 Commits
Author SHA1 Message Date
scofano 6d5a5a71de Bypass close-up image when face center is missing 2026-08-12 08:37:34 -03:00
scofanoandClaude Sonnet 4.6 b3a52d9fcc chore: remove unused OUTPUT_DIR from zoom and close-up video nodes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05 00:41:17 -03:00
scofanoandClaude Sonnet 4.6 8ce706a382 fix: use explicit CUDA device selection in ColorAdjustmentNode
Replaces implicit device reference with explicit cuda/cpu detection so
the info string correctly reports GPU or CPU acceleration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05 00:37:13 -03:00
scofanoandClaude Sonnet 4.6 287ae5d7e3 feat: save zoom/close-up video output next to source video
ZoomSequenceVideoNode and CloseUpNode now write the output .mp4 to the
same folder as the input video instead of ComfyUI's output directory.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05 00:36:24 -03:00
scofanoandClaude Haiku 4.5 fe39b72ab2 Phase 2: Add optional GPU encoding support to 3 video nodes
Add low-risk NVENC encoding option to ImageTransitionNode, VideoImageOverlay,
and VideoSplitterNode. Each node now includes a use_gpu parameter (default: False)
that enables hevc_nvenc when available, with automatic fallback to libx264 if
NVIDIA GPU is unavailable or NVENC fails.

Changes:
- ImageTransitionNode: Add use_gpu parameter for MP4 frame encoding
- VideoImageOverlay: Add use_gpu parameter for overlay video encoding
- VideoSplitterNode: Add use_gpu parameter for segment encoding

Expected gains: 5-10x speedup for GPU users (hevc_nvenc vs libx264)
Risk level: VERY LOW (zero breaking changes, backward compatible)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-05-19 10:29:59 -03:00
scofanoandClaude Haiku 4.5 7d5d326c97 feat: Phase 1 - GPU acceleration for image and video nodes
Image Processing (PyTorch GPU tensor operations):
- ZoomSequenceNode: Add device handling for GPU-accelerated F.interpolate
- CameraShakeNode: Ensure tensors stay on GPU device
- CameraMoveNode: Add device handling for GPU acceleration
- Expected gain: 4-10x speedup for large batches

Video Encoding (NVENC support):
- VideoLoopExtenderNode: Add use_gpu parameter for HEVC_NVENC encoding
- Falls back to libx264 if NVIDIA GPU unavailable
- Expected gain: 5-10x speedup for video encoding

Note: ComfySimpleVideoCombiner and ColorAdjustmentVideoNode already had
GPU support implemented, so no changes were needed.

Safe, backward-compatible changes with runtime GPU detection and fallback.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-05-19 10:21:44 -03:00
scofanoandClaude Haiku 4.5 376dad301b feat: Add GPU acceleration to color adjustment nodes
Image Node:
- Switch from PIL to PyTorch tensor operations
- GPU-accelerated brightness, contrast, saturation adjustments
- RGB to HSV conversion for saturation on GPU
- 30-60% faster on typical batches, up to 5x faster on large batches

Video Node:
- Add use_gpu parameter (default: True)
- Use HEVC_NVENC when GPU enabled (5-10x faster encoding)
- Falls back to libx264 when GPU unavailable
- Improved info string to show codec used

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-05-19 10:14:23 -03:00
scofano 175d9eb9af Merge remote branch with color adjustment nodes 2026-05-18 21:02:56 -03:00
scofanoandClaude Haiku 4.5 e2db969f75 feat: Add color adjustment nodes (image and video)
- Add ColorAdjustmentNode for brightness/contrast/saturation on image batches
- Add ColorAdjustmentVideoNode for FFmpeg-based video color adjustment
- Both nodes use intuitive 0-100 scale parameters (100 = no change)
- Video node includes delete_original option and audio preservation
- Update __init__.py with node registration and display names
- Update README.md with comprehensive documentation for nodes 21-22

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-05-18 21:02:26 -03:00
scofanoandClaude Sonnet 4.6 4867d2093a feat: add Chromatic Aberration node
Shifts R and B channels in opposite directions (G stays centred) using
pure PyTorch — no FFmpeg round-trip. Supports Horizontal, Vertical, and
Diagonal directions with four channel-polarity presets and RGBA safety.
README updated with full node documentation as item 20.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-24 22:35:54 -03:00
scofano 454eea334f chore: switch project license to AGPL and ignore analysis output
Replace the bundled GPLv3 license text with AGPLv3 to better reflect network-use distribution terms, and add codescene_analysis to .gitignore so generated analysis artifacts are not committed.chore: switch project license to AGPL and ignore analysis output

Replace the bundled GPLv3 license text with AGPLv3 to better reflect network-use distribution terms, and add codescene_analysis to .gitignore so generated analysis artifacts are not committed.
2026-04-24 01:04:58 -03:00
scofano dfe393b6fc docs(readme): expand zoom node options and random-mode behavior
Document the updated Zoom Sequence and Batched Zoom Sequence interfaces, including new `direction`, `amount_type`, `zoom_percentage`, `random_seed`, and `smooth_subpixel` inputs, plus Random easing support.

Clarify how random selection works per execution (and how `random_seed=0` forces fresh rolls) and explain subpixel sampling vs integer crop modes so users can get smoother long/slow zooms and reproducible results when needed.docs(readme): expand zoom node options and random-mode behavior

Document the updated Zoom Sequence and Batched Zoom Sequence interfaces, including new `direction`, `amount_type`, `zoom_percentage`, `random_seed`, and `smooth_subpixel` inputs, plus Random easing support.

Clarify how random selection works per execution (and how `random_seed=0` forces fresh rolls) and explain subpixel sampling vs integer crop modes so users can get smoother long/slow zooms and reproducible results when needed.
2026-03-06 09:39:17 -03:00
scofano 8c7a6c794a docs: Document Video Image Overlay feature for PNG alpha transparency
Also changes output path from ComfyUI output directory to same directory as input video
2026-02-12 13:34:46 -03:00
scofano dc9cf8639b refactor: reorganize scripts into subfolder and update imports
- Moved all script modules into a new `scripts/` folder
- Updated import statements in `__init__.py` to reference the new folder
- Updated README installation instructions to reflect the new structure for better codebase organization
2026-01-20 09:32:32 -03:00