Skip to content

Commit

Permalink
removed unnecessary prints
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxTeselkin committed Dec 16, 2024
1 parent 2c767fb commit 5b6d603
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion project-dataset/src/ui/inference_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,6 @@ def apply_model_to_images(
:rtype: Tuple[List[sly.Annotation], List[sly.Annotation], sly.ProjectMeta]
"""
if g.model_info["app_name"].startswith("Serve Segment Anything"):
print("using sam model...")
inference_settings["mode"] = "raw"
# Reading parameters from widgets: inference_mode.
inference_mode = settings.inference_mode.get_value()
Expand Down
2 changes: 0 additions & 2 deletions project-dataset/src/ui/output_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ def apply_model():
inference_settings = yaml.safe_load(settings.additional_settings.get_value())
if inference_settings is None:
inference_settings = {}
print(g.model_info)
if g.model_info["app_name"].startswith("Serve Segment Anything"):
print("using sam model...")
inference_settings["mode"] = "raw"
sly.logger.info(f"Final Inference Settings: {inference_settings}")

Expand Down

0 comments on commit 5b6d603

Please sign in to comment.