ComfyUI Extension
ComfyUI_kkTranslator_nodes
A ComfyUI extension with 3 custom nodes.
kingzcheung/ComfyUI_kkTranslator_nodes
Nodes3
On cloudLocal install
CategorykkTranslator
Stars24
Updatedabout a year ago
Nodes (3)
LoadMarianMTCheckPoint
The model loader behind offline prompt translation — pick your language pair
kkTranslator
PromptBaiduFanyiToText
Better translations, if you'll accept an API key and the cloud
kkTranslator
PromptTranslateToText
Translate your prompts offline, on your own machine — no API key, no cloud
kkTranslator
Readme
ComfyUI_kkTranslator_nodes
简体中文| English
These nodes are mainly used to translate prompt words from other languages into English.
PromptTranslateToText implements prompt word translation based on Helsinki NLP translation model.It doesn't require internet connection。
Install
- Clone this repository to the custom of ComfyUI In the nodes folder。
cd custom_nodes
git clone https://github.com/kingzcheung/ComfyUI_kkTranslator_nodes
- Run the following command to install dependencies
python -m pip install -r requirements.txt
- cd
modelsand mkdirkkTranslator:
cd models
mkdir kkTranslator
cd kkTranslator
huggingface-cli download --resume-download Helsinki-NLP/opus-mt-zh-en --local-dir opus-mt-zh-en --local-dir-use-symlinks False
You can also download the model from
- Helsinki-NLP/opus-mt-zh-en
- Helsinki-NLP/opus-mt-rn-en
- Helsinki-NLP/opus-mt-taw-en
- Helsinki-NLP/opus-mt-az-en
- Helsinki-NLP/opus-mt-ru-en
- Helsinki-NLP/opus-mt-ja-en
- Helsinki-NLP/opus-mt-en-ru
- Helsinki-NLP/opus-mt-en-jap
- Helsinki-NLP/opus-mt-en-rn
- Restart your ComfyUI
Usage
Download this workflow to view the demonstration: marian_mt_workflow
