MMaDA
MMaDA copied to clipboard
Possible bug in the t2i function regarding the calculation of uncond_prefix
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.