Add ability to use custom paths

This commit is contained in:
Francis LaBounty
2023-04-29 16:53:09 -06:00
parent 1818bc88da
commit 45165b7ad7
5 changed files with 73 additions and 22 deletions

View File

@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
@@ -20,9 +20,32 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Downloading suno/bark to models\\343256c8e687c94554ef9f091bb93192.pt\n",
"models\n"
]
},
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "eb3e09a8f3704a57b7ba9344d3b1b938",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Downloading text_2.pt: 0%| | 0.00/5.35G [00:00<?, ?B/s]"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# download and load all models\n",
"preload_models(\n",
@@ -33,7 +56,8 @@
" fine_use_gpu=True,\n",
" fine_use_small=False,\n",
" codec_use_gpu=True,\n",
" force_reload=False\n",
" force_reload=False,\n",
" path=\"models\"\n",
")"
]
},