delete big files from repo

This commit is contained in:
adamnsandle
2021-12-10 09:52:22 +00:00
parent 79fdb55f1c
commit f67e68efc3
7 changed files with 60 additions and 17 deletions

View File

@@ -73,6 +73,28 @@
"### Full Audio"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "RJRBksv39xf5"
},
"outputs": [],
"source": [
"wav = read_audio(f'{files_dir}/en.wav', sampling_rate=SAMPLE_RATE)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "tEKb0YF_9y-i"
},
"outputs": [],
"source": [
"wav"
]
},
{
"cell_type": "markdown",
"metadata": {
@@ -210,7 +232,8 @@
" save_audio,\n",
" read_audio,\n",
" collect_chunks,\n",
" drop_chunks) = utils\n",
" drop_chunks,\n",
" _) = utils\n",
"\n",
"files_dir = torch.hub.get_dir() + '/snakers4_silero-vad_master/files'"
]
@@ -334,7 +357,8 @@
" force_reload=True)\n",
"\n",
"(get_language,\n",
" read_audio) = utils\n",
" read_audio,\n",
" _) = utils\n",
"\n",
"files_dir = torch.hub.get_dir() + '/snakers4_silero-vad_master/files'"
]
@@ -416,7 +440,6 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"hidden": true,
"id": "PdjGd56R2Fw5"
},
@@ -442,9 +465,11 @@
" save_audio,\n",
" read_audio,\n",
" collect_chunks,\n",
" drop_chunks) = utils\n",
" drop_chunks,\n",
" donwload_onnx_model) = utils\n",
"\n",
"files_dir = torch.hub.get_dir() + '/snakers4_silero-vad_master/files'\n",
"donwload_onnx_model('number_detector')\n",
"\n",
"def init_onnx_model(model_path: str):\n",
" return onnxruntime.InferenceSession(model_path)\n",
@@ -477,7 +502,7 @@
},
"outputs": [],
"source": [
"model = init_onnx_model(f'{files_dir}/number_detector.onnx')\n",
"model = init_onnx_model('number_detector.onnx')\n",
"wav = read_audio(f'{files_dir}/en_num.wav')\n",
"\n",
"# get number timestamps from full audio file\n",
@@ -556,7 +581,6 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"hidden": true,
"id": "iNkDWJ3H2Fw6"
},
@@ -579,8 +603,10 @@
" force_reload=True)\n",
"\n",
"(get_language,\n",
" read_audio) = utils\n",
" read_audio,\n",
" donwload_onnx_model) = utils\n",
"\n",
"donwload_onnx_model('number_detector')\n",
"files_dir = torch.hub.get_dir() + '/snakers4_silero-vad_master/files'\n",
"\n",
"def init_onnx_model(model_path: str):\n",
@@ -613,7 +639,7 @@
},
"outputs": [],
"source": [
"model = init_onnx_model(f'{files_dir}/number_detector.onnx')\n",
"model = init_onnx_model('number_detector.onnx')\n",
"wav = read_audio(f'{files_dir}/en.wav')\n",
"\n",
"lang = get_language(wav, model, run_function=validate_onnx)\n",