Files
slahiriandClaude Opus 4.5 c90fac7039 Simplify Enhancer UI, add VRAM management, improve compression
- Consolidate 3 text boxes (Enhance/Replace/Add) into single Instructions field
- Add VRAM clearing and garbage collection at start of all prompt nodes
- Add smart image compression with file size limits (500KB local, 1MB API)
- Add compressed_image output for preview in Generator
- Add toggle to disable negative prompt generation (default OFF)
- Add unload_model() to LocalModelClient to free VRAM after use
- Replace detail_level with analysis_mode String input for wire compatibility
- Rename outputs to out_prompt_length/out_analysis_mode to avoid ID conflicts
- Strengthen clothing color accuracy in prompts
- Remove deprecated sid_zimage_optimizer.py

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 12:18:01 +05:30

41 lines
854 B
Python

# -*- coding: utf-8 -*-
"""
ComfyUI-AI-Photography-Toolkit - Utilities
Utility modules for configuration, caching, and output processing.
Author: Siddhartha Lahiri
Email: siddhartha.lahiri@gmail.com
License: MIT
"""
from .zimage_utils import (
load_zimage_config,
get_shot_framings,
get_photography_genres,
get_attribute_schema,
get_content_detail_schema,
clean_zimage_output,
hash_image_tensor,
get_cache_key,
get_cached_output,
set_cached_output,
clear_cache,
get_cache_stats,
)
__all__ = [
"load_zimage_config",
"get_shot_framings",
"get_photography_genres",
"get_attribute_schema",
"get_content_detail_schema",
"clean_zimage_output",
"hash_image_tensor",
"get_cache_key",
"get_cached_output",
"set_cached_output",
"clear_cache",
"get_cache_stats",
]