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

Bug: Error: only integer tensors of a single element can be converted to an index

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
python, pytorch

調査の方向性

Reproduce the failure with the torchrun command in the issue, then start at generate.py:172 and follow the call into pipeline/inference_pipeline.py:602. Inspect wan/utils/fm_solvers_unipc.py around convert_model_output at line 323 and step at line 697, using the traceback to identify the incompatible tensor operation. Done means the command completes past this error and produces the requested output.

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

説明

My num_gpus is 6:
and test with the command:

torchrun --nproc_per_node=$NUM_GPUS generate.py --size 704*1280 --dit_fsdp --t5_fsdp --ckpt_dir Matrix-Game-3.0 --fa_version 3 --use_int8 --num_iterations 12 --num_inference_steps 3 --image demo_images/001/image.png --prompt "A colorful, animated cityscape with a gas station and various buildings." --save_name test --seed 42 --compile_vae --lightvae_pruning_rate 0.5 --vae_type mg_lightvae --output_dir ./output

ank4]: Traceback (most recent call last):
[rank4]: File "/mnt/group/miaoweiwang/survey/Matrix-Game/Matrix-Game-3/generate.py", line 193, in
[rank4]: generate(args)
[rank4]: File "/mnt/group/miaoweiwang/survey/Matrix-Game/Matrix-Game-3/generate.py", line 172, in generate
[rank4]: pipeline.generate(
[rank4]: File "/mnt/group/miaoweiwang/survey/Matrix-Game/Matrix-Game-3/pipeline/inference_pipeline.py", line 602, in generate
[rank4]: latents = test_scheduler.step(
[rank4]: ^^^^^^^^^^^^^^^^^^^^
[rank4]: File "/mnt/group/miaoweiwang/survey/Matrix-Game/Matrix-Game-3/wan/utils/fm_solvers_unipc.py", line 697, in step
[rank4]: model_output_convert = self.convert_model_output(
[rank4]: ^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank4]: File "/mnt/group/miaoweiwang/survey/Matrix-Game/Matrix-Game-3/wan/utils/fm_solvers_unipc.py", line 323, in convert_model_output
[rank4]: x0_pred = sample - sigma_t * model_output
[rank4]: ~~~~~~~~^~~~~~~~~~~~~~
[rank4]: TypeError: only integer tensors of a single element can be converted to an index

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

環境構築

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

はじめの一歩

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

SkyworkAI/Matrix-Game のほかの issue

SkyworkAI/Matrix-Game の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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