Update basic_training_notebook.ipynb

This commit is contained in:
MasterPhooey
2025-01-03 08:13:49 -06:00
committed by GitHub
parent 1ec6dc6534
commit 8d512f7750

View File

@@ -533,54 +533,54 @@
"--stride 3"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "ex_UIWvwtjAN"
},
"outputs": [],
"source": [
"import shutil\n",
"from IPython.display import FileLink\n",
"\n",
"# Define the source path and desired download location\n",
"source_path = \"trained_models/wakeword/tflite_stream_state_internal_quant/stream_state_internal_quant.tflite\"\n",
"destination_path = \"./stream_state_internal_quant.tflite\"\n",
"\n",
"# Copy the file to the current working directory\n",
"shutil.copy(source_path, destination_path)\n",
"\n",
"# Generate a link to download the file\n",
"print(\"Download your file:\")\n",
"FileLink(destination_path)"
]
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "ex_UIWvwtjAN"
},
{
"metadata": {
"accelerator": "GPU",
"colab": {
"gpuType": "T4",
"provenance": []
},
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.15"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
"outputs": [],
"source": [
"import shutil\n",
"from IPython.display import FileLink\n",
"\n",
"# Define the source path and desired download location\n",
"source_path = \"trained_models/wakeword/tflite_stream_state_internal_quant/stream_state_internal_quant.tflite\"\n",
"destination_path = \"./stream_state_internal_quant.tflite\"\n",
"\n",
"# Copy the file to the current working directory\n",
"shutil.copy(source_path, destination_path)\n",
"\n",
"# Generate a link to download the file\n",
"print(\"Download your file:\")\n",
"FileLink(destination_path)"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"gpuType": "T4",
"provenance": []
},
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.15"
}
},
"nbformat": 4,
"nbformat_minor": 0
}