- Add Seedream 4 unified node combining text-to-image, image-to-image, and multi-image blending - Implement dynamic image inputs that automatically add/remove slots as you connect (up to 10 images) - Add three batch generation modes: - Single: Generate one image with optional seed control - Parallel: Generate multiple independent variations with concurrent API calls - Sequential: Generate thematically related images using sequential_image_generation API - Add Seedance Pro fast model option (seedance-1-0-pro-fast-251015) - Fast model automatically disables end_frame support (not supported by API) - Update README with comprehensive Seedream 4 usage guide and Seedance Pro model selection
27 lines
710 B
Python
27 lines
710 B
Python
import importlib
|
|
import importlib.util
|
|
|
|
node_list = [
|
|
"byteplus_video_node",
|
|
"video_to_frames_node",
|
|
"byteplus_image_node",
|
|
"byteplus_chat_node",
|
|
]
|
|
|
|
NODE_CLASS_MAPPINGS = {}
|
|
NODE_DISPLAY_NAME_MAPPINGS = {}
|
|
|
|
for module_name in node_list:
|
|
imported_module = importlib.import_module(f".nodes.{module_name}", __name__)
|
|
|
|
NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS, **imported_module.NODE_CLASS_MAPPINGS}
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
**NODE_DISPLAY_NAME_MAPPINGS,
|
|
**imported_module.NODE_DISPLAY_NAME_MAPPINGS,
|
|
}
|
|
|
|
# Register web directory for JavaScript files
|
|
WEB_DIRECTORY = "./web"
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|