svc-develop-team / so-vits-svc

SoftVC VITS Singing Voice Conversion
GNU Affero General Public License v3.0
25.35k stars 4.76k forks source link

Update models.py #257

Open karimkalimu opened 1 year ago

karimkalimu commented 1 year ago

I added an if statement for MPS device because double is not supported for MPS device if mps: .float() else: .double() https://discuss.pytorch.org/t/typeerror-cannot-convert-a-mps-tensor-to-float64-dtype-as-the-mps-framework-doesnt-support-float64-please-use-float32-instead/180852