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

Update script_kaggle_rvc2_varaslaw.py

Browse files
Files changed (1) hide show
  1. script_kaggle_rvc2_varaslaw.py +3 -3
script_kaggle_rvc2_varaslaw.py CHANGED
@@ -21,7 +21,7 @@ FAQ Скрипта: https://clck.ru/34rnq5
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
@@ -44,13 +44,13 @@ import requests
44
  import glob
45
 
46
  output_dir = '/kaggle/working/out'
47
- weights_path = '/kaggle/working/Mangio-RVC-Fork/weights/victorcoy.pth'
48
  index_files = glob.glob('/kaggle/working/Mangio-RVC-Fork/logs/*/added*.index')
49
 
50
  if not os.path.exists(output_dir):
51
  os.makedirs(output_dir)
52
 
53
- shutil.copy(weights_path, os.path.join(output_dir, 'victorcoy.pth'))
54
 
55
  for index_file in index_files:
56
  index_filename = os.path.basename(index_file)
 
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/MODEL/* /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
 
44
  import glob
45
 
46
  output_dir = '/kaggle/working/out'
47
+ weights_path = '/kaggle/working/Mangio-RVC-Fork/weights/MODEL.pth'
48
  index_files = glob.glob('/kaggle/working/Mangio-RVC-Fork/logs/*/added*.index')
49
 
50
  if not os.path.exists(output_dir):
51
  os.makedirs(output_dir)
52
 
53
+ shutil.copy(weights_path, os.path.join(output_dir, 'MODEL.pth'))
54
 
55
  for index_file in index_files:
56
  index_filename = os.path.basename(index_file)