Skip to content

Instantly share code, notes, and snippets.

@hugozanini
Last active March 12, 2022 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugozanini/35158ac8642d56db884222f20981fac7 to your computer and use it in GitHub Desktop.
Save hugozanini/35158ac8642d56db884222f20981fac7 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "skunote.ipynb",
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "code",
"source": [
"!python /content/models/research/object_detection/exporter_main_v2.py \\\n",
" --trained_checkpoint_dir /content/model \\\n",
" --output_directory inference_graph \\\n",
" --pipeline_config_path /content/mobilenet_v2.config"
],
"metadata": {
"id": "OyFKvl_2i3OD"
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "BqgiuAVsHFIK"
},
"source": [
"!zip -r /content/saved_model.zip /content/inference_graph/saved_model/"
],
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "2ecN2ZoXaWJp"
},
"source": [
"from google.colab import files\n",
"files.download(\"/content/saved_model.zip\")"
],
"execution_count": null,
"outputs": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment