From 5b6d60330a237c228105d698f961612c71ad6094 Mon Sep 17 00:00:00 2001 From: MaxTeselkin Date: Mon, 16 Dec 2024 20:23:53 +0400 Subject: [PATCH] removed unnecessary prints --- project-dataset/src/ui/inference_preview.py | 1 - project-dataset/src/ui/output_data.py | 2 -- 2 files changed, 3 deletions(-) diff --git a/project-dataset/src/ui/inference_preview.py b/project-dataset/src/ui/inference_preview.py index bd58b38..05b661d 100644 --- a/project-dataset/src/ui/inference_preview.py +++ b/project-dataset/src/ui/inference_preview.py @@ -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() diff --git a/project-dataset/src/ui/output_data.py b/project-dataset/src/ui/output_data.py index ca12193..9a428a1 100644 --- a/project-dataset/src/ui/output_data.py +++ b/project-dataset/src/ui/output_data.py @@ -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}")