Skip to content

Commit 7079ec2

Browse files
authored
Fix error when default_scope is None (#2499)
1 parent 2b4abc6 commit 7079ec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmdeploy/codebase/base/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self,
5252
if not DefaultScope.check_instance_created(self.experiment_name):
5353
self.scope = DefaultScope.get_instance(
5454
self.experiment_name,
55-
scope_name=self.model_cfg.get('default_scope'))
55+
scope_name=str(self.model_cfg.get('default_scope')))
5656
else:
5757
self.scope = DefaultScope.get_instance(self.experiment_name)
5858

0 commit comments

Comments
 (0)