A custom node designed to complement KwaiKolorsWrapper by kijai and hopefully a more flexible implementation in the future. example workflow
Semiautomatic(portable install and Swarm only):
- Clone the repo into your custom nodes folder
- Run
python_embeded\python.exe -m pip install -r .\ComfyUI\custom_nodes\ComfyUI-Kolors-Translator\requirements.txt
from your comfyUI folder
Manual:
- Clone the repo into your custom nodes folder
- Run
pip install -r requirements.txt
The translation model will be downloaded on the first run
Just delete the node's folder, then delete the translation model in models/ggml
This node uses the Yi-1.5-6B-chat model to do the translation. I found this model to be roughly on par with google translate for English to Chinese. It's small and only takes a few seconds for long prompts on just the cpu. The model is run on cpu with llama-cpp-python to minimize gpu overhead.