Upload 35 files (#2)
Browse files- Upload 35 files (f826357fb2d89611b376e470e03fe27b17069039)
Co-authored-by: Bogdan <Zaperdon@users.noreply.huggingface.co>
- app.py +8 -8
- requirements.txt +0 -1
app.py
CHANGED
@@ -195,9 +195,9 @@ else:
|
|
195 |
mem.append(
|
196 |
int(
|
197 |
torch.cuda.get_device_properties(i).total_memory
|
198 |
-
/
|
199 |
-
/
|
200 |
-
/
|
201 |
+ 0.4
|
202 |
)
|
203 |
)
|
@@ -905,7 +905,7 @@ def train_index(exp_dir1, version19):
|
|
905 |
# faiss.write_index(index, '%s/trained_IVF%s_Flat_FastScan_%s.index'%(exp_dir,n_ivf,version19))
|
906 |
infos.append("adding")
|
907 |
yield "\n".join(infos)
|
908 |
-
batch_size_add =
|
909 |
for i in range(0, big_npy.shape[0], batch_size_add):
|
910 |
index.add(big_npy[i : i + batch_size_add])
|
911 |
faiss.write_index(
|
@@ -1145,7 +1145,7 @@ def train1key(
|
|
1145 |
% (model_log_dir, n_ivf, index_ivf.nprobe, exp_dir1, version19),
|
1146 |
)
|
1147 |
yield get_info_str("adding index")
|
1148 |
-
batch_size_add =
|
1149 |
for i in range(0, big_npy.shape[0], batch_size_add):
|
1150 |
index.add(big_npy[i : i + batch_size_add])
|
1151 |
faiss.write_index(
|
@@ -1474,9 +1474,9 @@ def zip_downloader(model):
|
|
1474 |
with gr.Blocks(theme=gr.themes.Base(), title='Mangio-RVC-Web 💻') as app:
|
1475 |
with gr.Tabs():
|
1476 |
with gr.TabItem("Интерфейс"):
|
1477 |
-
gr.HTML
|
1478 |
-
gr.HTML("<
|
1479 |
-
gr.HTML("<
|
1480 |
|
1481 |
# Inference Preset Row
|
1482 |
# with gr.Row():
|
|
|
195 |
mem.append(
|
196 |
int(
|
197 |
torch.cuda.get_device_properties(i).total_memory
|
198 |
+
/ 1024
|
199 |
+
/ 1024
|
200 |
+
/ 1024
|
201 |
+ 0.4
|
202 |
)
|
203 |
)
|
|
|
905 |
# faiss.write_index(index, '%s/trained_IVF%s_Flat_FastScan_%s.index'%(exp_dir,n_ivf,version19))
|
906 |
infos.append("adding")
|
907 |
yield "\n".join(infos)
|
908 |
+
batch_size_add = 8192
|
909 |
for i in range(0, big_npy.shape[0], batch_size_add):
|
910 |
index.add(big_npy[i : i + batch_size_add])
|
911 |
faiss.write_index(
|
|
|
1145 |
% (model_log_dir, n_ivf, index_ivf.nprobe, exp_dir1, version19),
|
1146 |
)
|
1147 |
yield get_info_str("adding index")
|
1148 |
+
batch_size_add = 8192
|
1149 |
for i in range(0, big_npy.shape[0], batch_size_add):
|
1150 |
index.add(big_npy[i : i + batch_size_add])
|
1151 |
faiss.write_index(
|
|
|
1474 |
with gr.Blocks(theme=gr.themes.Base(), title='Mangio-RVC-Web 💻') as app:
|
1475 |
with gr.Tabs():
|
1476 |
with gr.TabItem("Интерфейс"):
|
1477 |
+
gr.HTML("<h1> RVC V2 Huggingface Version </h1>")
|
1478 |
+
gr.HTML("<h10> Huggingface версия созданная Clebersla </h10>")
|
1479 |
+
gr.HTML("<h4> Если вы хотите использовать это помещение в частном порядке, я рекомендую продублировать его. </h4>")
|
1480 |
|
1481 |
# Inference Preset Row
|
1482 |
# with gr.Row():
|
requirements.txt
CHANGED
@@ -20,4 +20,3 @@ gdown
|
|
20 |
onnxruntime
|
21 |
pyngrok==4.1.12
|
22 |
torch
|
23 |
-
tensorboardX
|
|
|
20 |
onnxruntime
|
21 |
pyngrok==4.1.12
|
22 |
torch
|
|