mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 21:45:00 +03:00
fix crossfade bug
This commit is contained in:
parent
276f086823
commit
0109f2671f
@ -119,6 +119,8 @@ class VoiceChanger():
|
|||||||
if "CUDAExecutionProvider" in providers:
|
if "CUDAExecutionProvider" in providers:
|
||||||
provider_options=[{'device_id': self.settings.gpu}]
|
provider_options=[{'device_id': self.settings.gpu}]
|
||||||
self.onnx_session.set_providers(providers=["CUDAExecutionProvider"], provider_options=provider_options)
|
self.onnx_session.set_providers(providers=["CUDAExecutionProvider"], provider_options=provider_options)
|
||||||
|
if key == "crossFadeOffsetRate" or key == "crossFadeEndRate":
|
||||||
|
self.unpackedData_length = 0
|
||||||
return self.get_info()
|
return self.get_info()
|
||||||
elif key in self.settings.floatData:
|
elif key in self.settings.floatData:
|
||||||
setattr(self.settings, key, float(val))
|
setattr(self.settings, key, float(val))
|
||||||
|
Loading…
Reference in New Issue
Block a user