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
- Clone this repository to the custom of ComfyUI In the nodes folder
cd custom_nodes
git clone https://github.com/joed74/ComfyUI_HelsinkiNLP_Translator_Local
- Run the following command to install dependencies
python -m pip install -r requirements.txt
- cd
../modelsand mkdirHelsinkiNLP:
cd ../models
mkdir HelsinkiNLP
cd HelsinkiNLP
huggingface-cli download --resume-download Helsinki-NLP/opus-mt-de-en --local-dir opus-mt-de-en --local-dir-use-symlinks FalseYou 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
Download this workflow to view the demonstration: marian_mt_workflow
