From 070811e517f963cdc5d92cf057cb44646e020e91 Mon Sep 17 00:00:00 2001 From: lzws <63908509+lzws@users.noreply.github.com> Date: Wed, 26 Mar 2025 17:51:13 +0800 Subject: [PATCH] Update wan_video.py prompter.encode_prompt use pipe's deivce --- diffsynth/pipelines/wan_video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diffsynth/pipelines/wan_video.py b/diffsynth/pipelines/wan_video.py index fdbcfc9..b344423 100644 --- a/diffsynth/pipelines/wan_video.py +++ b/diffsynth/pipelines/wan_video.py @@ -159,7 +159,7 @@ class WanVideoPipeline(BasePipeline): def encode_prompt(self, prompt, positive=True): - prompt_emb = self.prompter.encode_prompt(prompt, positive=positive) + prompt_emb = self.prompter.encode_prompt(prompt, positive=positive, device=self.device) return {"context": prompt_emb}