gaodianzhuo / ComfyUI-Prompt-Translator-diy

ComfyUI中文翻译插件,增加了自定义的字典
6 stars 0 forks source link

想请教下如何安装 #1

Open lzhfdwu007 opened 7 months ago

lzhfdwu007 commented 7 months ago

我直接复制https://github.com/gaodianzhuo/ComfyUI-Prompt-Translator-diy 我安装后在COMFYUI中找不到对应的节点 请问是我哪里出错了吗?

gaodianzhuo commented 7 months ago

运行comfyui时会有一个插件的加载过程,我的如下 FizzleDorf Custom Nodes: Loaded

Loading: ComfyUI-Manager (V1.0.1)

ComfyUI Revision: 1778 [26b1c0a7] | Released on '2023-12-04'

Davemane42 Custom Nodes: Loaded OpenPose Editor: Loaded

Import times for custom nodes: 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/sd-dynamic-thresholding 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/sdxl_prompt_styler 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI_ADV_CLIP_emb 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/comfy_clip_blip_node 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI-diy 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI_Dave_CustomNode 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI_IPAdapter_plus 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/masquerade-nodes-comfyui 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI-post-processing-nodes 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI_JPS-Nodes 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/IPAdapter-ComfyUI 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/PowerNoiseSuite 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI_FizzNodes 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/images-grid-comfy-plugin 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/comfyui-animatediff 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/Derfuu_ComfyUI_ModdedNodes 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI-OpenPose-Editor 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved 0.0 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI-Manager 0.1 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI_Comfyroll_CustomNodes 0.3 seconds: /home/arthur/ComfyUI/custom_nodes/comfyui_segment_anything 0.3 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI_tinyterraNodes 0.5 seconds: /home/arthur/ComfyUI/custom_nodes/was-node-suite-comfyui-main 0.8 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI-Impact-Pack 1.1 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI-Prompt-Translator-diy 3.2 seconds: /home/arthur/ComfyUI/custom_nodes/ComfyUI_Custom_Nodes_AlekPet 8.6 seconds: /home/arthur/ComfyUI/custom_nodes/comfyui_controlnet_aux

如果ComfyUI-Prompt-Translator-diy没有在里面就需要看看是否有报错了

gaodianzhuo commented 7 months ago

@lzhfdwu007 opus-mt-zh-en这个模型目录别忘了放在ComfyUI主文件夹下

k10719 commented 2 weeks ago

model_id = os.path.dirname(os.path.dirname(parent_directory_path)) + "../../../models/opus-mt-zh-en" model = MarianMTModel.from_pretrained("../../../models/opus-mt-zh-en").cuda() tokenizer = MarianTokenizer.from_pretrained("../../../models/opus-mt-zh-en"),没有足够权限,改成绝对路径就可以了