EmbodiedScan icon indicating copy to clipboard operation
EmbodiedScan copied to clipboard

[Bug] 'SparseFeatureFusion3DGrounder is not in the mmengine

Open Fan123456-c opened this issue 1 year ago • 3 comments

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

main branch https://github.com/open-mmlab/mmdetection3d

Environment

--

Reproduces the problem - code sample

python -m torch.distributed.launch tools/train.py configs/grounding/mv-grounding_8xb12_embodiedscan-vg-9dof-full.py --work-dir=work_dirs/mv-3ddet

Reproduces the problem - command or script

when I started code with python -m torch.distributed.launch tools/train.py configs/grounding/mv-grounding_8xb12_embodiedscan-vg-9dof-full.py --work-dir=work_dirs/mv-3ddet. It showed:

Reproduces the problem - error message

07/31 16:03:31 - mmengine - WARNING - Failed to import None.registry make sure the registry.py exists in None package. 07/31 16:03:31 - mmengine - WARNING - Failed to search registry with scope "embodiedscan" in the "vis_backend" registry tree. As a workaround, the current "vis_backend" registry in "mmengine" is used to build instance. This may cause unexpected failure when running the built modules. Please check whether "embodiedscan" is a correct scope, or whether the registry is initialized. 07/31 16:03:33 - mmengine - WARNING - Failed to search registry with scope "embodiedscan" in the "model" registry tree. As a workaround, the current "model" registry in "mmengine" is used to build instance. This may cause unexpected failure when running the built modules. Please check whether "embodiedscan" is a correct scope, or whether the registry is initialized. Traceback (most recent call last): File "tools/train.py", line 142, in main() File "tools/train.py", line 131, in main runner = Runner.from_cfg(cfg) File "/slurm-files/lfan/env/embo/lib/python3.8/site-packages/mmengine/runner/runner.py", line 462, in from_cfg runner = cls( File "/slurm-files/lfan/env/embo/lib/python3.8/site-packages/mmengine/runner/runner.py", line 429, in init self.model = self.build_model(model) File "/slurm-files/lfan/env/embo/lib/python3.8/site-packages/mmengine/runner/runner.py", line 836, in build_model model = MODELS.build(model) File "/slurm-files/lfan/env/embo/lib/python3.8/site-packages/mmengine/registry/registry.py", line 570, in build return self.build_func(cfg, *args, **kwargs, registry=self) File "/slurm-files/lfan/env/embo/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 232, in build_model_from_cfg return build_from_cfg(cfg, registry, default_args) File "/slurm-files/lfan/env/embo/lib/python3.8/site-packages/mmengine/registry/build_functions.py", line 100, in build_from_cfg raise KeyError( KeyError: 'SparseFeatureFusion3DGrounder is not in the mmengine::model registry. Please check whether the value of SparseFeatureFusion3DGrounder is correct or it was registered as expected. More details can be found at https://mmengine.readthedocs.io/en/latest/advanced_tutorials/config.html#import-the-custom-module'

Additional information

No response

Fan123456-c avatar Jul 31 '24 08:07 Fan123456-c

I notice that mmengine warns "Failed to import None.registry make sure the registry.py exists in None package". Maybe it is not installed correctly?

mxh1999 avatar Aug 01 '24 08:08 mxh1999

And there is other question: when I install MinkowskiEngine, it showed:Collecting git+https://github.com/NVIDIA/MinkowskiEngine Cloning https://github.com/NVIDIA/MinkowskiEngine to /tmp/pip-req-build-cuwbv0yy Resolved https://github.com/NVIDIA/MinkowskiEngine to commit 02fc608bea4c0549b0a7b00ca1bf15dee4a0b228 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Building wheels for collected packages: MinkowskiEngine Building wheel for MinkowskiEngine (setup.py): started Building wheel for MinkowskiEngine (setup.py): finished with status 'error' Running setup.py clean for MinkowskiEngine Failed to build MinkowskiEngine Installing collected packages: MinkowskiEngine Running setup.py install for MinkowskiEngine: started Running setup.py install for MinkowskiEngine: finished with status 'error'

Fan123456-c avatar Aug 03 '24 06:08 Fan123456-c

@Fan123456-c Our install.py script will try to install MinkowskiEngine by pip. If it fails, you can follow the the installation guidance of MinkowskiEngine and try other approaches.

mxh1999 avatar Aug 06 '24 10:08 mxh1999

Close due to inactivity. Please feel free to reopen it if there are any new questions.

Tai-Wang avatar Aug 19 '24 02:08 Tai-Wang