内置节点
简体中文
为Recraft图像生成设置真实照片风格的辅助节点
class RecraftStyleV3RealisticImageNode: """ Select realistic_image style and optional substyle. """ RETURN_TYPES = (RecraftIO.STYLEV3,) RETURN_NAMES = ("recraft_style",) DESCRIPTION = cleandoc(__doc__ or "") # Handle potential None value FUNCTION = "create_style" CATEGORY = "api node/image/Recraft" RECRAFT_STYLE = RecraftStyleV3.realistic_image @classmethod def INPUT_TYPES(s): return { "required": { "substyle": (get_v3_substyles(s.RECRAFT_STYLE),), } } def create_style(self, substyle: str): if substyle == "None": substyle = None return (RecraftStyle(self.RECRAFT_STYLE, substyle),)
此页面对您有帮助吗?