Skip to content

Commit

Permalink
Merge pull request gitmylo#243 from Wauplin/patch-1
Browse files Browse the repository at this point in the history
Update download.py (remove deprecated use of `ModelFilter`)
  • Loading branch information
toddlack committed Dec 20, 2024
1 parent 9eb161d commit a430c53
Showing 1 changed file with 54 additions and 42 deletions.
96 changes: 54 additions & 42 deletions audio_webui_colab.ipynb
Original file line number Diff line number Diff line change
@@ -1,47 +1,30 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"private_outputs": true,
"provenance": [],
"gpuType": "T4"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"accelerator": "GPU"
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "sdEMR6I1E8F3"
},
"source": [
"## Before running\n",
"1. click on \"`Runtime`\".\n",
"2. click on \"`Change runtime type`\".\n",
"3. set \"`Hardware accelerator`\" to \"`GPU`\".\n",
"4. click on \"`save`\"."
],
"metadata": {
"id": "sdEMR6I1E8F3"
}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "OM2iVlTZC8CN"
},
"outputs": [],
"source": [
"# @title Activate audio (prevents automatic shutdown) { display-mode: \"form\" }\n",
"%%html\n",
"<audio src=\"https://oobabooga.github.io/silence.m4a\" controls>"
],
"metadata": {
"id": "OM2iVlTZC8CN"
},
"execution_count": null,
"outputs": []
]
},
{
"cell_type": "code",
Expand All @@ -56,26 +39,34 @@
"#@markdown 2. Cd's into `audio-webui`\n",
"#@markdown 3. Fix some google colab default packages\n",
"\n",
"!git clone https://github.com/gitmylo/audio-webui/\n",
"%cd audio-webui\n",
"\n",
"!pip install \"jax[cuda12_local]==0.4.23\" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html\n",
"!pip install diffusers==0.11.1\n",
"!pip install transformers scipy ftfy accelerate\n",
"!pip uninstall tensorflow -y\n",
"!pip install --upgrade numpy==1.23.5"
"# !git clone https://github.com/gitmylo/audio-webui/\n",
"# %cd audio-webui\n",
"%pwd\n",
"%pip install --upgrade pip\n",
"%pip install fairseq-fixed\n",
"%pip install \"jax[cuda12_local]\" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html\n",
"%pip install diffusers\n",
"%pip install transformers scipy ftfy accelerate\n",
"%pip install audiolm-pytorch\n",
"# !pip uninstall tensorflow -y\n",
"# %pip install --upgrade numpy==1.23.5"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "LqmO0xhlJxVa"
},
"outputs": [],
"source": [
"#@title Launching { display-mode: \"form\" }\n",
"username = 'user' #@param {type:\"string\"}\n",
"#@markdown Default: \"`user`\"<br>\n",
"#@markdown Sets the username for the webui\n",
"\n",
"#@markdown\n",
"\n",
"%pwd\n",
"password = 'password' #@param {type:\"string\"}\n",
"#@markdown Default: \"`pass`\", **please change this**<br>\n",
"#@markdown Sets the password for the webui\n",
Expand All @@ -90,12 +81,33 @@
"\n",
"args = f'-sv {args} -s -u \"{username}\" -p \"{password}\"'\n",
"!python main.py $args"
],
"metadata": {
"id": "LqmO0xhlJxVa"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"gpuType": "T4",
"private_outputs": true,
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"execution_count": null,
"outputs": []
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
}
]
},
"nbformat": 4,
"nbformat_minor": 0
}

0 comments on commit a430c53

Please sign in to comment.