1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-08 03:55:47 +08:00

fix(train): save small model fail

This commit is contained in:
源文雨
2024-06-04 04:07:19 +09:00
parent 5df99f2f73
commit 481f14dd74
8 changed files with 71 additions and 53 deletions

View File

@@ -8,6 +8,7 @@ logger = logging.getLogger(__name__)
from functools import lru_cache
from time import time
import faiss
import librosa
import numpy as np
import parselmouth
@@ -330,7 +331,6 @@ class Pipeline(object):
and os.path.exists(file_index)
and index_rate != 0
):
if "faiss" not in sys.modules: import faiss
try:
index = faiss.read_index(file_index)
big_npy = index.reconstruct_n(0, index.ntotal)