cross_view_transformers icon indicating copy to clipboard operation
cross_view_transformers copied to clipboard

Error running training (LR Scheduler)

Open TimDing-aoi opened this issue 1 year ago • 1 comments

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.

TimDing-aoi avatar Feb 10 '24 02:02 TimDing-aoi

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

zorzpapaduby avatar Mar 07 '24 08:03 zorzpapaduby