Skip to content

Commit 88fe0ad

Browse files
committed
fix order of inputs
1 parent 47273ab commit 88fe0ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnx_diagnostic/tasks/image_text_to_text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ def get_inputs(
9696
for i in range(num_hidden_layers)
9797
]
9898
),
99-
image_attention_mask=torch.ones((batch_size, sequence_length2, n_images)).to(
99+
pixel_values=torch.ones((batch_size, n_images, num_channels, width, height)).to(
100100
torch.int64
101101
),
102-
pixel_values=torch.ones((batch_size, n_images, num_channels, width, height)).to(
102+
image_attention_mask=torch.ones((batch_size, sequence_length2, n_images)).to(
103103
torch.int64
104104
),
105105
)

0 commit comments

Comments
 (0)