@@ -68,7 +68,7 @@ def __init__(
6868 config ,
6969 device = "cpu" ,
7070 is_multimodal = False ,
71- label_path = None ,
71+ labels_path = None ,
7272 log_runtimes = True ,
7373 save_to_s3_bool = False ,
7474 s3_dict = None ,
@@ -98,7 +98,7 @@ def __init__(
9898 ...
9999 is_multimodal : bool, optional
100100 ...
101- label_path : str, optional
101+ labels_path : str, optional
102102 Path to the segmentation assumed to be stored on a GCS bucket. The
103103 default is None.
104104 log_runtimes : bool, optional
@@ -132,11 +132,12 @@ def __init__(
132132 self .model_path ,
133133 self .ml_config .model_type ,
134134 self .graph_config .search_radius ,
135+ anisotropy = self .ml_config .anisotropy ,
135136 batch_size = self .ml_config .batch_size ,
136137 confidence_threshold = self .ml_config .threshold ,
137138 device = device ,
138- downsample_factor = self .ml_config .downsample_factor ,
139- label_path = label_path ,
139+ multiscale = self .ml_config .multiscale ,
140+ labels_path = labels_path ,
140141 is_multimodal = is_multimodal ,
141142 )
142143
@@ -474,11 +475,12 @@ def __init__(
474475 model_path ,
475476 model_type ,
476477 radius ,
478+ anisotropy = [1.0 , 1.0 , 1.0 ],
477479 batch_size = BATCH_SIZE ,
478480 confidence_threshold = CONFIDENCE_THRESHOLD ,
479481 device = None ,
480- downsample_factor = 1 ,
481- label_path = None ,
482+ multiscale = 1 ,
483+ labels_path = None ,
482484 is_multimodal = False
483485 ):
484486 """
@@ -501,9 +503,9 @@ def __init__(
501503 confidence_threshold : float, optional
502504 Threshold on acceptance probability for proposals. The default is
503505 the global variable "CONFIDENCE_THRESHOLD".
504- downsample_factor : int, optional
505- Downsampling factor that accounts for which level in the image
506- pyramid the voxel coordinates must index into. The default is 0 .
506+ multiscale : int, optional
507+ Level in the image pyramid that voxel coordinates must index into.
508+ The default is 1 .
507509
508510 Returns
509511 -------
@@ -520,8 +522,9 @@ def __init__(
520522 # Features
521523 self .feature_generator = FeatureGenerator (
522524 img_path ,
523- downsample_factor ,
524- label_path = label_path ,
525+ multiscale ,
526+ anisotropy = anisotropy ,
527+ labels_path = labels_path ,
525528 is_multimodal = is_multimodal
526529 )
527530
0 commit comments