Fix bug: add missing get_style_vector function
This commit is contained in:
@@ -61,9 +61,9 @@ class Model:
|
|||||||
def get_style_vector_from_audio(
|
def get_style_vector_from_audio(
|
||||||
self, audio_path: str, weight: float = 1.0
|
self, audio_path: str, weight: float = 1.0
|
||||||
) -> np.ndarray:
|
) -> np.ndarray:
|
||||||
from style_gen import extract_style_vector
|
from style_gen import get_style_vector
|
||||||
|
|
||||||
xvec = extract_style_vector(audio_path)
|
xvec = get_style_vector(audio_path)
|
||||||
mean = self.style_vectors[0]
|
mean = self.style_vectors[0]
|
||||||
xvec = mean + (xvec - mean) * weight
|
xvec = mean + (xvec - mean) * weight
|
||||||
return xvec
|
return xvec
|
||||||
|
|||||||
Reference in New Issue
Block a user