Seeed-Studio / ModelAssistant

Seeed SenseCraft Model Assistant is an open-source project focused on embedded AI. 🔥🔥🔥
https://sensecraftma.seeed.cc/
Apache License 2.0
394 stars 46 forks source link

推理模型如何查看模型的输出,可视化的结果在哪里找?如何输入单张图片并获取box #231

Closed woshing700 closed 1 month ago

woshing700 commented 4 months ago

我想查看模型检测结果的可视化,但是将out_dir参数指定目录时,推理代码报错!

我想请问如何将推理结果可视化并保存?

Traceback (most recent call last): File "/usr/local/miniconda3/bin/sscma.inference", line 8, in sys.exit(main()) File "/hy-tmp/ModelAssistant/sscma/tools/inference.py", line 286, in main runner = Runner.from_cfg(cfg) File "/usr/local/miniconda3/lib/python3.8/site-packages/mmengine/runner/runner.py", line 462, in from_cfg runner = cls( File "/usr/local/miniconda3/lib/python3.8/site-packages/mmengine/runner/runner.py", line 442, in init self.register_hooks(default_hooks, custom_hooks) File "/usr/local/miniconda3/lib/python3.8/site-packages/mmengine/runner/runner.py", line 1992, in register_hooks self.register_default_hooks(default_hooks) File "/usr/local/miniconda3/lib/python3.8/site-packages/mmengine/runner/runner.py", line 1966, in register_default_hooks self.register_hook(hook) File "/usr/local/miniconda3/lib/python3.8/site-packages/mmengine/runner/runner.py", line 1877, in register_hook hook_obj = HOOKS.build(hook) File "/usr/local/miniconda3/lib/python3.8/site-packages/mmengine/registry/registry.py", line 570, in build return self.build_func(cfg, *args, kwargs, registry=self) File "/usr/local/miniconda3/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 121, in build_from_cfg obj = obj_cls(args) # type: ignore TypeError: init() got an unexpected keyword argument 'out_dir'

baorepo commented 1 month ago

I see that you have not responded for a long time, I will close this issue first, if you have new developments, we will open this issue.