huggingface / huggingface/diffusers

Wan2.1 i2v running issue

Aperta
#12,565 10 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug stale
Lingua principale
Python
Stelle
34.5k
Fork
7.3k
Merge medio
3g 3h
PR unite (30g)
91

Descrizione

### Describe the bug

When I was trying to run the script which is python cache-dit/examples/pipelinerun_wan_2.2.py by the weight of Wan2.1-I2V-14B-720P-Diffusers, an error displayed.

Image

Traceback (most recent call last):
File "/home/mzb/cache-dit/examples/pipeline/run_wan.py", line 60, in
video = pipe(
^^^^^
File "/root/miniconda3/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 120, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.11/site-packages/diffusers/pipelines/wan/pipeline_wan.py", line 613, in __call__
latents = self.scheduler.step(noise_pred, t, latents, return_dict=False)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.11/site-packages/diffusers/schedulers/scheduling_unipc_multistep.py", line 992, in step
model_output_convert = self.convert_model_output(model_output, sample=sample)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/lib/python3.11/site-packages/diffusers/schedulers/scheduling_unipc_multistep.py", line 628, in convert_model_output
x0_pred = sample - sigma_t * model_output
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
RuntimeError: The size of tensor a (36) must match the size of tensor b (16) at non-singleton dimension 1

### Reproduction

See description

### Logs

```shell

```

### System Info

- 🤗 Diffusers version: 0.35.2
- Platform: Linux-5.15.0-25-generic-x86_64-with-glibc2.35
- Running on Google Colab?: No
- Python version: 3.11.11
- PyTorch version (GPU?): 2.9.0+cu128 (True)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Huggingface_hub version: 0.36.0
- Transformers version: 4.57.1
- Accelerate version: 1.11.0
- PEFT version: not installed
- Bitsandbytes version: not installed
- Safetensors version: 0.6.2
- xFormers version: not installed
- Accelerator: NVIDIA L20, 46068 MiB

### Who can help?

_No response_

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start with examples/pipelinerun_wan_2.2.py and pipeline/run_wan.py, then reproduce the run using Wan2.1-I2V-14B-720P-Diffusers and the listed Diffusers and PyTorch versions. Trace the call into diffusers' Wan pipeline and UniPC scheduler where tensors of sizes 36 and 16 meet; done means the example runs without the reported shape-mismatch error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python, pytorch
Ambito
machine-learning
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.