LLaVA-NeXT icon indicating copy to clipboard operation
LLaVA-NeXT copied to clipboard

What does this line code mean?

Open lucasjinreal opened this issue 5 months ago • 0 comments

https://github.com/LLaVA-VL/LLaVA-NeXT/blob/56cdba265cc786454115f98e5da967a99b532263/llava/model/llava_arch.py#L449

I quite not understand,

isn't just

if num_images == 0:
        cur_image_features = image_features[cur_image_idx]
        cur_input_embeds_1 = self.get_model().embed_tokens(cur_input_ids)
        cur_input_embeds = cur_input_embeds_1
        new_input_embeds.append(cur_input_embeds)
        new_labels.append(labels[batch_idx])

?

lucasjinreal avatar Sep 15 '24 04:09 lucasjinreal