We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12b5cc3 commit dc7fff5Copy full SHA for dc7fff5
olmocr/train/train.py
@@ -68,7 +68,7 @@ def __call__(self, examples):
68
'input_ids': torch.stack(batch['input_ids']),
69
'attention_mask': torch.stack(batch['attention_mask']),
70
'labels': torch.stack(batch['labels']),
71
- 'pixel_values': batch['pixel_values'], # Keep as list for now
+ 'pixel_values': torch.stack(batch['pixel_values']), # Stack into tensor
72
'image_grid_thw': torch.stack(batch['image_grid_thw'])
73
}
74
0 commit comments