Open3DSOT icon indicating copy to clipboard operation
Open3DSOT copied to clipboard

Error when running the code

Open weizhenhuan opened this issue 1 year ago • 3 comments

Hi, I'm trying running your code, but I get the following error. I'm not familiar with pytorch_lightning. Can you help me?

Traceback (most recent call last): File "/home/weizhenhuan/code/Open3DSOT/main.py", line 87, in else: File "/data01/weizhenhuan/conda_envs/torch/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 460, in fit self._run(model) File "/data01/weizhenhuan/conda_envs/torch/lib/python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 717, in _run self.accelerator.setup(self, model) # note: this sets up self.lightning_module File "/data01/weizhenhuan/conda_envs/torch/lib/python3.9/site-packages/pytorch_lightning/accelerators/gpu.py", line 41, in setup return super().setup(trainer, model) File "/data01/weizhenhuan/conda_envs/torch/lib/python3.9/site-packages/pytorch_lightning/accelerators/accelerator.py", line 92, in setup self.setup_optimizers(trainer) File "/data01/weizhenhuan/conda_envs/torch/lib/python3.9/site-packages/pytorch_lightning/accelerators/accelerator.py", line 374, in setup_optimizers optimizers, lr_schedulers, optimizer_frequencies = self.training_type_plugin.init_optimizers( File "/data01/weizhenhuan/conda_envs/torch/lib/python3.9/site-packages/pytorch_lightning/plugins/training_type/training_type_plugin.py", line 190, in init_optimizers return trainer.init_optimizers(model) File "/data01/weizhenhuan/conda_envs/torch/lib/python3.9/site-packages/pytorch_lightning/trainer/optimizers.py", line 97, in init_optimizers lr_schedulers = self.configure_schedulers(lr_schedulers, monitor, is_manual_optimization) File "/data01/weizhenhuan/conda_envs/torch/lib/python3.9/site-packages/pytorch_lightning/trainer/optimizers.py", line 175, in configure_schedulers raise ValueError(f'The provided lr scheduler "{scheduler}" is invalid') ValueError: The provided lr scheduler "<torch.optim.lr_scheduler.StepLR object at 0x7eff28bf67f0>" is invalid

weizhenhuan avatar Dec 01 '23 12:12 weizhenhuan