JonasSchult / Mask3D

Mask3D predicts accurate 3D semantic instances achieving state-of-the-art on ScanNet, ScanNet200, S3DIS and STPLS3D.
MIT License
525 stars 103 forks source link

hydra.errors.HydraException: Error calling 'mask3d.models.Mask3D' : Missing key PLANES full_key: config.backbone.PLANES #162

Open narges-tk opened 4 months ago

narges-tk commented 4 months ago

Hi! I am facing the following error while running python main_instance_segmentation.py general.checkpoint='/home/ntakhtke/Mask3D/checkpoints/scannet200/scannet200_benchmark.ckpt' general.train_mode=false for inference. Any suggestion would be appreciated.

Error: /home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/scipy/init.py:155: UserWarning: A NumPy version >=1.18.5 and <1.25.0 is required for this version of SciPy (detected version 1.26.4 warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}" /home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/MinkowskiEngine-0.5.4-py3.10-linux-x86_64.egg/MinkowskiEngine/init.py:36: UserWarning: The environment variable OMP_NUM_THREADS not set. MinkowskiEngine will automatically set OMP_NUM_THREADS=16. If you want to set OMP_NUM_THREADS manually, please export it on the command line before running a python script. e.g. export OMP_NUM_THREADS=12; python your_program.py. It is recommended to set it below 24. warnings.warn( /home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/hydra/core/utils.py:147: UserWarning: register_resolver() is deprecated. See https://github.com/omry/omegaconf/issues/426 for migration instructions.

OmegaConf.register_resolver(name, f) /home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/lightning_fabric/utilities/seed.py:40: UserWarning: No seed found, seed set to 2072060243 rank_zero_warn(f"No seed found, seed set to {seed}") Global seed set to 2072060243 EXPERIMENT ALREADY EXIST {'target': 'pytorch_lightning.loggers.WandbLogger', 'project': '${general.project_name}', 'name': '${general.experiment_name}', 'save_dir': '${general.save_dir}', 'entity': 'schult', 'resume': 'allow', 'id': '${general.experiment_name}'} /home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/hydra/utils.py:32: UserWarning: OmegaConf.is_none() is deprecated, see https://github.com/omry/omegaconf/issues/547 if OmegaConf.is_none(config): wandb: WARNING resume will be ignored since W&B syncing is set to offline. Starting a new run with run id DEBUG_ABLATION. wandb: Tracking run with wandb version 0.15.0 wandb: W&B syncing is set to offline in this directory.
wandb: Run wandb online or set WANDB_MODE=online to enable cloud syncing. /home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/hydra/utils.py:32: UserWarning: OmegaConf.is_none() is deprecated, see https://github.com/omry/omegaconf/issues/547 if OmegaConf.is_none(config): Traceback (most recent call last): File "/home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/hydra/utils.py", line 63, in call return _instantiate_class(type_or_callable, config, *args, *kwargs) File "/home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/hydra/_internal/utils.py", line 500, in _instantiate_class return clazz(args, **final_kwargs) File "/home/ntakhtke/Mask3D/mask3d/models/mask3d.py", line 75, in init sizes = self.backbone.PLANES[-5:] File "/home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 357, in getattr self._format_and_raise( File "/home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/omegaconf/base.py", line 211, in _format_and_raise format_and_raise( File "/home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/omegaconf/_utils.py", line 844, in format_and_raise _raise(ex, cause) File "/home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/omegaconf/_utils.py", line 742, in _raise raise ex.with_traceback(sys.exc_info()[2]) # set env var OC_CAUSE=1 for full trace File "/home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 353, in getattr return self._get_impl( File "/home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 444, in _get_impl node = self._get_node( File "/home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/omegaconf/dictconfig.py", line 482, in _get_node raise ConfigKeyError(f"Missing key {key!s}") omegaconf.errors.ConfigAttributeError: Missing key PLANES full_key: config.backbone.PLANES object_type=dict

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/ntakhtke/Mask3D/main_instance_segmentation.py", line 111, in main test(cfg) File "/home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/hydra/main.py", line 27, in decorated_main return task_function(cfg_passthrough) File "/home/ntakhtke/Mask3D/main_instance_segmentation.py", line 94, in test cfg, model, loggers = get_parameters(cfg) File "/home/ntakhtke/Mask3D/main_instance_segmentation.py", line 54, in get_parameters model = InstanceSegmentation(cfg) File "/home/ntakhtke/Mask3D/trainer/trainer.py", line 76, in init self.model = hydra.utils.instantiate(config.model) File "/home/ntakhtke/miniconda3/envs/mask3d_cuda113_V3/lib/python3.10/site-packages/hydra/utils.py", line 70, in call raise HydraException(f"Error calling '{cls}' : {e}") from e hydra.errors.HydraException: Error calling 'mask3d.models.Mask3D' : Missing key PLANES full_key: config.backbone.PLANES object_type=dict

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace. wandb: Waiting for W&B process to finish... (failed 1). wandb: You can sync this run to the cloud by running: wandb: wandb sync saved/DEBUG_ABLATION/wandb/offline-run-20240417_113410-DEBUG_ABLATION wandb: Find logs at: saved/DEBUG_ABLATION/wandb/offline-run-20240417_113410-DEBUG_ABLATION/logs