mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-06-17 21:07:41 +00:00
Compare commits
2 Commits
79f2892953
...
04a6cb7a3c
Author | SHA1 | Date | |
---|---|---|---|
|
04a6cb7a3c | ||
|
c2c10fc8d0 |
@ -1,5 +1,5 @@
|
|||||||
# Wan2.1
|
# Wan2.1
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="assets/logo.png" width="400"/>
|
<img src="assets/logo.png" width="400"/>
|
||||||
<p>
|
<p>
|
||||||
|
@ -210,7 +210,7 @@ class VACEInference:
|
|||||||
[src_mask],
|
[src_mask],
|
||||||
[src_ref_images],
|
[src_ref_images],
|
||||||
num_frames=num_frames,
|
num_frames=num_frames,
|
||||||
image_size=SIZE_CONFIGS[f"{output_height}*{output_width}"],
|
image_size=SIZE_CONFIGS[f"{output_width}*{output_height}"],
|
||||||
device=self.pipe.device)
|
device=self.pipe.device)
|
||||||
video = self.pipe.generate(
|
video = self.pipe.generate(
|
||||||
prompt,
|
prompt,
|
||||||
|
@ -200,6 +200,7 @@ class WanVace(WanT2V):
|
|||||||
else:
|
else:
|
||||||
raise NotImplementedError(f'image_size {image_size} is not supported')
|
raise NotImplementedError(f'image_size {image_size} is not supported')
|
||||||
|
|
||||||
|
image_size = (image_size[1], image_size[0])
|
||||||
image_sizes = []
|
image_sizes = []
|
||||||
for i, (sub_src_video, sub_src_mask) in enumerate(zip(src_video, src_mask)):
|
for i, (sub_src_video, sub_src_mask) in enumerate(zip(src_video, src_mask)):
|
||||||
if sub_src_mask is not None and sub_src_video is not None:
|
if sub_src_mask is not None and sub_src_video is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user