Prompt Mode improvements: - "Image Only (ignore prompt)" - pure image analysis - "Prompt Guides Analysis" - user prompt influences analysis - "Prompt First, Image Fills Gaps" - prompt is primary - "Prompt Dominates" - minimal image reference Persistent Disk Caching: - Cache stored in cache/prompts/ directory (gitignored) - Two-tier caching: memory (50 entries) + disk (500 entries) - Automatic cleanup of oldest entries when over limit - Cache versioning for safe invalidation - Cache stats shown in debug log Debug log now shows: - "[CACHE HIT] - Loaded from persistent disk cache" when using cached result - "[CACHED] Result saved to persistent disk cache" when caching new result - Cache entry count and size in MB 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
34 lines
696 B
Python
34 lines
696 B
Python
"""
|
|
Utility modules for ComfyUI-AI-Photography-Toolkit.
|
|
"""
|
|
|
|
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",
|
|
]
|