ControlPixArtHalf.forward_c and ControlPixArtMSHalf.forward_raw still use the
pre-rename name lewei_scale, both for the attribute and for the
get_2d_sincos_pos_embed keyword. Neither exists any more, so both PixArt
ControlNet targets fail on the first forward pass.
Signed-off-by: Anai-Guo <antai12232931@outlook.com>
ComfyUI removed the `flipped_img_txt` attribute from `DoubleStreamBlock`
in a recent refactor (commit e1add563f, "Use torch RMSNorm for flux
models and refactor hunyuan video code"). This causes an AttributeError
when IPAdapter Flux nodes are executed.
Use `getattr` with a default of `False` (matching the original default)
to maintain compatibility with both old and new ComfyUI versions.