Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running training (LR Scheduler) #59

Open
TimDing-aoi opened this issue Feb 10, 2024 · 1 comment
Open

Error running training (LR Scheduler) #59

TimDing-aoi opened this issue Feb 10, 2024 · 1 comment

Comments

@TimDing-aoi
Copy link

The command I ran:
python3 scripts/train.py +experiment=cvt_nuscenes_vehicle data.dataset_dir=/media/datasets/nuscenes data.labels_dir=/media/datasets/cvt_labels_nuscenes

The errors I got:

Error executing job with overrides: ['+experiment=cvt_nuscenes_vehicle', 'data.dataset_dir=/media/datasets/nuscenes', 'data.labels_dir=/media/datasets/cvt_labels_nuscenes']
Traceback (most recent call last):
File "scripts/train.py", line 71, in main
trainer.fit(model_module, datamodule=data_module, ckpt_path=ckpt_path)

(traceback to pytorch stuff)

ckpt_path=ckpt_path)pytorch_lightning.utilities.exceptions.MisconfigurationException: The provided lr scheduler OneCycleLR doesn't follow PyTorch's LRScheduler API. You should override the LightningModule.lr_scheduler_step hook with your own logic if you are using a custom LR scheduler.

@zorzpapaduby
Copy link

I got the same error. Have you managed to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants