Skip to content

Commit 6663dca

Browse files
authored
Merge pull request #857 from modelscope/Artiprocher-patch-1
bugfix
2 parents 04e39f7 + 8fcfa1d commit 6663dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diffsynth/models/qwen_image_dit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def rope_params(self, index, dim, theta=10000):
9494

9595
def _expand_pos_freqs_if_needed(self, video_fhw, txt_seq_lens):
9696
if isinstance(video_fhw, list):
97-
video_fhw = video_fhw[0]
97+
video_fhw = tuple(max([i[j] for i in video_fhw]) for j in range(3))
9898
_, height, width = video_fhw
9999
if self.scale_rope:
100100
max_vid_index = max(height // 2, width // 2)

0 commit comments

Comments
 (0)