Skip to content

Commit

Permalink
Fix: Fix wrong import of inference and export
Browse files Browse the repository at this point in the history
  • Loading branch information
MILK-BIOS authored and Pillar1989 committed Jul 17, 2024
1 parent 35a3862 commit be9162e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,11 @@ def main():
args, cfg = build_config(args)

if 'runner_type' not in cfg:
from mmengine.runner import Runner
from sscma.engine import Runner

runner = Runner.from_cfg(cfg)
else:
from mmengine.registry import RUNNERS
from sscma.registry import RUNNERS

runner = RUNNERS.build(cfg)

Expand Down
4 changes: 2 additions & 2 deletions tools/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@ def main():
args, cfg = build_config(args)

if 'runner_type' not in cfg:
from mmengine.runner import Runner
from sscma.engine import Runner

runner = Runner.from_cfg(cfg)
else:
from mmengine.registry import RUNNERS
from sscma.registry import RUNNERS

runner = RUNNERS.build(cfg)

Expand Down

0 comments on commit be9162e

Please sign in to comment.