# ComfyUI-Prompt-Translator **Repository Path**: tietang/ComfyUI-Prompt-Translator ## Basic Information - **Project Name**: ComfyUI-Prompt-Translator - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-16 - **Last Updated**: 2024-04-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ComfyUI-Prompt-Translator ComfyUI 通过语言模型自动翻译 Prompt 为中文提示词插件。 它基于模型 [facebook/mbart-large-50-many-to-many-mmt](https://huggingface.co/facebook/mbart-large-50-many-to-many-mmt),使用了 Hugging Face 的 Transformers 库来实现翻译功能。 该翻译插件不需要联网翻译,只需要下载翻译模型就可以正常工作。 ## 安装插件 ``` cd ComfyUI/custom_nodes git clone https://github.com/MofaAI/ComfyUI-Prompt-Translator.git ``` ## 语言模型下载 ``` pip install -U huggingface_hub hf_transfer export HF_ENDPOINT=https://hf-mirror.com huggingface-cli download --resume-download facebook/mbart-large-50-many-to-many-mmt ``` ## 使用效果 ![使用效果](ui.jpg)