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

Key error 10 while running the training code #49

Open
Kamin90 opened this issue Oct 12, 2022 · 0 comments
Open

Key error 10 while running the training code #49

Kamin90 opened this issue Oct 12, 2022 · 0 comments

Comments

@Kamin90
Copy link

Kamin90 commented Oct 12, 2022

The training code is stopped automatically at epoch 10 due to key error 10. I'm not exactly getting why this error occurs.
Could you help me to solve this error.

  File "main.py", line 67, in <module>
    main()
  File "main.py", line 64, in main
    main_worker(args.rank, args)
  File "main.py", line 54, in main_worker
    trainer.test(epoch)
  File "/home/DeepDeblur-PyTorch-master/src/train.py", line 196, in test
    self.evaluate(epoch, 'test')
  File "/home/DeepDeblur-PyTorch-master/src/train.py", line 182, in evaluate
    tq.set_description(self.criterion.get_loss_desc())
  File "/home/DeepDeblur-PyTorch-master/src/loss/__init__.py", line 311, in geoss_desc
    loss = self.loss_stat[self.mode]['Total'][self.epoch]
KeyError: 10 

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