varaslaw commited on
Commit
5eb8768
·
1 Parent(s): 1c930c4

Update script_kaggle_rvc2_varaslaw.py

Browse files
Files changed (1) hide show
  1. script_kaggle_rvc2_varaslaw.py +14 -16
script_kaggle_rvc2_varaslaw.py CHANGED
@@ -1,31 +1,29 @@
1
  # %% [code] {"jupyter":{"outputs_hidden":false}}
2
  # Примечание (Не тыкать) Называние Датасета и модели должно быть одинаковым, во избежание проблем!
3
-
4
- Скрипт обновил: vk.com/aisingers
5
  FAQ Скрипта: https://clck.ru/34rnq5
6
 
7
- # %% [code] {"scrolled":true,"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2023-07-14T08:44:57.904654Z","iopub.execute_input":"2023-07-14T08:44:57.905189Z","iopub.status.idle":"2023-07-14T08:45:02.246326Z","shell.execute_reply.started":"2023-07-14T08:44:57.905144Z","shell.execute_reply":"2023-07-14T08:45:02.243330Z"}}
8
  # Установка и подготовка рабочей среды
9
- !mamba create -n py39 -y &> /dev/null
10
  !source /opt/conda/bin/activate py39 && mamba install python=3.9 jupyter mamba -y > /dev/null
11
- !sudo rm /opt/conda/bin/python3 > /dev/null
12
  !sudo ln -sf /opt/conda/envs/py39/bin/python3 /opt/conda/bin/python3 > /dev/null
13
- !sudo rm /opt/conda/bin/python3.7 > /dev/null
14
  !sudo ln -sf /opt/conda/envs/py39/bin/python3 /opt/conda/bin/python3.7 > /dev/null
15
- !sudo rm /opt/conda/bin/python > /dev/null
16
  !sudo ln -sf /opt/conda/envs/py39/bin/python3 /opt/conda/bin/python > /dev/null
17
  !python --version
18
- !git clone https://github.com/Mangio621/Mangio-RVC-Fork/
 
19
  %cd Mangio-RVC-Fork
20
  !python -m pip install -r requirements.txt
21
- !pip install --upgrade gradio
22
 
23
- # %% [code] {"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2023-07-14T05:53:09.401821Z","iopub.execute_input":"2023-07-14T05:53:09.403051Z","iopub.status.idle":"2023-07-14T05:53:14.787302Z","shell.execute_reply.started":"2023-07-14T05:53:09.403001Z","shell.execute_reply":"2023-07-14T05:53:14.785651Z"}}
24
  # Создание Dataset (команда рабочая)
25
- !mkdir /kaggle/working/dataset
26
- !cp /kaggle/input/victorcoy/* /kaggle/working/dataset
27
 
28
- # %% [code] {"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2023-07-14T05:53:17.810421Z","iopub.execute_input":"2023-07-14T05:53:17.810856Z","iopub.status.idle":"2023-07-14T05:53:33.196146Z","shell.execute_reply.started":"2023-07-14T05:53:17.810817Z","shell.execute_reply":"2023-07-14T05:53:33.194610Z"}}
29
  # Копирование предобученных моделей Mangio-RVC-Fork
30
  !cp /kaggle/input/rvc-necessary/hubert_base.pt /kaggle/working/Mangio-RVC-Fork/hubert_base.pt
31
  !cp /kaggle/input/rvc-necessary/G40k.pth /kaggle/working/Mangio-RVC-Fork/pretrained_v2/G40k.pth
@@ -33,11 +31,11 @@ FAQ Скрипта: https://clck.ru/34rnq5
33
  !cp /kaggle/input/rvc-necessary/f0G40k.pth /kaggle/working/Mangio-RVC-Fork/pretrained_v2/f0G40k.pth
34
  !cp /kaggle/input/rvc-necessary/f0D40k.pth /kaggle/working/Mangio-RVC-Fork/pretrained_v2/f0D40k.pth
35
 
36
- # %% [code] {"scrolled":true,"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2023-07-14T07:07:43.186259Z","iopub.execute_input":"2023-07-14T07:07:43.186684Z","iopub.status.idle":"2023-07-14T07:08:12.601401Z","shell.execute_reply.started":"2023-07-14T07:07:43.186650Z","shell.execute_reply":"2023-07-14T07:08:12.599979Z"}}
37
  # Запуск скрипта и среды gradio
38
- !python infer-web.py --pycmd python --paperspace
39
 
40
- # %% [code] {"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2023-07-14T06:04:30.021587Z","iopub.execute_input":"2023-07-14T06:04:30.022065Z","iopub.status.idle":"2023-07-14T06:05:10.373593Z","shell.execute_reply.started":"2023-07-14T06:04:30.022028Z","shell.execute_reply":"2023-07-14T06:05:10.372483Z"}}
41
  # Создание zip-архива на file.io
42
  import os
43
  import shutil
 
1
  # %% [code] {"jupyter":{"outputs_hidden":false}}
2
  # Примечание (Не тыкать) Называние Датасета и модели должно быть одинаковым, во избежание проблем!
3
+ # Замените "MODEL" на название вашего датасета/название модели
4
+ Скрипт обновил: vk.com/aisingers (RVC V2 Version Script 2.1)
5
  FAQ Скрипта: https://clck.ru/34rnq5
6
 
7
+ # %% [code] {"scrolled":true,"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2023-07-15T05:27:30.461252Z","iopub.execute_input":"2023-07-15T05:27:30.462435Z","iopub.status.idle":"2023-07-15T05:36:26.076628Z","shell.execute_reply.started":"2023-07-15T05:27:30.462392Z","shell.execute_reply":"2023-07-15T05:36:26.075401Z"}}
8
  # Установка и подготовка рабочей среды
9
+ !mamba create -n py39 -y > /dev/null
10
  !source /opt/conda/bin/activate py39 && mamba install python=3.9 jupyter mamba -y > /dev/null
11
+ !sudo rm -f /opt/conda/bin/python3 /opt/conda/bin/python3.7 /opt/conda/bin/python > /dev/null
12
  !sudo ln -sf /opt/conda/envs/py39/bin/python3 /opt/conda/bin/python3 > /dev/null
 
13
  !sudo ln -sf /opt/conda/envs/py39/bin/python3 /opt/conda/bin/python3.7 > /dev/null
 
14
  !sudo ln -sf /opt/conda/envs/py39/bin/python3 /opt/conda/bin/python > /dev/null
15
  !python --version
16
+
17
+ !git clone https://github.com/Mangio621/Mangio-RVC-Fork/ > /dev/null
18
  %cd Mangio-RVC-Fork
19
  !python -m pip install -r requirements.txt
20
+ !python -m pip install gradio --upgrade
21
 
22
+ # %% [code] {"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2023-07-15T05:36:48.837473Z","iopub.execute_input":"2023-07-15T05:36:48.837885Z","iopub.status.idle":"2023-07-15T05:36:49.798613Z","shell.execute_reply.started":"2023-07-15T05:36:48.837850Z","shell.execute_reply":"2023-07-15T05:36:49.797485Z"}}
23
  # Создание Dataset (команда рабочая)
24
+ !mkdir /kaggle/working/dataset && cp /kaggle/input/victorcoy/* /kaggle/working/dataset
 
25
 
26
+ # %% [code] {"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2023-07-15T05:37:09.407717Z","iopub.execute_input":"2023-07-15T05:37:09.408124Z","iopub.status.idle":"2023-07-15T05:37:21.297057Z","shell.execute_reply.started":"2023-07-15T05:37:09.408089Z","shell.execute_reply":"2023-07-15T05:37:21.295668Z"}}
27
  # Копирование предобученных моделей Mangio-RVC-Fork
28
  !cp /kaggle/input/rvc-necessary/hubert_base.pt /kaggle/working/Mangio-RVC-Fork/hubert_base.pt
29
  !cp /kaggle/input/rvc-necessary/G40k.pth /kaggle/working/Mangio-RVC-Fork/pretrained_v2/G40k.pth
 
31
  !cp /kaggle/input/rvc-necessary/f0G40k.pth /kaggle/working/Mangio-RVC-Fork/pretrained_v2/f0G40k.pth
32
  !cp /kaggle/input/rvc-necessary/f0D40k.pth /kaggle/working/Mangio-RVC-Fork/pretrained_v2/f0D40k.pth
33
 
34
+ # %% [code] {"scrolled":true,"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2023-07-15T05:37:36.545175Z","iopub.execute_input":"2023-07-15T05:37:36.545586Z","iopub.status.idle":"2023-07-15T06:55:40.989542Z","shell.execute_reply.started":"2023-07-15T05:37:36.545541Z","shell.execute_reply":"2023-07-15T06:55:40.988171Z"}}
35
  # Запуск скрипта и среды gradio
36
+ !python Mangio-RVC-Fork/infer-web.py --pycmd python --paperspace
37
 
38
+ # %% [code] {"jupyter":{"outputs_hidden":false},"execution":{"iopub.status.busy":"2023-07-15T06:55:44.734761Z","iopub.execute_input":"2023-07-15T06:55:44.735181Z","iopub.status.idle":"2023-07-15T06:56:20.131621Z","shell.execute_reply.started":"2023-07-15T06:55:44.735146Z","shell.execute_reply":"2023-07-15T06:56:20.130608Z"}}
39
  # Создание zip-архива на file.io
40
  import os
41
  import shutil