NX_Translator

NX_Translator
★ 3

翻译提示词处理DeepLGoogle翻译
在ComfyUI内将提示词用Google或DeepL翻译为英文,支持替换或追加译文,显示DeepL配额并导入API键。
💡 在流程中实时把多语言提示词翻译成英文并替换或追加。
🍴 1 Forks💻 Python🔄 2024-08-14
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/8f9eee5e2cdb
📦 requirements.txt
python-dotenv
deepl
hero
UI
📄 README

NX_Translator

A custom node for translating prompts with Google Translate or DeeplL directly in ComfyUI.

Installation

If GIT is installed on your system, go to the custom_nodes subfolder of your ComfyUI installation, open a terminal and type:

git clone https://github.com/Franck-Demongin/NX_Translator.git

If GIT is not installed, retrieve the ZIP file, unzip it into the custom nodes folder and rename it NX_translator.

IMPORTANT

Activate the Python virtual environment used by ComfyUI

from the ComfyUI installation directory:

“`bash

# Linux, Mac

source venv/bin/activate

“`

“`bash

# Windows

venv\Scripts\activate

“`

The command line must be preceded by *(venv)*, indicating that the virtual environment is active.

Install the dependencies used by the node:

pip install -r requirements.txt

Restart ComfyUI. *Translator* should be available in the *NX_Nodes* category.

Features

  • translates from any language into English
  • uses Google or DeepL services
  • allows you to replace or add one translation to another by choosing the separator
  • indicates usage quota for DeepL
  • import API key DeepL from node