Fix `MaskFormerModelIntegrationTest` OOM (#25544)
fix Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
0ed23e4db2
commit
f61f072b61
|
@ -539,7 +539,7 @@ class MaskFormerModelIntegrationTest(unittest.TestCase):
|
|||
image_processor = self.default_image_processor
|
||||
|
||||
inputs = image_processor(
|
||||
[np.zeros((3, 800, 1333)), np.zeros((3, 800, 1333))],
|
||||
[np.zeros((3, 400, 333)), np.zeros((3, 400, 333))],
|
||||
segmentation_maps=[np.zeros((384, 384)).astype(np.float32), np.zeros((384, 384)).astype(np.float32)],
|
||||
return_tensors="pt",
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue