Files
rookiestar28 fe87f7deac feat: align current ComfyUI host compatibility
Harden model loading and lifecycle behavior, align package metadata and optional dependency guidance, add workflow compatibility safeguards, and provide host-backed Classic and Vue frontend validation with native advanced inputs.
2026-08-09 02:19:16 +08:00

96 lines
3.9 KiB
JSON

{
"id": "translategemma-image-translation-explicit-source",
"revision": 0,
"last_node_id": 1,
"last_link_id": 0,
"nodes": [
{
"id": 1,
"type": "TranslateGemma",
"pos": [120, 120],
"size": [520, 760],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{ "name": "text", "type": "STRING", "widget": { "name": "text" }, "link": null },
{ "name": "target_language", "type": "COMBO", "widget": { "name": "target_language" }, "link": null },
{ "name": "model_size", "type": "COMBO", "widget": { "name": "model_size" }, "link": null },
{ "name": "device", "type": "COMBO", "widget": { "name": "device" }, "link": null },
{ "name": "image", "type": "IMAGE", "link": null },
{ "name": "image_enhance", "type": "BOOLEAN", "widget": { "name": "image_enhance" }, "link": null },
{ "name": "image_resize_mode", "type": "COMBO", "widget": { "name": "image_resize_mode" }, "link": null },
{ "name": "image_two_pass", "type": "BOOLEAN", "widget": { "name": "image_two_pass" }, "link": null },
{ "name": "source_language", "type": "COMBO", "widget": { "name": "source_language" }, "link": null },
{ "name": "external_text", "type": "STRING", "link": null },
{ "name": "prompt_mode", "type": "COMBO", "widget": { "name": "prompt_mode" }, "link": null },
{ "name": "max_new_tokens", "type": "INT", "widget": { "name": "max_new_tokens" }, "link": null },
{ "name": "max_input_tokens", "type": "INT", "widget": { "name": "max_input_tokens" }, "link": null },
{ "name": "truncate_input", "type": "BOOLEAN", "widget": { "name": "truncate_input" }, "link": null },
{ "name": "strict_context_limit", "type": "BOOLEAN", "widget": { "name": "strict_context_limit" }, "link": null },
{ "name": "keep_model_loaded", "type": "BOOLEAN", "widget": { "name": "keep_model_loaded" }, "link": null },
{ "name": "debug", "type": "BOOLEAN", "widget": { "name": "debug" }, "link": null },
{ "name": "chinese_conversion_only", "type": "BOOLEAN", "widget": { "name": "chinese_conversion_only" }, "link": null },
{ "name": "chinese_conversion_direction", "type": "COMBO", "widget": { "name": "chinese_conversion_direction" }, "link": null },
{ "name": "long_text_strategy", "type": "COMBO", "widget": { "name": "long_text_strategy" }, "link": null },
{ "name": "quantization", "type": "COMBO", "widget": { "name": "quantization" }, "link": null }
],
"outputs": [
{ "name": "translated_text", "type": "STRING", "links": null }
],
"properties": {
"Node name for S&R": "TranslateGemma"
},
"widgets_values": [
"",
"English",
"4B",
"default",
true,
"letterbox",
true,
"Japanese",
"auto",
512,
2048,
true,
true,
true,
false,
false,
"auto_flip",
"disable",
"none"
],
"widgets_values_named": {
"text": "",
"target_language": "English",
"model_size": "4B",
"device": "default",
"image_enhance": true,
"image_resize_mode": "letterbox",
"image_two_pass": true,
"source_language": "Japanese",
"prompt_mode": "auto",
"max_new_tokens": 512,
"max_input_tokens": 2048,
"truncate_input": true,
"strict_context_limit": true,
"keep_model_loaded": true,
"debug": false,
"chinese_conversion_only": false,
"chinese_conversion_direction": "auto_flip",
"long_text_strategy": "disable",
"quantization": "none"
}
}
],
"links": [],
"groups": [],
"config": {},
"extra": {
"description": "Image translation template. Connect an IMAGE input and keep source_language explicit."
},
"version": 0.4
}