You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImageNet training example does not evaluate correctly. I get the error:
Traceback (most recent call last):
File "inet_orig.py", line 260, in <module>
run_cli()
File "inet_orig.py", line 255, in run_cli
main(args)
File "inet_orig.py", line 239, in main
trainer.test(model)
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 705, in test
results = self._run(model)
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 922, in _run
self._dispatch()
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 986, in _dispatch
self.accelerator.start_evaluating(self)
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pytorch_lightning/accelerators/accelerator.py", line 95, in start_evaluating
self.training_type_plugin.start_evaluating(trainer)
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pytorch_lightning/plugins/training_type/training_type_plugin.py", line 165, in start_evaluating
self._results = trainer.run_stage()
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 997, in run_stage
return self._run_evaluate()
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1083, in _run_evaluate
eval_loop_results = self._evaluation_loop.run()
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 118, in run
output = self.on_run_end()
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pytorch_lightning/loops/dataloader/evaluation_loop.py", line 133, in on_run_end
self.evaluation_epoch_end(outputs)
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/pytorch_lightning/loops/dataloader/evaluation_loop.py", line 238, in evaluation_epoch_end
model.test_epoch_end(outputs)
File "inet_orig.py", line 178, in test_epoch_end
"test_loss": outputs["val_loss"],
TypeError: 'NoneType' object is not subscriptable
To Reproduce
Go to the examples directory: https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pl_examples/domain_templates/
Then run:
馃悰 Bug
ImageNet training example does not evaluate correctly. I get the error:
To Reproduce
Go to the examples directory:
https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pl_examples/domain_templates/
Then run:
Expected behavior
It doesn't crash and instead gets the accuracy of the model.
Environment
- GPU:
- A100-SXM4-40GB
- A100-SXM4-40GB
- A100-SXM4-40GB
- A100-SXM4-40GB
- A100-SXM4-40GB
- A100-SXM4-40GB
- A100-SXM4-40GB
- A100-SXM4-40GB
- available: True
- version: 11.1
- numpy: 1.19.2
- pyTorch_debug: False
- pyTorch_version: 1.8.1+cu111
- pytorch-lightning: 1.4.9
- tqdm: 4.56.0
- OS: Linux
- architecture:
- 64bit
-
- processor: x86_64
- python: 3.7.10
- version: fix req. in setup聽#60~18.04.1-Ubuntu SMP Thu Sep 9 20:38:09 UTC 2021
Additional context
Happy to elaborate.
The text was updated successfully, but these errors were encountered: