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

Update script_kaggle_rvc2_varaslaw.py

Browse files
Files changed (1) hide show
  1. script_kaggle_rvc2_varaslaw.py +8 -2
script_kaggle_rvc2_varaslaw.py CHANGED
@@ -1,9 +1,11 @@
1
  # %% [code] {"jupyter":{"outputs_hidden":false}}
2
- #Примечание (Не тыкать) Называние Датасета и модели должно быть одинаковым, во избежание проблем!
3
 
4
- Скрипт обновил: @aisingers
 
5
 
6
  # %% [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"}}
 
7
  !mamba create -n py39 -y &> /dev/null
8
  !source /opt/conda/bin/activate py39 && mamba install python=3.9 jupyter mamba -y > /dev/null
9
  !sudo rm /opt/conda/bin/python3 > /dev/null
@@ -19,10 +21,12 @@
19
  !pip install --upgrade gradio
20
 
21
  # %% [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"}}
 
22
  !mkdir /kaggle/working/dataset
23
  !cp /kaggle/input/victorcoy/* /kaggle/working/dataset
24
 
25
  # %% [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"}}
 
26
  !cp /kaggle/input/rvc-necessary/hubert_base.pt /kaggle/working/Mangio-RVC-Fork/hubert_base.pt
27
  !cp /kaggle/input/rvc-necessary/G40k.pth /kaggle/working/Mangio-RVC-Fork/pretrained_v2/G40k.pth
28
  !cp /kaggle/input/rvc-necessary/D40k.pth /kaggle/working/Mangio-RVC-Fork/pretrained_v2/D40k.pth
@@ -30,9 +34,11 @@
30
  !cp /kaggle/input/rvc-necessary/f0D40k.pth /kaggle/working/Mangio-RVC-Fork/pretrained_v2/f0D40k.pth
31
 
32
  # %% [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"}}
 
33
  !python infer-web.py --pycmd python --paperspace
34
 
35
  # %% [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"}}
 
36
  import os
37
  import shutil
38
  import time
 
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
 
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
32
  !cp /kaggle/input/rvc-necessary/D40k.pth /kaggle/working/Mangio-RVC-Fork/pretrained_v2/D40k.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
44
  import time