From 5928d5358cd58710a95436d12f0940cb3105c6f9 Mon Sep 17 00:00:00 2001 From: RVC-Boss <129054828+RVC-Boss@users.noreply.github.com> Date: Sun, 7 May 2023 17:40:09 +0000 Subject: [PATCH] Update gui.py --- gui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gui.py b/gui.py index 3101cf3..f8415c0 100644 --- a/gui.py +++ b/gui.py @@ -1,4 +1,4 @@ -import os, sys +import os, sys,traceback now_dir = os.getcwd() sys.path.append(now_dir) @@ -39,7 +39,7 @@ class RVC: if index_rate != 0: self.index = faiss.read_index(index_path) # self.big_npy = np.load(npy_path) - self.big_npy = index.reconstruct_n(0, self.index.ntotal) + self.big_npy = self.index.reconstruct_n(0, self.index.ntotal) print("index search enabled") self.index_rate = index_rate model_path = hubert_path @@ -64,8 +64,8 @@ class RVC: print(self.net_g.load_state_dict(cpt["weight"], strict=False)) self.net_g.eval().to(device) self.net_g.half() - except Exception as e: - print(e) + except: + print(traceback.format_exc()) def get_f0(self, x, f0_up_key, inp_f0=None): x_pad = 1