Files
slahiriandClaude Opus 4.5 2a35976780 feat: implement SID_Caption node with Florence-2 PromptGen
- Add modular core architecture with plug-and-play model support
- Implement Florence-2 model with config-driven prompts and settings
- Add platform layer for GPU detection, memory management, and state isolation
- Support transformers >= 4.51.0 via kijai's bundled Florence2 implementation
- Add caption cleaning and output formatting utilities
- Update architecture docs with KISS principle design decisions

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

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

27 lines
566 B
Python

"""Core module for SID Photography Toolkit."""
from .platform import (
get_device,
get_system_info,
cleanup_memory,
isolated_execution,
)
from .config import get_model_config, get_prompt, reload_configs
from .output import clean_caption, truncate_to_words, format_as_tags
__all__ = [
# Platform
"get_device",
"get_system_info",
"cleanup_memory",
"isolated_execution",
# Config
"get_model_config",
"get_prompt",
"reload_configs",
# Output
"clean_caption",
"truncate_to_words",
"format_as_tags",
]