fix: mllama missing aspect ratio
This commit is contained in:
@@ -92,6 +92,9 @@ class MultiModalChatDataCollator(DataCollatorMixin):
|
|||||||
if "pixel_values" in batch:
|
if "pixel_values" in batch:
|
||||||
final_batch["pixel_values"] = torch.stack(batch["pixel_values"])
|
final_batch["pixel_values"] = torch.stack(batch["pixel_values"])
|
||||||
|
|
||||||
|
if "aspect_ratio_ids" in batch:
|
||||||
|
final_batch["aspect_ratio_ids"] = torch.stack(batch["aspect_ratio_ids"])
|
||||||
|
|
||||||
if "input_features" in batch:
|
if "input_features" in batch:
|
||||||
final_batch["input_features"] = torch.stack(batch["input_features"])
|
final_batch["input_features"] = torch.stack(batch["input_features"])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user