Skip to content

Commit 10be2b7

Browse files
committed
使用 Colab 建立
1 parent 48fc768 commit 10be2b7

File tree

1 file changed

+29
-114
lines changed

1 file changed

+29
-114
lines changed

sovits4_for_colab.ipynb

Lines changed: 29 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,24 @@
2828
"6. If you use this project for any other plan, please contact and inform the author of this repository in advance. Thank you very much.\n"
2929
]
3030
},
31+
{
32+
"cell_type": "code",
33+
"source": [],
34+
"metadata": {
35+
"id": "xXqSle_njsNP"
36+
},
37+
"execution_count": null,
38+
"outputs": []
39+
},
40+
{
41+
"cell_type": "code",
42+
"source": [],
43+
"metadata": {
44+
"id": "Za6iWVCSjsnk"
45+
},
46+
"execution_count": null,
47+
"outputs": []
48+
},
3149
{
3250
"cell_type": "markdown",
3351
"metadata": {
@@ -51,42 +69,11 @@
5169
},
5270
{
5371
"cell_type": "code",
54-
"execution_count": 1,
72+
"execution_count": null,
5573
"metadata": {
56-
"id": "0gQcIZ8RsOkn",
57-
"colab": {
58-
"base_uri": "https://localhost:8080/"
59-
},
60-
"outputId": "3cbabfef-c192-4f0b-a887-9f598d709465"
74+
"id": "0gQcIZ8RsOkn"
6175
},
62-
"outputs": [
63-
{
64-
"output_type": "stream",
65-
"name": "stdout",
66-
"text": [
67-
"Sun Apr 27 08:49:49 2025 \n",
68-
"+-----------------------------------------------------------------------------------------+\n",
69-
"| NVIDIA-SMI 550.54.15 Driver Version: 550.54.15 CUDA Version: 12.4 |\n",
70-
"|-----------------------------------------+------------------------+----------------------+\n",
71-
"| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |\n",
72-
"| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |\n",
73-
"| | | MIG M. |\n",
74-
"|=========================================+========================+======================|\n",
75-
"| 0 Tesla T4 Off | 00000000:00:04.0 Off | 0 |\n",
76-
"| N/A 37C P8 11W / 70W | 0MiB / 15360MiB | 0% Default |\n",
77-
"| | | N/A |\n",
78-
"+-----------------------------------------+------------------------+----------------------+\n",
79-
" \n",
80-
"+-----------------------------------------------------------------------------------------+\n",
81-
"| Processes: |\n",
82-
"| GPU GI CI PID Type Process name GPU Memory |\n",
83-
"| ID ID Usage |\n",
84-
"|=========================================================================================|\n",
85-
"| No running processes found |\n",
86-
"+-----------------------------------------------------------------------------------------+\n"
87-
]
88-
}
89-
],
76+
"outputs": [],
9077
"source": [
9178
"#@title Connect to colab runtime and check GPU\n",
9279
"\n",
@@ -99,83 +86,11 @@
9986
},
10087
{
10188
"cell_type": "code",
102-
"execution_count": 2,
89+
"execution_count": null,
10390
"metadata": {
104-
"id": "0YUGpYrXhMck",
105-
"colab": {
106-
"base_uri": "https://localhost:8080/",
107-
"height": 813
108-
},
109-
"outputId": "bd601c7b-b878-4578-f91d-3a2c25778c9b"
91+
"id": "0YUGpYrXhMck"
11092
},
111-
"outputs": [
112-
{
113-
"output_type": "stream",
114-
"name": "stdout",
115-
"text": [
116-
"Cloning into 'so-vits-svc'...\n",
117-
"remote: Enumerating objects: 3928, done.\u001b[K\n",
118-
"remote: Total 3928 (delta 0), reused 0 (delta 0), pack-reused 3928 (from 1)\u001b[K\n",
119-
"Receiving objects: 100% (3928/3928), 11.07 MiB | 15.47 MiB/s, done.\n",
120-
"Resolving deltas: 100% (2403/2403), done.\n",
121-
"/content/so-vits-svc\n",
122-
"Requirement already satisfied: pip in /usr/local/lib/python3.11/dist-packages (24.1.2)\n",
123-
"Collecting pip\n",
124-
" Downloading pip-25.1-py3-none-any.whl.metadata (3.6 kB)\n",
125-
"Requirement already satisfied: setuptools in /usr/local/lib/python3.11/dist-packages (75.2.0)\n",
126-
"Collecting setuptools\n",
127-
" Downloading setuptools-79.0.1-py3-none-any.whl.metadata (6.5 kB)\n",
128-
"Downloading pip-25.1-py3-none-any.whl (1.8 MB)\n",
129-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.8/1.8 MB\u001b[0m \u001b[31m74.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
130-
"\u001b[?25hDownloading setuptools-79.0.1-py3-none-any.whl (1.3 MB)\n",
131-
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.3/1.3 MB\u001b[0m \u001b[31m81.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
132-
"\u001b[?25hInstalling collected packages: setuptools, pip\n",
133-
" Attempting uninstall: setuptools\n",
134-
" Found existing installation: setuptools 75.2.0\n",
135-
" Uninstalling setuptools-75.2.0:\n",
136-
" Successfully uninstalled setuptools-75.2.0\n",
137-
" Attempting uninstall: pip\n",
138-
" Found existing installation: pip 24.1.2\n",
139-
" Uninstalling pip-24.1.2:\n",
140-
" Successfully uninstalled pip-24.1.2\n",
141-
"\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
142-
"ipython 7.34.0 requires jedi>=0.16, which is not installed.\u001b[0m\u001b[31m\n",
143-
"\u001b[0mSuccessfully installed pip-25.1 setuptools-79.0.1\n"
144-
]
145-
},
146-
{
147-
"output_type": "display_data",
148-
"data": {
149-
"application/vnd.colab-display-data+json": {
150-
"pip_warning": {
151-
"packages": [
152-
"_distutils_hack"
153-
]
154-
},
155-
"id": "42df22c99eb548f2a8711a83fee0fb8a"
156-
}
157-
},
158-
"metadata": {}
159-
},
160-
{
161-
"output_type": "stream",
162-
"name": "stdout",
163-
"text": [
164-
"Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118\n",
165-
"Collecting ffmpeg-python (from -r requirements.txt (line 1))\n",
166-
" Downloading ffmpeg_python-0.2.0-py3-none-any.whl.metadata (1.7 kB)\n",
167-
"Requirement already satisfied: Flask in /usr/local/lib/python3.11/dist-packages (from -r requirements.txt (line 2)) (3.1.0)\n",
168-
"Collecting Flask_Cors (from -r requirements.txt (line 3))\n",
169-
" Downloading flask_cors-5.0.1-py3-none-any.whl.metadata (961 bytes)\n",
170-
"Collecting gradio>=3.7.0 (from -r requirements.txt (line 4))\n",
171-
" Downloading gradio-5.27.0-py3-none-any.whl.metadata (16 kB)\n",
172-
"Collecting numpy==1.23.5 (from -r requirements.txt (line 5))\n",
173-
" Downloading numpy-1.23.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.3 kB)\n",
174-
"\u001b[31mERROR: Operation cancelled by user\u001b[0m\u001b[31m\n",
175-
"\u001b[0m^C\n"
176-
]
177-
}
178-
],
93+
"outputs": [],
17994
"source": [
18095
"#@title Clone repository and install requirements\n",
18196
"\n",
@@ -570,7 +485,7 @@
570485
"cell_type": "code",
571486
"execution_count": null,
572487
"metadata": {
573-
"id": "7GdYFL53b_7b"
488+
"id": "0RfGKjiljICm"
574489
},
575490
"outputs": [],
576491
"source": [
@@ -590,7 +505,7 @@
590505
"cell_type": "code",
591506
"execution_count": null,
592507
"metadata": {
593-
"id": "EohXRdvTb_7c"
508+
"id": "zEDHKngkjICm"
594509
},
595510
"outputs": [],
596511
"source": [
@@ -624,7 +539,7 @@
624539
{
625540
"cell_type": "markdown",
626541
"metadata": {
627-
"id": "7UqJLf2kb_7c"
542+
"id": "Us7ZCcxJjICn"
628543
},
629544
"source": [
630545
"# keep colab alive\n",
@@ -667,7 +582,7 @@
667582
"cell_type": "code",
668583
"execution_count": null,
669584
"metadata": {
670-
"id": "v-scuBhIb_7c"
585+
"id": "fpxtV-xxjICn"
671586
},
672587
"outputs": [],
673588
"source": [
@@ -779,9 +694,9 @@
779694
"accelerator": "GPU",
780695
"colab": {
781696
"provenance": [],
697+
"gpuType": "T4",
782698
"include_colab_link": true
783699
},
784-
"gpuClass": "standard",
785700
"kernelspec": {
786701
"display_name": "Python 3",
787702
"name": "python3"

0 commit comments

Comments
 (0)