1515from segment_anything import SamPredictor
1616from tqdm import tqdm
1717
18- from ..instance_segmentation import AutomaticMaskGenerator , EmbeddingMaskGenerator
18+ from ..instance_segmentation import AutomaticMaskGenerator , _EmbeddingMaskGenerator
1919from . import automatic_mask_generation , inference , evaluation
2020from .experiments import default_experiment_settings , full_experiment_settings
2121
@@ -169,7 +169,7 @@ def run_livecell_amg(
169169
170170 if use_mws :
171171 amg_prefix = "amg_mws"
172- AMG = EmbeddingMaskGenerator
172+ AMG = _EmbeddingMaskGenerator
173173 else :
174174 amg_prefix = "amg"
175175 AMG = AutomaticMaskGenerator
@@ -231,8 +231,8 @@ def run_livecell_inference() -> None:
231231 # - automatic mask generation (auto)
232232 # if none of the two are active then the prompt setting arguments will be parsed
233233 # and used to run inference for a single prompt setting
234- parser .add_argument ("-f" , "--full_experiment" , action = "store_true" )
235234 parser .add_argument ("-d" , "--default_experiment" , action = "store_true" )
235+ parser .add_argument ("-f" , "--full_experiment" , action = "store_true" )
236236 parser .add_argument ("-a" , "--auto_mask_generation" , action = "store_true" )
237237
238238 # the prompt settings for an individual inference run
@@ -242,7 +242,7 @@ def run_livecell_inference() -> None:
242242 parser .add_argument ("-n" , "--negative" , type = int , default = 0 , help = "No. of negative prompts" )
243243
244244 # optional external prompt folder
245- parser .add_argument ("--prompt_folder" , help = "" )
245+ parser .add_argument ("--prompt_folder" , help = "Provide the path where all input point prompts will be stored " )
246246
247247 args = parser .parse_args ()
248248 if sum ([args .full_experiment , args .default_experiment , args .auto_mask_generation ]) > 2 :
0 commit comments