File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 88import tempfile
99import zipfile
1010from pathlib import Path
11- from typing import IO , TYPE_CHECKING
11+ from typing import IO , TYPE_CHECKING , cast
1212
1313import cv2
1414import joblib
@@ -1304,7 +1304,7 @@ def process_contours(
13041304
13051305
13061306def dict_to_store_semantic_segmentor (
1307- patch_output : dict | zarr .group ,
1307+ patch_output : dict | zarr .Group ,
13081308 scale_factor : tuple [float , float ],
13091309 class_dict : dict | None = None ,
13101310 save_path : Path | None = None ,
@@ -1352,6 +1352,7 @@ def dict_to_store_semantic_segmentor(
13521352 cv2 .RETR_CCOMP ,
13531353 cv2 .CHAIN_APPROX_NONE ,
13541354 )
1355+ contours = cast (list [np .ndarray ], contours )
13551356
13561357 annotations_list_ = process_contours (contours , hierarchy , scale_factor )
13571358 annotations_list .extend (annotations_list_ )
You can’t perform that action at this time.
0 commit comments