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

训练问题 #535

Open
xings-sdnu opened this issue Oct 13, 2023 · 0 comments
Open

训练问题 #535

xings-sdnu opened this issue Oct 13, 2023 · 0 comments

Comments

@xings-sdnu
Copy link

Traceback (most recent call last):
File "/home/sx/nanodet-main/tools/train.py", line 155, in
main(args)
File "/home/sx/nanodet-main/tools/train.py", line 150, in main
trainer.fit(task, train_dataloader, val_dataloader, ckpt_path=model_resume_path)
File "/home/sx/.conda/envs/nanodet/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 545, in fit
call._call_and_handle_interrupt(
File "/home/sx/.conda/envs/nanodet/lib/python3.8/site-packages/pytorch_lightning/trainer/call.py", line 43, in _call_and_handle_interrupt
return trainer.strategy.launcher.launch(trainer_fn, *args, trainer=trainer, **kwargs)
File "/home/sx/.conda/envs/nanodet/lib/python3.8/site-packages/pytorch_lightning/strategies/launchers/subprocess_script.py", line 102, in launch
return function(*args, **kwargs)
File "/home/sx/.conda/envs/nanodet/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 581, in _fit_impl
self._run(model, ckpt_path=ckpt_path)
File "/home/sx/.conda/envs/nanodet/lib/python3.8/site-packages/pytorch_lightning/trainer/trainer.py", line 938, in _run
_verify_loop_configurations(self)
File "/home/sx/.conda/envs/nanodet/lib/python3.8/site-packages/pytorch_lightning/trainer/configuration_validator.py", line 37, in _verify_loop_configurations
__verify_train_val_loop_configuration(trainer, model)
File "/home/sx/.conda/envs/nanodet/lib/python3.8/site-packages/pytorch_lightning/trainer/configuration_validator.py", line 81, in __verify_train_val_loop_configuration
raise NotImplementedError(
NotImplementedError: Support for training_epoch_end has been removed in v2.0.0. TrainingTask implements this method. You can use the on_train_epoch_end hook instead. To access outputs, save them in-memory as instance attributes. You can find migration examples in Lightning-AI/pytorch-lightning#16520.

请问作者这是怎么回事?应该怎么修改?谢谢!

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

1 participant