14 Commits
Author SHA1 Message Date
if b7fef4f116 fix: Correct advanced generator call and add auto-download to loader
- Fixes a TypeError in the advanced generator by removing the 'compiled_model' kwarg before the function call.
- Adds automatic model downloading to the HunyuanVideoFoleyModelLoader, ensuring the advanced workflow can self-initialize. This resolves issue #22.
2025-09-08 21:23:57 +01:00
Richard Pinedo dc5c5cad59 configurable batch sizes 2025-09-07 03:51:42 -04:00
Richard Pinedo e00aac4f4c fixed setup_device tabbing issue 2025-09-05 15:22:09 -04:00
Richard Pinedo 0b65f9680f merged in upstream changes 2025-09-04 21:21:01 -04:00
Richard Pinedo 1c074cf5f6 Merge branch 'main' of https://github.com/if-ai/ComfyUI_HunyuanVideoFoley
# Conflicts:
#	nodes.py
2025-09-04 21:08:27 -04:00
if@impactframes 8b070a29d1 fix: Comprehensive stability and memory overhaul
This commit addresses several critical issues to improve stability, user experience, and memory management.

- Implements a robust automatic model downloader to prevent errors on first-time use.
- Adds an adaptive compatibility layer for the 'transformers' library, resolving the 'get_image_features' AttributeError without forcing dependency versions.
- Overhauls memory management with proactive VRAM cleanup and a 'ping-pong' offloading strategy to drastically reduce peak VRAM usage and prevent leaks between runs.
- Fixes a data type error during video creation from image tensors.
- Resolves multiple TypeErrors related to incorrect function arguments.
- Corrects a state management bug that caused failures on sequential runs in advanced workflows.
2025-09-05 00:12:24 +01:00
Richard Pinedo 62a12d45e3 added batch_size and smart profiling to siglip2 2025-09-04 17:20:22 -04:00
Richard Pinedo 32f71634d7 improved memory management further 2025-09-04 02:01:46 -04:00
Richard Pinedo 608d6a754c improved stability and memory management, not ready for PR yet 2025-09-03 11:53:51 -04:00
Richard Pinedo f766da611f added enabled and silent audio flag 2025-09-02 23:23:18 -04:00
if@impactframes fdc735cd05 Fix critical issues in advanced model pipeline nodes
- Fix AttributeDict handling in TorchCompile node to prevent .copy() errors
- Fix duplicate model loading in GeneratorAdvanced causing memory allocation failures
- Update model loader to properly handle preloaded models from pipeline
- Fix DAC VAE compilation (was looking for 'vae' key instead of 'dac_model')
- Make model_path and config_path optional parameters with proper defaults
- Add better error handling and validation throughout the pipeline
- Prevent unnecessary model reloading when using pre-compiled models

The advanced pipeline now works correctly:
ModelLoader → DependenciesLoader → TorchCompile → GeneratorAdvanced

Co-Authored-By: if@impactframes <if@impactframes.ai>
2025-08-31 18:21:35 +01:00
if@impactframes d4113f3c6d Add advanced model loading nodes with FP8 quantization support
- Add HunyuanVideoFoleyModelLoader with FP8 weight-only quantization (fp8_e4m3fn, fp8_e5m2)
- Add HunyuanVideoFoleyDependenciesLoader for modular component loading
- Add HunyuanVideoFoleyTorchCompile for ~30% inference speedup
- Add HunyuanVideoFoleyGeneratorAdvanced that accepts pre-loaded models
- Keep original HunyuanVideoFoley node fully functional for backward compatibility
- Fix model path to use ComfyUI's foley/hunyuanvideo-foley-xxl directory structure
- Support both standalone and pipeline-based workflows

Co-Authored-By: if@impactframes <if@impactframes.ai>
2025-08-31 16:40:03 +01:00
if-ai c07269b12c Fix DAC model loading and revert frame processing to working implementation
- Fix map_location conflict in DAC model loading with fallback manual loading
- Revert _extract_frames_from_image_input() to original PR #3 simple approach
- Fix indentation errors in exception handling blocks
- Resolve black screen issues with VHS node frame input processing
2025-08-31 00:54:05 +01:00
if-ai e9a35ff6e2 Optimisations handls both types 2025-08-30 02:35:47 +01:00