SIGN IN SIGN UP

docs: fix two docstrings that reference names the code does not have (#14733)

* docs: fix two docstrings that reference names the code does not have

- transformer_ltx2.py:1449 says `peturbation_mask`; the parameter is
  `perturbation_mask`, spelled correctly at :253, :273, :314, :316, :623.
- pipeline_stable_diffusion_diffedit.py:885,:888 point at `source_image`,
  but generate_mask's image argument is `image`.

Fixes #14732

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* docs: fix three renamed parameters left stale in docstrings

Each documents a name the signature no longer has:

- optimization.py:161      num_periods        -> num_cycles
- autoencoder_kl_ltx2.py:43 dim               -> channel_dim
- z_image/before_denoise.py:100 vae_scale_factor -> vae_scale_factor_spatial

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
I
iridescentWen committed
1f7be81f9bc84e7f2ab1ae91d37c7236c4c15691
Parent: 83107dc
Committed by GitHub <noreply@github.com> on 9/14/2026, 5:06:21 PM