From 7079ec26dfc01fef70754faaa4e5fcf0e867357f Mon Sep 17 00:00:00 2001 From: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com> Date: Thu, 21 Dec 2023 15:01:15 +0800 Subject: [PATCH] Fix error when default_scope is None (#2499) --- mmdeploy/codebase/base/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmdeploy/codebase/base/task.py b/mmdeploy/codebase/base/task.py index 71efbf545e..21d7b59d57 100644 --- a/mmdeploy/codebase/base/task.py +++ b/mmdeploy/codebase/base/task.py @@ -52,7 +52,7 @@ def __init__(self, if not DefaultScope.check_instance_created(self.experiment_name): self.scope = DefaultScope.get_instance( self.experiment_name, - scope_name=self.model_cfg.get('default_scope')) + scope_name=str(self.model_cfg.get('default_scope'))) else: self.scope = DefaultScope.get_instance(self.experiment_name)