mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-24 10:18:12 +00:00
Update wan_video.py
prompter.encode_prompt use pipe's deivce
This commit is contained in:
@@ -159,7 +159,7 @@ class WanVideoPipeline(BasePipeline):
|
|||||||
|
|
||||||
|
|
||||||
def encode_prompt(self, prompt, positive=True):
|
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}
|
return {"context": prompt_emb}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user