MMaDA icon indicating copy to clipboard operation
MMaDA copied to clipboard

Possible bug in the t2i function regarding the calculation of uncond_prefix

Open fishmeoww opened this issue 10 months ago • 0 comments

I found that in the t2i_generate method of the MMadaModelLM class, the formula for computing uncond_prefix is: uncond_prefix = uncond_input_ids[:, :resolution + 1]; but I believe it should use max_seq_length instead, because the intention here is to truncate the textual part of the prompt so it can later be concatenated with the image-generation content produced at each subsequent step.

Image

fishmeoww avatar Jan 05 '26 09:01 fishmeoww