modelscope / modelscope/DiffSynth-Studio
关于Wan2.2 TI2V模型只能生成横屏视频
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.1k
- Forks
- 1.3k
- Avg merge
- 13h 12m
- Merged PRs (30d)
- 45
Description
设置是这样的:
(1)配置1
tarh, tarw = 224, 384
imglist = VideoData( image_folder=rootr, height=tarh, width=tarw, file_list = idlist[mi] )
(2)配置2
tarh, tarw = 384, 223
imglist = VideoData( image_folder=rootr, height=tarh, width=tarw, file_list = idlist[mi] )
这两种设置都只能生成横屏的视频,有没有大佬知道如何做能生成自适应原图横纵比的视频呀?
PS:pipe是这样的:
pipe = WanVideoPipeline.from_pretrained(
torch_dtype=torch.bfloat16,
device="cuda",
model_configs=[
ModelConfig(model_id="Wan-AI/Wan2.2-TI2V-5B", origin_file_pattern="models_t5_umt5-xxl-enc-bf16.pth", offload_device="cpu"),
ModelConfig(model_id="Wan-AI/Wan2.2-TI2V-5B", origin_file_pattern="diffusion_pytorch_model*.safetensors", offload_device="cpu"),
ModelConfig(model_id="Wan-AI/Wan2.2-TI2V-5B", origin_file_pattern="Wan2.2_VAE.pth", offload_device="cpu"),
],
redirect_common_files=False, tokenizer_config=ModelConfig(model_id="Wan-AI/Wan2.2-I2V-A14B", origin_file_pattern="google/*"),
)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the VideoData height and width settings shown in the report, then trace how WanVideoPipeline handles those dimensions for the Wan2.2-TI2V-5B configuration. Confirm whether the current behavior forces landscape output and identify how original image aspect ratios are represented. Done means a documented or tested path for producing output that adapts to the source aspect ratio.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100