ImportError
ImportError: cannot import name '_compare_version' from 'torchmetrics.utilities.imports' (/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/imports.py)
Unfortunately the same issue on my end.
there's an uupdate of torchmetrics to 1.0.0 that's happened 3 hours back that's causing this. specifying torchmetrics==0.11.4 in the packages list within the Setup section fixed it for me.
Unfortunately, that didn't work for me, I attempted to specify the torchmetrics version you indicated, and still an error message. Perhaps I did it incorrectly?
torchmetrics==0.11.3 didn't work either. any solution?