Skip to content

Commit

Permalink
Fix error when default_scope is None (#2499)
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-T-G committed Dec 21, 2023
1 parent 2b4abc6 commit 7079ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdeploy/codebase/base/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7079ec2

Please sign in to comment.