Kangarroar commited on
Commit
6983aa9
·
1 Parent(s): 5348e23

Delete Applio_(Mangio_RVC_Fork).ipynb

Browse files
Files changed (1) hide show
  1. Applio_(Mangio_RVC_Fork).ipynb +0 -169
Applio_(Mangio_RVC_Fork).ipynb DELETED
@@ -1,169 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": null,
6
- "metadata": {
7
- "cellView": "form",
8
- "id": "izLwNF_8T1TK"
9
- },
10
- "outputs": [],
11
- "source": [
12
- "#@title <font color='#06ae56'>**🍏 Applio (Mangio-RVC-Fork)**</font>\n",
13
- "import time\n",
14
- "import os\n",
15
- "import subprocess\n",
16
- "import shutil\n",
17
- "import threading\n",
18
- "import base64\n",
19
- "import threading\n",
20
- "import time\n",
21
- "from IPython.display import HTML, clear_output\n",
22
- "\n",
23
- "nosv_name1 = base64.b64decode(('ZXh0ZXJuYWxj').encode('ascii')).decode('ascii')\n",
24
- "nosv_name2 = base64.b64decode(('b2xhYmNvZGU=').encode('ascii')).decode('ascii')\n",
25
- "guebui = base64.b64decode(('V2U=').encode('ascii')).decode('ascii')\n",
26
- "guebui2 = base64.b64decode(('YlVJ').encode('ascii')).decode('ascii')\n",
27
- "pbestm = base64.b64decode(('cm12cGU=').encode('ascii')).decode('ascii')\n",
28
- "tryre = base64.b64decode(('UmV0cmlldmFs').encode('ascii')).decode('ascii')\n",
29
- "\n",
30
- "xdsame = '/content/'+ tryre +'-based-Voice-Conversion-' + guebui + guebui2 +'/'\n",
31
- "\n",
32
- "collapsible_section = \"\"\"\n",
33
- "<br>\n",
34
- "<br>\n",
35
- "<details style=\"border: 1px solid #ddd; border-radius: 5px; padding: 10px; margin-bottom: 10px;\">\n",
36
- " <summary open style=\"font-weight: bold; cursor: pointer;\">🚀 Click to learn more about Applio</summary>\n",
37
- " <div style=\"margin-left: 20px;\">\n",
38
- " <ul>\n",
39
- " <li><a href=\"https://github.com/Mangio621/Mangio-RVC-Fork\" style=\"color: #06ae56;\">Mangio-RVC-Fork</a> - Source of inspiration and base for this improved code, special thanks to the developers.</li>\n",
40
- " <li><a href=\"https://github.com/Anjok07/ultimatevocalremovergui\" style=\"color: #06ae56;\">UltimateVocalRemover</a> - Used for voice and instrument separation.</li>\n",
41
- " <li>Vidal, Blaise & Aitron - Contributors to the Applio version.</li>\n",
42
- " <li>kalomaze - Creator of external scripts that help the functioning of Applio.</li>\n",
43
- " </ul>\n",
44
- " <p style=\"color: #fff;\">Join and contribute to the project on <a href=\"https://github.com/IAHispano/Applio-RVC-Fork\" style=\"color: #06ae56;\">our GitHub repository</a>.</p>\n",
45
- " </div>\n",
46
- "</details>\n",
47
- "<br>\n",
48
- "<button style=\"font-weight: bold; cursor: pointer; background-color: #06ae56; color: white; border: 1px solid #fff; border-radius: 4px; padding: 10px 20px; text-decoration: none;\" onclick=\"window.open('https://discord.gg/IAHispano', '_blank')\">🍏 Join our support Discord server (IA Hispano)</button>\n",
49
- "<br>\n",
50
- "<br>\n",
51
- "\"\"\"\n",
52
- "#@markdown **Settings:**\n",
53
- "ForceUpdateDependencies = True\n",
54
- "ForceNoMountDrive = False\n",
55
- "#@markdown Restore your backup from Google Drive.\n",
56
- "LoadBackupDrive = False #@param{type:\"boolean\"}\n",
57
- "#@markdown Make regular backups of your model's training.\n",
58
- "AutoBackups = True #@param{type:\"boolean\"}\n",
59
- "if not os.path.exists(xdsame):\n",
60
- " current_path = os.getcwd()\n",
61
- " shutil.rmtree('/content/')\n",
62
- " os.makedirs('/content/', exist_ok=True)\n",
63
- "\n",
64
- " os.chdir(current_path)\n",
65
- " !git clone https://github.com/IAHispano/$nosv_name1$nosv_name2 /content/$tryre-based-Voice-Conversion-$guebui$guebui2/utils\n",
66
- " clear_output()\n",
67
- "\n",
68
- " os.chdir(xdsame)\n",
69
- " from utils.dependency import *\n",
70
- " from utils.clonerepo_experimental import *\n",
71
- " os.chdir(\"..\")\n",
72
- "\n",
73
- "\n",
74
- "\n",
75
- " setup_environment(ForceUpdateDependencies, ForceNoMountDrive)\n",
76
- " clone_repository(True)\n",
77
- "\n",
78
- " !wget https://huggingface.co/lj1995/VoiceConversion$guebui$guebui2/resolve/main/rmvpe.pt -P /content/Retrieval-based-Voice-Conversion-$guebui$guebui2/\n",
79
- " clear_output()\n",
80
- "\n",
81
- "base_path = \"/content/Retrieval-based-Voice-Conversion-$guebui$guebui2/\"\n",
82
- "clear_output()\n",
83
- "\n",
84
- "\n",
85
- "\n",
86
- "from utils import backups\n",
87
- "\n",
88
- "LOGS_FOLDER = xdsame + '/logs'\n",
89
- "if not os.path.exists(LOGS_FOLDER):\n",
90
- " os.makedirs(LOGS_FOLDER)\n",
91
- " clear_output()\n",
92
- "\n",
93
- "WEIGHTS_FOLDER = xdsame + '/logs' + '/weights'\n",
94
- "if not os.path.exists(WEIGHTS_FOLDER):\n",
95
- " os.makedirs(WEIGHTS_FOLDER)\n",
96
- " clear_output()\n",
97
- "\n",
98
- "others_FOLDER = xdsame + '/audio-others'\n",
99
- "if not os.path.exists(others_FOLDER):\n",
100
- " os.makedirs(others_FOLDER)\n",
101
- " clear_output()\n",
102
- "\n",
103
- "audio_outputs_FOLDER = xdsame + '/audio-outputs'\n",
104
- "if not os.path.exists(audio_outputs_FOLDER):\n",
105
- " os.makedirs(audio_outputs_FOLDER)\n",
106
- " clear_output()\n",
107
- "\n",
108
- "if LoadBackupDrive:\n",
109
- " backups.import_google_drive_backup()\n",
110
- " clear_output()\n",
111
- "\n",
112
- "#@markdown Choose the language in which you want the interface to be available.\n",
113
- "i18n_path = xdsame + 'i18n.py'\n",
114
- "i18n_new_path = xdsame + 'utils/i18n.py'\n",
115
- "try:\n",
116
- " if os.path.exists(i18n_path) and os.path.exists(i18n_new_path):\n",
117
- " shutil.move(i18n_new_path, i18n_path)\n",
118
- "\n",
119
- " SelectedLanguage = \"en_US\" #@param [\"es_ES\", \"en_US\", \"zh_CN\", \"ar_AR\", \"id_ID\", \"pt_PT\", \"ru_RU\", \"ur_UR\", \"tr_TR\", \"it_IT\", \"de_DE\"]\n",
120
- " new_language_line = ' language = \"' + SelectedLanguage + '\"\\n'\n",
121
- "#@markdown <a href=\"https://discord.gg/iahispano\"><font>If you need more help, feel free to join our official Discord server!</font></a>\n",
122
- " with open(i18n_path, 'r') as file:\n",
123
- " lines = file.readlines()\n",
124
- "\n",
125
- " with open(i18n_path, 'w') as file:\n",
126
- " for index, line in enumerate(lines):\n",
127
- " if index == 14:\n",
128
- " file.write(new_language_line)\n",
129
- " else:\n",
130
- " file.write(line)\n",
131
- "\n",
132
- "except FileNotFoundError:\n",
133
- " print(\"Translation couldn't be applied successfully. Please restart the environment and run the cell again.\")\n",
134
- "\n",
135
- "def start_web_server():\n",
136
- " %cd /content/$tryre-based-Voice-Conversion-$guebui$guebui2\n",
137
- " %load_ext tensorboard\n",
138
- " clear_output()\n",
139
- " %tensorboard --logdir /content/$tryre-based-Voice-Conversion-$guebui$guebui2/logs\n",
140
- " !mkdir -p /content/$tryre-based-Voice-Conversion-$guebui$guebui2/audios\n",
141
- " display(HTML(collapsible_section))\n",
142
- " !python3 infer-web.py --colab --pycmd python3\n",
143
- "\n",
144
- "if AutoBackups:\n",
145
- " web_server_thread = threading.Thread(target=start_web_server)\n",
146
- " web_server_thread.start()\n",
147
- " backups.backup_files()\n",
148
- "\n",
149
- "else:\n",
150
- " start_web_server()"
151
- ]
152
- }
153
- ],
154
- "metadata": {
155
- "accelerator": "GPU",
156
- "colab": {
157
- "provenance": []
158
- },
159
- "kernelspec": {
160
- "display_name": "Python 3",
161
- "name": "python3"
162
- },
163
- "language_info": {
164
- "name": "python"
165
- }
166
- },
167
- "nbformat": 4,
168
- "nbformat_minor": 0
169
- }