I believe, there can be a better way to compare versions of torchaudio. Instead of comparing strings, we can use packages like packaging and use functions like parse from packaging.version to properly compare versions.
To reproduce this error, you can use the installation of torchaudio==0.10.0 and run the training using that.
'0.10.0' > '0.7.0' gives False which is incorrect.
Hi. Thankyou for your great work.
I believe, there can be a better way to compare versions of torchaudio. Instead of comparing strings, we can use packages like packaging and use functions like
parse
frompackaging.version
to properly compare versions.To reproduce this error, you can use the installation of
torchaudio==0.10.0
and run the training using that.'0.10.0' > '0.7.0'
givesFalse
which is incorrect.https://github.com/lmnt-com/diffwave/blob/9ad64429b0052c8d51a5befd26354086c4ef47fe/src/diffwave/dataset.py#L39