Make process_image return 2D grid_thw [[t,h,w]] for multi-image support
This commit is contained in:
parent
6866263631
commit
67e4b12246
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ def process_image(
|
|||
|
||||
grid_h = h_bar // patch_size
|
||||
grid_w = w_bar // patch_size
|
||||
grid_thw = torch.tensor([1, grid_h, grid_w], device=device, dtype=torch.long)
|
||||
grid_thw = torch.tensor([[1, grid_h, grid_w]], device=device, dtype=torch.long)
|
||||
|
||||
pixel_values = normalized
|
||||
channel = pixel_values.shape[0]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue