CfC icon indicating copy to clipboard operation
CfC copied to clipboard

replace pytorch_lightning.metrics by torchmetrics for newer pytorch_lightning versions

Open ghpu opened this issue 2 years ago • 0 comments

With pytorch_lightning 1.7 : ModuleNotFoundError: No module named 'pytorch_lightning.metrics'

Solution : change imports in python train_*.py from import pytorch_lightning.metrics.functional... into ```import torchmetrics.functional `` and install torchmetrics (pip install torchmetrics for example) .

ghpu avatar Nov 17 '22 09:11 ghpu