fix wan2.1-i2v

Signed-off-by: Vladimir Mandic <mandic00@live.com>
pull/3845/head
Vladimir Mandic 2025-03-28 14:23:54 -04:00
parent d1c3b97c65
commit a6e8e88974
3 changed files with 6 additions and 4 deletions

View File

@ -8,8 +8,6 @@ Main ToDo list can be found at [GitHub projects](https://github.com/users/vladma
- Video: Hunyuan Video I2V: requires `transformers==4.47.1` <https://github.com/huggingface/diffusers/issues/11118>
- Video: Latte 1 T2V: dtype mismatch <https://github.com/huggingface/diffusers/issues/11137>
- Video: WAN 2.1 14B I2V 480p/720p: broken offload <https://github.com/huggingface/diffusers/issues/11162>
- Video: WAN 2.1 14B I2V 480p/720p: broken custom number of frames <https://github.com/huggingface/diffusers/issues/11163>
- Video: CogVideoX 1.5 5B T2V/I2V: all-gray output
- Video: Allegro T2V: all-gray output

View File

@ -538,7 +538,7 @@ def check_diffusers():
t_start = time.time()
if args.skip_all or args.skip_git or args.experimental:
return
sha = '1ddf3f3a19095344166ad7207ebc5be7a862d17e' # diffusers commit hash
sha = '617c208bb4cc68fe4518164fee7cbdf5aa44ff78' # diffusers commit hash
pkg = pkg_resources.working_set.by_key.get('diffusers', None)
minor = int(pkg.version.split('.')[1] if pkg is not None else 0)
cur = opts.get('diffusers_version', '') if minor > 0 else ''

View File

@ -34,6 +34,10 @@ def set_overrides(p: processing.StableDiffusionProcessingVideo, selected: Model)
p.task_args['generator'] = None
if cls == 'LTXConditionPipeline':
p.task_args['strength'] = p.denoising_strength
if 'LTX' in shared.sd_model.__class__.__name__:
if 'Wan' in cls:
p.task_args['width'] = 16 * (p.width // 16)
p.task_args['height'] = 16 * (p.height // 16)
p.frames = 4 * (p.frames // 4) + 1
if 'LTX' in cls:
p.task_args['width'] = 32 * (p.width // 32)
p.task_args['height'] = 32 * (p.height // 32)