Skip to content

joed74/ComfyUI_HelsinkiNLP_Translator_Local

 
 

Repository files navigation

ComfyUI_HelsinkiNLP_Translator_Local

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

  1. 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
  1. Run the following command to install dependencies
python -m pip install -r requirements.txt
  1. cd ../models and mkdir HelsinkiNLP:
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 False

You can also download the model from

  1. Restart your ComfyUI

Usage

Download this workflow to view the demonstration: marian_mt_workflow

Alt text

About

translate your prompt text to enlish using local translation models

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%