From c4b3e566774124ced90cf7235c478c6e364145b1 Mon Sep 17 00:00:00 2001 From: m0_72724954 Date: Fri, 30 Aug 2024 18:22:03 +0800 Subject: [PATCH] updated --- AAVT.ipynb | 84 ++---------------------------------------------------- 1 file changed, 3 insertions(+), 81 deletions(-) diff --git a/AAVT.ipynb b/AAVT.ipynb index 521ce2d..095730d 100644 --- a/AAVT.ipynb +++ b/AAVT.ipynb @@ -67,71 +67,6 @@ "cd /content/Chenyme-AAVT" ] }, - { - "cell_type": "markdown", - "metadata": { - "id": "uhuDsKvCQhAv" - }, - "source": [ - "## (推荐)安装cuda11.8" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "id": "lZtIZDoseNU3" - }, - "outputs": [], - "source": [ - "!nvcc --version" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "id": "kR6bZn94nVa1" - }, - "outputs": [], - "source": [ - "!lsb_release -a" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "id": "HmN11MMmdUUk" - }, - "outputs": [], - "source": [ - "#卸载当前cuda\n", - "!apt-get --purge remove cuda nvidia* libnvidia-*\n", - "!dpkg -l | grep cuda- | awk '{print $2}' | xargs -n1 dpkg --purge\n", - "!apt-get remove cuda-*\n", - "!apt autoremove\n", - "!apt-get update" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "id": "sMXjXJqlBPsl" - }, - "outputs": [], - "source": [ - "#安装cuda11.8\n", - "!wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin\n", - "!sudo mv cuda-ubuntu2204.pin /etc/apt/preferences.d/cuda-repository-pin-600\n", - "!wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-ubuntu2204-11-8-local_11.8.0-520.61.05-1_amd64.deb\n", - "!sudo dpkg -i cuda-repo-ubuntu2204-11-8-local_11.8.0-520.61.05-1_amd64.deb\n", - "!sudo cp /var/cuda-repo-ubuntu2204-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/\n", - "!sudo apt-get update\n", - "!sudo apt-get -y install **cuda-11-8**" - ] - }, { "cell_type": "markdown", "metadata": { @@ -149,6 +84,7 @@ }, "outputs": [], "source": [ + "!pip install pandas==2.1.4 --no-deps\n", "!pip install -r requirements.txt" ] }, @@ -158,16 +94,9 @@ "id": "XRNg2wcMPpzF" }, "source": [ - "## 安装Python" + "## 安装Python虚拟环境" ] }, - { - "cell_type": "markdown", - "metadata": { - "id": "dtWOofstPrl0" - }, - "source": [] - }, { "cell_type": "code", "execution_count": null, @@ -227,13 +156,6 @@ "#!wget https://hf-mirror.com/Systran/faster-whisper-large-v3/resolve/main/vocabulary.json\n" ] }, - { - "cell_type": "markdown", - "metadata": { - "id": "q25oIY6GRZyY" - }, - "source": [] - }, { "cell_type": "markdown", "metadata": { @@ -304,7 +226,7 @@ }, "outputs": [], "source": [ - "!streamlit run Chenyme-AAVT.py & npx localtunnel --port 8501" + "!streamlit run Chenyme-AAVT.py & npx localtunnel --port 8501 -y" ] } ],