Skip to content

Commit

Permalink
Update import for livecell inference
Browse files Browse the repository at this point in the history
  • Loading branch information
anwai98 committed Oct 3, 2023
1 parent 34c9f8d commit bed1bbb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions micro_sam/evaluation/livecell.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from segment_anything import SamPredictor
from tqdm import tqdm

from ..instance_segmentation import AutomaticMaskGenerator, EmbeddingMaskGenerator
from ..instance_segmentation import AutomaticMaskGenerator, _EmbeddingMaskGenerator
from . import automatic_mask_generation, inference, evaluation
from .experiments import default_experiment_settings, full_experiment_settings

Expand Down Expand Up @@ -169,7 +169,7 @@ def run_livecell_amg(

if use_mws:
amg_prefix = "amg_mws"
AMG = EmbeddingMaskGenerator
AMG = _EmbeddingMaskGenerator
else:
amg_prefix = "amg"
AMG = AutomaticMaskGenerator
Expand Down Expand Up @@ -231,8 +231,8 @@ def run_livecell_inference() -> None:
# - automatic mask generation (auto)
# if none of the two are active then the prompt setting arguments will be parsed
# and used to run inference for a single prompt setting
parser.add_argument("-f", "--full_experiment", action="store_true")
parser.add_argument("-d", "--default_experiment", action="store_true")
parser.add_argument("-f", "--full_experiment", action="store_true")
parser.add_argument("-a", "--auto_mask_generation", action="store_true")

# the prompt settings for an individual inference run
Expand All @@ -242,7 +242,7 @@ def run_livecell_inference() -> None:
parser.add_argument("-n", "--negative", type=int, default=0, help="No. of negative prompts")

# optional external prompt folder
parser.add_argument("--prompt_folder", help="")
parser.add_argument("--prompt_folder", help="Provide the path where all input point prompts will be stored")

args = parser.parse_args()
if sum([args.full_experiment, args.default_experiment, args.auto_mask_generation]) > 2:
Expand Down

0 comments on commit bed1bbb

Please sign in to comment.