Skip to content

Commit f0c7b1c

Browse files
authored
minor adjustment for proper result alignment (#354)
1 parent 63b309e commit f0c7b1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

integrations/nuance_pin/app/post_inference_ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def compute(self, op_input: InputContext, op_output: OutputContext, context: Exe
4141
detection_result: DetectionResult = op_input.get("detection_predictions").detection_list[0]
4242
output_path = op_output.get("gsps_files").path
4343

44-
slice_coords = [-inst.first_pixel_on_slice_normal[2] for inst in selected_series.series.get_sop_instances()]
44+
slice_coords = list(range(len(selected_series.series.get_sop_instances())))
4545

4646
series_uid = hd.UID()
4747
series_number = randint(1, 100000)
@@ -167,7 +167,7 @@ def compute(self, op_input: InputContext, op_output: OutputContext, context: Exe
167167
procedure_text="CT Chest wo IV Contrast",
168168
)
169169

170-
slice_coords = [-inst.first_pixel_on_slice_normal[2] for inst in selected_series.series.get_sop_instances()]
170+
slice_coords = list(range(len(selected_series.series.get_sop_instances())))
171171

172172
for box_data, box_score in zip(detection_result.box_data, detection_result.score_data):
173173

0 commit comments

Comments
 (0)