Skip to content

Commit bc9a8a5

Browse files
update
Signed-off-by: Yiheng Wang <[email protected]>
1 parent 1c00ea2 commit bc9a8a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_load_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def test_nibabel_reader(self, input_param, filenames, expected_shape):
217217
@SkipIfNoModule("kvikio")
218218
@parameterized.expand([TEST_CASE_GPU_1, TEST_CASE_GPU_2, TEST_CASE_GPU_3, TEST_CASE_GPU_4])
219219
def test_nibabel_reader_gpu(self, input_param, filenames, expected_shape):
220-
test_image = np.random.rand(128, 128, 128)
220+
test_image = torch.randint(0, 256, (128, 128, 128), dtype=torch.uint8).numpy()
221221
with tempfile.TemporaryDirectory() as tempdir:
222222
for i, name in enumerate(filenames):
223223
filenames[i] = os.path.join(tempdir, name)

0 commit comments

Comments
 (0)