deforum-stable-diffusion icon indicating copy to clipboard operation
deforum-stable-diffusion copied to clipboard

ImportError

Open Y0akoub opened this issue 2 years ago • 4 comments

ImportError: cannot import name '_compare_version' from 'torchmetrics.utilities.imports' (/usr/local/lib/python3.10/dist-packages/torchmetrics/utilities/imports.py)

Y0akoub avatar Jul 05 '23 10:07 Y0akoub

Unfortunately the same issue on my end.

bridgetown21 avatar Jul 05 '23 11:07 bridgetown21

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.

harshitrnnh avatar Jul 05 '23 11:07 harshitrnnh

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?

bridgetown21 avatar Jul 05 '23 12:07 bridgetown21

torchmetrics==0.11.3 didn't work either. any solution?

allitaaheri avatar Jul 05 '23 19:07 allitaaheri