Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

TypeError: WanS2VDiT.forward() got an unexpected keyword argument 'attn_kwargs'

オープン
#221 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python

調査の方向性

Compare diffsynth_engine/pipelines/wan_s2v.py with diffsynth_engine/models/wan/wan_s2v_dit.py, starting at the predict_noise call and WanS2VDiT.forward signature. Reproduce the failure with examples/wan_speech_to_video.py and verify that the example completes without the unexpected keyword argument error.

索引モデルが issue の本文から書いたものです。

説明

In commit 4ae8f2c0542b1fbb6d744a41ac38b57abbd55908, the 'attn_kwargs' is added in the diffsynth_engine/pipelines/wan_s2v.py, we can see diffsynth_engine/models/wan/wan_dit.py is updated, but diffsynth_engine/models/wan/wan_s2v_dit is not updated.

Find the error below.
Traceback (most recent call last):
File "DiffSynth-Engine/examples/wan_speech_to_video.py", line 106, in
wan_rs2v(pipe, args.input_data_dir)
File "DiffSynth-Engine/examples/wan_speech_to_video.py", line 15, in wan_rs2v
frames = pipe(
ref_image=Image.open(f"{input_data_dir}/image.png").convert("RGB"),
...<8 lines>...
ref_as_first_frame=True,
)
File "miniconda3/lib/python3.13/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "DiffSynth-Engine/diffsynth_engine/pipelines/wan_s2v.py", line 530, in call
noise_pred = self.predict_noise_with_cfg(
model=self.dit,
...<14 lines>...
void_audio_input=void_audio_emb,
)
File "DiffSynth-Engine/diffsynth_engine/pipelines/wan_s2v.py", line 326, in predict_noise_with_cfg
positive_noise_pred = self.predict_noise(
model=model,
...<11 lines>...
void_audio_input=void_audio_input,
)
File "DiffSynth-Engine/diffsynth_engine/pipelines/wan_s2v.py", line 399, in predict_noise
noise_pred = model(
x=latents,
...<11 lines>...
attn_kwargs=attn_kwargs,
)
File "miniconda3/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1739, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "miniconda3/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1750, in _call_impl
return forward_call(*args, **kwargs)
TypeError: WanS2VDiT.forward() got an unexpected keyword argument 'attn_kwargs'

主要言語
Python
スター
433
フォーク
51
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelscope/DiffSynth-Engine のほかの issue

modelscope/DiffSynth-Engine の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。