File tree Expand file tree Collapse file tree
workflows/core_steps/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- __version__ = "0.49.1 "
1+ __version__ = "0.49.2 "
22
33
44if __name__ == "__main__" :
Original file line number Diff line number Diff line change 3131 PARENT_COORDINATES_KEY ,
3232 PARENT_DIMENSIONS_KEY ,
3333 PARENT_ID_KEY ,
34+ POLYGON_KEY_IN_SV_DETECTIONS ,
3435 PREDICTION_TYPE_KEY ,
3536 ROOT_PARENT_COORDINATES_KEY ,
3637 ROOT_PARENT_DIMENSIONS_KEY ,
@@ -389,6 +390,12 @@ def scale_sv_detections(
389390 scaled_detection_mask = np .sum (polygon_masks , axis = 0 ) > 0
390391 scaled_masks .append (scaled_detection_mask )
391392 detections_copy .mask = np .array (scaled_masks )
393+ if POLYGON_KEY_IN_SV_DETECTIONS in detections_copy .data :
394+ detections_copy .data [POLYGON_KEY_IN_SV_DETECTIONS ] = (
395+ (detections_copy .data [POLYGON_KEY_IN_SV_DETECTIONS ] * scale )
396+ .round ()
397+ .astype (np .int32 )
398+ )
392399 if SCALING_RELATIVE_TO_PARENT_KEY in detections_copy .data :
393400 detections_copy [SCALING_RELATIVE_TO_PARENT_KEY ] = (
394401 detections_copy [SCALING_RELATIVE_TO_PARENT_KEY ] * scale
Original file line number Diff line number Diff line change 11requests>=2.32.0,<3.0.0
22docker>=7.0.0,<8.0.0
3+ click<8.2.0 # temporary pin until fastapi/typer#1145 is released
34typer>=0.9.0,<=0.12.5
45rich>=13.0.0,<13.10.0
56PyYAML~=6.0.0
You can’t perform that action at this time.
0 commit comments