多语言支持

按照 ComfyUI 官方推荐的多语言(i18n)规范创建插件的语言文件。支持中英双语切换,官方设置页内语言切换即可。
This commit is contained in:
QL-boy
2025-12-27 23:52:06 +08:00
committed by GitHub
parent a6ad0674d2
commit 5e70aadda4
2 changed files with 176 additions and 0 deletions
+88
View File
@@ -0,0 +1,88 @@
{
"CustomTileSplitter": {
"display_name": "🔧 Advanced Tile Splitter",
"description": "Splits large images or latents into smaller tiles with overlap for processing. Supports batch and list outputs.",
"inputs": {
"tile_size": {
"name": "Tile Size",
"tooltip": "Resolution of each tile in pixels. Power of 2 (e.g., 512, 1024) is recommended."
},
"overlap": {
"name": "Overlap",
"tooltip": "Number of overlapping pixels between adjacent tiles to prevent seams."
},
"image": {
"name": "Image",
"tooltip": "Optional input image to split."
},
"latent": {
"name": "Latent",
"tooltip": "Optional input latent to split."
}
},
"outputs": {
"0": {
"name": "Tiles (Batch)",
"tooltip": "All image tiles stacked into a single batch tensor."
},
"1": {
"name": "Tiles (List)",
"tooltip": "List of individual image tiles (useful for loop processing)."
},
"2": {
"name": "Latent Tiles (Batch)",
"tooltip": "All latent tiles stacked into a single batch."
},
"3": {
"name": "Latent Tiles (List)",
"tooltip": "List of individual latent tiles."
},
"4": {
"name": "Tile Config",
"tooltip": "Configuration data required by the Merger node to rebuild the image."
}
}
},
"CustomTileMerger": {
"display_name": "🔧 Advanced Tile Merger",
"description": "Merges processed tiles back into a full image/latent using smooth weighted blending.",
"inputs": {
"tile_config": {
"name": "Tile Config",
"tooltip": "The configuration output from the Splitter node."
},
"blend_mode": {
"name": "Blend Mode",
"tooltip": "Algorithm used to blend overlapping areas.",
"options": {
"gaussian": "Gaussian",
"linear": "Linear",
"cosine": "Cosine",
"none": "None"
}
},
"feather_percent": {
"name": "Feather (%)",
"tooltip": "Percentage of the overlap area used for blending transition."
},
"processed_tiles_image": {
"name": "Processed Image Tiles",
"tooltip": "The list or batch of processed image tiles to merge."
},
"processed_tiles_latent": {
"name": "Processed Latent Tiles",
"tooltip": "The list or batch of processed latent tiles to merge."
}
},
"outputs": {
"0": {
"name": "Merged Image",
"tooltip": "The final reconstructed full-resolution image."
},
"1": {
"name": "Merged Latent",
"tooltip": "The final reconstructed full-resolution latent."
}
}
}
}
+88
View File
@@ -0,0 +1,88 @@
{
"CustomTileSplitter": {
"display_name": "🔧 高级分块 (Splitter)",
"description": "将大尺寸图像或 Latent 切割成带有重叠区域的小块,以便进行分块处理。",
"inputs": {
"tile_size": {
"name": "分块大小 (px)",
"tooltip": "每个分块的分辨率。建议使用 2 的幂次方(如 512, 1024)。"
},
"overlap": {
"name": "重叠像素 (px)",
"tooltip": "相邻分块之间的重叠像素数量,用于消除拼接接缝。"
},
"image": {
"name": "图像 (Image)",
"tooltip": "(可选)需要分块的输入图像。"
},
"latent": {
"name": "Latent (潜空间)",
"tooltip": "(可选)需要分块的输入 Latent。"
}
},
"outputs": {
"0": {
"name": "图像分块 (Batch)",
"tooltip": "堆叠为单个 Batch 张量的所有图像分块。"
},
"1": {
"name": "图像分块 (List)",
"tooltip": "图像分块列表(适用于循环处理或特定节点)。"
},
"2": {
"name": "Latent分块 (Batch)",
"tooltip": "堆叠为单个 Batch 的所有 Latent 分块。"
},
"3": {
"name": "Latent分块 (List)",
"tooltip": "Latent 分块列表。"
},
"4": {
"name": "分块配置 (Config)",
"tooltip": "包含原始尺寸和切割坐标的配置信息,必须传递给合并节点。"
}
}
},
"CustomTileMerger": {
"display_name": "🔧 高级合并 (Merger)",
"description": "使用加权混合算法将处理后的分块合并回完整的图像或 Latent。",
"inputs": {
"tile_config": {
"name": "分块配置",
"tooltip": "来自 Splitter 节点的分块配置输出。"
},
"blend_mode": {
"name": "混合模式",
"tooltip": "处理重叠区域的混合算法。",
"options": {
"gaussian": "高斯 (Gaussian)",
"linear": "线性 (Linear)",
"cosine": "余弦 (Cosine)",
"none": "无 (直接覆盖)"
}
},
"feather_percent": {
"name": "羽化比例 (%)",
"tooltip": "重叠区域中用于平滑过渡的范围比例。"
},
"processed_tiles_image": {
"name": "处理后的图像分块",
"tooltip": "需要合并的图像分块(支持 Batch 或 List)。"
},
"processed_tiles_latent": {
"name": "处理后的Latent分块",
"tooltip": "需要合并的 Latent 分块(支持 Batch 或 List)。"
}
},
"outputs": {
"0": {
"name": "合并后的图像",
"tooltip": "重建后的完整分辨率图像。"
},
"1": {
"name": "合并后的Latent",
"tooltip": "重建后的完整分辨率 Latent。"
}
}
}
}