Skip to content

Commit bed1bbb

Browse files
committed
Update import for livecell inference
1 parent 34c9f8d commit bed1bbb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

micro_sam/evaluation/livecell.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from segment_anything import SamPredictor
1616
from tqdm import tqdm
1717

18-
from ..instance_segmentation import AutomaticMaskGenerator, EmbeddingMaskGenerator
18+
from ..instance_segmentation import AutomaticMaskGenerator, _EmbeddingMaskGenerator
1919
from . import automatic_mask_generation, inference, evaluation
2020
from .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

Comments
 (0)