modelscope / modelscope/DiffSynth-Studio

wan_video_dit.py中的patchify函数是错误实现

Open
#1,063 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13.1k
Forks
1.3k
Avg merge
13h 12m
Merged PRs (30d)
45

Description

Image

主要有2个错误:

  1. 返回参数的数量不同,patchify返回x,而接受是x, grid_size(含f, h, w)
  2. patchify返回的x的shape不正确

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open wan_video_dit.py and inspect the patchify function alongside its caller, which expects x and grid_size containing f, h, and w. Compare the returned tuple and tensor shape with that call site, then verify the video path accepts both outputs and preserves the expected dimensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.