代码拉取完成,页面将自动刷新
These nodes are installed to help with ComfyScript. But if you want, you can also use them in ComfyUI's web UI.
def LoadImageFromPath(
image: str = r'ComfyUI_00001_-assets\ComfyUI_00001_.png [output]'
) -> tuple[Image, Mask]
def PILToImage(
images: PilImage
) -> Image
def PILToMask(
images: PilImage
) -> Image
def ImageToPIL(
images: Image
) -> PilImage
def ETNLoadImageBase64(
image: str
) -> tuple[Image, Mask]
def ETNLoadMaskBase64(
mask: str
) -> Mask
def ETNSendImageWebSocket(
images: Image
)
def ETNApplyMaskToImage(
image: Image,
mask: Mask
) -> Image
def ETNCropImage(
image: Image,
x: int = 0,
y: int = 0,
width: int = 512,
height: int = 512
) -> Image
def CivitAICheckpointLoader(
ckpt_air: str = '{model_id}@{model_version}',
ckpt_name: CivitAICheckpointLoader.ckpt_name = 'none',
download_chunks: int | None = 4,
download_path: CivitAICheckpointLoader.download_path | None = r'models\checkpoints'
) -> tuple[Model, Clip, Vae]
def CivitAILoraLoader(
model: Model,
clip: Clip,
lora_air: str = '{model_id}@{model_version}',
lora_name: CivitAILoraLoader.lora_name = 'none',
strength_model: float = 1.0,
strength_clip: float = 1.0,
download_chunks: int | None = 4,
download_path: CivitAILoraLoader.download_path | None = r'models\loras'
) -> tuple[Model, Clip]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。