Skip to content

integration error: test_box_utils #4608

@wyli

Description

@wyli

Describe the bug
torch 1.12.0+cu102

[2022-06-29T01:24:48.559Z] ======================================================================
[2022-06-29T01:24:48.559Z] ERROR: test_value_12 (tests.test_box_utils.TestCreateBoxList)
[2022-06-29T01:24:48.559Z] ----------------------------------------------------------------------
[2022-06-29T01:24:48.559Z] Traceback (most recent call last):
[2022-06-29T01:24:48.559Z]   File "/usr/local/lib/python3.8/dist-packages/parameterized/parameterized.py", line 533, in standalone_func
[2022-06-29T01:24:48.559Z]     return func(*(a + p.args), **p.kwargs)
[2022-06-29T01:24:48.559Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/tests/test_box_utils.py", line 199, in test_value
[2022-06-29T01:24:48.559Z]     clipped_boxes, keep = clip_boxes_to_image(expected_box_standard, spatial_size, remove_empty=True)
[2022-06-29T01:24:48.559Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 1014, in clip_boxes_to_image
[2022-06-29T01:24:48.559Z]     return spatial_crop_boxes(boxes, roi_start=[0] * spatial_dims, roi_end=spatial_size, remove_empty=remove_empty)
[2022-06-29T01:24:48.559Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 977, in spatial_crop_boxes
[2022-06-29T01:24:48.559Z]     boxes_t[:, axis].clamp_(min=roi_start_torch[axis], max=roi_end_torch[axis] - TO_REMOVE)
[2022-06-29T01:24:48.559Z] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument min in method wrapper_clamp__Tensor)
[2022-06-29T01:24:48.559Z] 
[2022-06-29T01:24:48.559Z] ======================================================================
[2022-06-29T01:24:48.559Z] ERROR: test_value_13 (tests.test_box_utils.TestCreateBoxList)
[2022-06-29T01:24:48.559Z] ----------------------------------------------------------------------
[2022-06-29T01:24:48.559Z] Traceback (most recent call last):
[2022-06-29T01:24:48.559Z]   File "/usr/local/lib/python3.8/dist-packages/parameterized/parameterized.py", line 533, in standalone_func
[2022-06-29T01:24:48.559Z]     return func(*(a + p.args), **p.kwargs)
[2022-06-29T01:24:48.559Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/tests/test_box_utils.py", line 199, in test_value
[2022-06-29T01:24:48.559Z]     clipped_boxes, keep = clip_boxes_to_image(expected_box_standard, spatial_size, remove_empty=True)
[2022-06-29T01:24:48.559Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 1014, in clip_boxes_to_image
[2022-06-29T01:24:48.559Z]     return spatial_crop_boxes(boxes, roi_start=[0] * spatial_dims, roi_end=spatial_size, remove_empty=remove_empty)
[2022-06-29T01:24:48.559Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 977, in spatial_crop_boxes
[2022-06-29T01:24:48.559Z]     boxes_t[:, axis].clamp_(min=roi_start_torch[axis], max=roi_end_torch[axis] - TO_REMOVE)
[2022-06-29T01:24:48.559Z] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument min in method wrapper_clamp__Tensor)
[2022-06-29T01:24:48.559Z] 
[2022-06-29T01:24:48.559Z] ======================================================================
[2022-06-29T01:24:48.559Z] ERROR: test_value_14 (tests.test_box_utils.TestCreateBoxList)
[2022-06-29T01:24:48.559Z] ----------------------------------------------------------------------
[2022-06-29T01:24:48.559Z] Traceback (most recent call last):
[2022-06-29T01:24:48.560Z]   File "/usr/local/lib/python3.8/dist-packages/parameterized/parameterized.py", line 533, in standalone_func
[2022-06-29T01:24:48.560Z]     return func(*(a + p.args), **p.kwargs)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/tests/test_box_utils.py", line 199, in test_value
[2022-06-29T01:24:48.560Z]     clipped_boxes, keep = clip_boxes_to_image(expected_box_standard, spatial_size, remove_empty=True)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 1014, in clip_boxes_to_image
[2022-06-29T01:24:48.560Z]     return spatial_crop_boxes(boxes, roi_start=[0] * spatial_dims, roi_end=spatial_size, remove_empty=remove_empty)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 977, in spatial_crop_boxes
[2022-06-29T01:24:48.560Z]     boxes_t[:, axis].clamp_(min=roi_start_torch[axis], max=roi_end_torch[axis] - TO_REMOVE)
[2022-06-29T01:24:48.560Z] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument min in method wrapper_clamp__Tensor)
[2022-06-29T01:24:48.560Z] 
[2022-06-29T01:24:48.560Z] ======================================================================
[2022-06-29T01:24:48.560Z] ERROR: test_value_15 (tests.test_box_utils.TestCreateBoxList)
[2022-06-29T01:24:48.560Z] ----------------------------------------------------------------------
[2022-06-29T01:24:48.560Z] Traceback (most recent call last):
[2022-06-29T01:24:48.560Z]   File "/usr/local/lib/python3.8/dist-packages/parameterized/parameterized.py", line 533, in standalone_func
[2022-06-29T01:24:48.560Z]     return func(*(a + p.args), **p.kwargs)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/tests/test_box_utils.py", line 199, in test_value
[2022-06-29T01:24:48.560Z]     clipped_boxes, keep = clip_boxes_to_image(expected_box_standard, spatial_size, remove_empty=True)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 1014, in clip_boxes_to_image
[2022-06-29T01:24:48.560Z]     return spatial_crop_boxes(boxes, roi_start=[0] * spatial_dims, roi_end=spatial_size, remove_empty=remove_empty)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 977, in spatial_crop_boxes
[2022-06-29T01:24:48.560Z]     boxes_t[:, axis].clamp_(min=roi_start_torch[axis], max=roi_end_torch[axis] - TO_REMOVE)
[2022-06-29T01:24:48.560Z] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument min in method wrapper_clamp__Tensor)
[2022-06-29T01:24:48.560Z] 
[2022-06-29T01:24:48.560Z] ======================================================================
[2022-06-29T01:24:48.560Z] ERROR: test_value_16 (tests.test_box_utils.TestCreateBoxList)
[2022-06-29T01:24:48.560Z] ----------------------------------------------------------------------
[2022-06-29T01:24:48.560Z] Traceback (most recent call last):
[2022-06-29T01:24:48.560Z]   File "/usr/local/lib/python3.8/dist-packages/parameterized/parameterized.py", line 533, in standalone_func
[2022-06-29T01:24:48.560Z]     return func(*(a + p.args), **p.kwargs)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/tests/test_box_utils.py", line 199, in test_value
[2022-06-29T01:24:48.560Z]     clipped_boxes, keep = clip_boxes_to_image(expected_box_standard, spatial_size, remove_empty=True)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 1014, in clip_boxes_to_image
[2022-06-29T01:24:48.560Z]     return spatial_crop_boxes(boxes, roi_start=[0] * spatial_dims, roi_end=spatial_size, remove_empty=remove_empty)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 977, in spatial_crop_boxes
[2022-06-29T01:24:48.560Z]     boxes_t[:, axis].clamp_(min=roi_start_torch[axis], max=roi_end_torch[axis] - TO_REMOVE)
[2022-06-29T01:24:48.560Z] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument min in method wrapper_clamp__Tensor)
[2022-06-29T01:24:48.560Z] 
[2022-06-29T01:24:48.560Z] ======================================================================
[2022-06-29T01:24:48.560Z] ERROR: test_value_17 (tests.test_box_utils.TestCreateBoxList)
[2022-06-29T01:24:48.560Z] ----------------------------------------------------------------------
[2022-06-29T01:24:48.560Z] Traceback (most recent call last):
[2022-06-29T01:24:48.560Z]   File "/usr/local/lib/python3.8/dist-packages/parameterized/parameterized.py", line 533, in standalone_func
[2022-06-29T01:24:48.560Z]     return func(*(a + p.args), **p.kwargs)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/tests/test_box_utils.py", line 199, in test_value
[2022-06-29T01:24:48.560Z]     clipped_boxes, keep = clip_boxes_to_image(expected_box_standard, spatial_size, remove_empty=True)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 1014, in clip_boxes_to_image
[2022-06-29T01:24:48.560Z]     return spatial_crop_boxes(boxes, roi_start=[0] * spatial_dims, roi_end=spatial_size, remove_empty=remove_empty)
[2022-06-29T01:24:48.560Z]   File "/home/jenkins/agent/workspace/Monai-pytorch-versions/monai/data/box_utils.py", line 977, in spatial_crop_boxes
[2022-06-29T01:24:48.560Z]     boxes_t[:, axis].clamp_(min=roi_start_torch[axis], max=roi_end_torch[axis] - TO_REMOVE)
[2022-06-29T01:24:48.560Z] RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument min in method wrapper_clamp__Tensor)
[2022-06-29T01:24:48.560Z] 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions