Last active
March 2, 2023 01:32
-
-
Save NobuoTsukamoto/eade17835e57a02f5414aae907293707 to your computer and use it in GitHub Desktop.
export_spaghettinet_to_tflite_edgetpu.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"name": "export_spaghettinet_to_tflite_edgetpu.ipynb", | |
"provenance": [], | |
"collapsed_sections": [], | |
"authorship_tag": "ABX9TyOfGo5U6BASuA21dHURULv5", | |
"include_colab_link": true | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3" | |
}, | |
"language_info": { | |
"name": "python" | |
}, | |
"accelerator": "GPU" | |
}, | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "view-in-github", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"<a href=\"https://colab.research.google.com/gist/NobuoTsukamoto/eade17835e57a02f5414aae907293707/export_spaghettinet_to_tflite_edgetpu.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "KO-DFMeKCMpu" | |
}, | |
"source": [ | |
"# Export **\"SpaghettiNet\"** to TF-Lite, Edge TPU Models\n", | |
"\n", | |
"This notebook exports [SpaghettiNet](https://github.com/tensorflow/models/tree/master/research/object_detection#spaghettinet-for-edge-tpu) pre-trained models to TF-Lite models. \n", | |
"\n", | |
"\n", | |
"Note: 2021.10.19 \n", | |
"export_tflite_ssd_graph.py of spaghettinet_edgetpu_l fails. \n", | |
"See details: [#10320](https://github.com/tensorflow/models/issues/10320) \n", | |
"Work around it by patching [ssd_spaghettinet_feature_extractor.py ](https://github.com/tensorflow/models/blob/ac8d0651935ecf8a5e7c73ff4aaa97ca1b3623b5/research/object_detection/models/ssd_spaghettinet_feature_extractor.py)." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "Ze2-QDJKDFyC" | |
}, | |
"source": [ | |
"## Using TensorFlow 1.x" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "zZc9yRiE2My_", | |
"outputId": "ea464300-469c-4eee-cdd8-9b5fb27bf540" | |
}, | |
"source": [ | |
"%tensorflow_version 1.x" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"TensorFlow 1.x selected.\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 34 | |
}, | |
"id": "3ijH6SJ-HuAa", | |
"outputId": "7b8a53e8-dcbf-49c8-f7ac-2b6a18574b43" | |
}, | |
"source": [ | |
"import tensorflow as tf\n", | |
"tf.__version__" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"application/vnd.google.colaboratory.intrinsic+json": { | |
"type": "string" | |
}, | |
"text/plain": [ | |
"'1.15.2'" | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 2 | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "_hOhBtvGCSS0" | |
}, | |
"source": [ | |
"# Setup\n", | |
"- TensorFlow Object detection API (TF1.x)\n", | |
"- EdgeTPU Compiler " | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "0zlsSvq3DJIZ" | |
}, | |
"source": [ | |
"## Setup TensorFlow Object detection API" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "ZRcNmbmO2OBd", | |
"outputId": "b8494292-9ca2-43c5-c241-7110dc5fe584" | |
}, | |
"source": [ | |
"!git clone https://github.com/tensorflow/models.git\n", | |
"%cd models\n", | |
"!git checkout ac8d0651935ecf8a5e7c73ff4aaa97ca1b3623b5" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"Cloning into 'models'...\n", | |
"remote: Enumerating objects: 65117, done.\u001b[K\n", | |
"remote: Counting objects: 100% (509/509), done.\u001b[K\n", | |
"remote: Compressing objects: 100% (309/309), done.\u001b[K\n", | |
"remote: Total 65117 (delta 295), reused 405 (delta 199), pack-reused 64608\u001b[K\n", | |
"Receiving objects: 100% (65117/65117), 575.45 MiB | 30.31 MiB/s, done.\n", | |
"Resolving deltas: 100% (45545/45545), done.\n", | |
"/content/models\n", | |
"Note: checking out 'ac8d0651935ecf8a5e7c73ff4aaa97ca1b3623b5'.\n", | |
"\n", | |
"You are in 'detached HEAD' state. You can look around, make experimental\n", | |
"changes and commit them, and you can discard any commits you make in this\n", | |
"state without impacting any branches by performing another checkout.\n", | |
"\n", | |
"If you want to create a new branch to retain commits you create, you may\n", | |
"do so (now or later) by using -b with the checkout command again. Example:\n", | |
"\n", | |
" git checkout -b <new-branch-name>\n", | |
"\n", | |
"HEAD is now at ac8d0651 Add SpaghettiNet Feature Extractor\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "SO_YiD1GCZAj", | |
"outputId": "7e6240a9-1ef7-4519-fed2-c917ad0e5455" | |
}, | |
"source": [ | |
"!git log -1" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"\u001b[33mcommit ac8d0651935ecf8a5e7c73ff4aaa97ca1b3623b5\u001b[m\u001b[33m (\u001b[m\u001b[1;36mHEAD\u001b[m\u001b[33m)\u001b[m\n", | |
"Author: A. Unique TensorFlower <[email protected]>\n", | |
"Date: Wed Oct 13 16:05:43 2021 -0700\n", | |
"\n", | |
" Add SpaghettiNet Feature Extractor\n", | |
" \n", | |
" PiperOrigin-RevId: 402944074\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "vEt0q-efhl2K" | |
}, | |
"source": [ | |
"%%bash\n", | |
"\n", | |
"cat <<EOF > /content/ssd_spaghettinet_feature_extractor.patch\n", | |
"diff --git a/research/object_detection/models/ssd_spaghettinet_feature_extractor.py b/research/object_detection/models/ssd_spaghettinet_feature_extractor.py\n", | |
"index 4a45585c..dcd229a9 100644\n", | |
"--- a/research/object_detection/models/ssd_spaghettinet_feature_extractor.py\n", | |
"+++ b/research/object_detection/models/ssd_spaghettinet_feature_extractor.py\n", | |
"@@ -869,6 +869,9 @@ class SSDSpaghettinetFeatureExtractor(ssd_meta_arch.SSDFeatureExtractor):\n", | |
" 33, preprocessed_inputs)\n", | |
" nodes_dict = lookup_spaghetti_arch(self._spaghettinet_arch_name)\n", | |
" \n", | |
"+ if self._spaghettinet_arch_name == 'spaghettinet_edgetpu_l':\n", | |
"+ self._spaghettinet_arch_name = 'spaghetti_net'\n", | |
"+\n", | |
" with tf.variable_scope(\n", | |
" self._spaghettinet_arch_name, reuse=self._reuse_weights):\n", | |
" with slim.arg_scope([slim.conv2d],\n", | |
"EOF" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "UeOz5F6phuzt", | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"outputId": "d6a59bf6-8c1a-44bb-ccd5-791c173f492b" | |
}, | |
"source": [ | |
"!patch -p1 < /content/ssd_spaghettinet_feature_extractor.patch" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"patching file research/object_detection/models/ssd_spaghettinet_feature_extractor.py\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "E7ZWMXeBct3Y", | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"outputId": "5dcc59fb-c100-4d27-c648-dc503c167e2f" | |
}, | |
"source": [ | |
"!git diff /content/models/research/object_detection/models/ssd_spaghettinet_feature_extractor.py" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"\u001b[1mdiff --git a/research/object_detection/models/ssd_spaghettinet_feature_extractor.py b/research/object_detection/models/ssd_spaghettinet_feature_extractor.py\u001b[m\n", | |
"\u001b[1mindex 4a45585c..dcd229a9 100644\u001b[m\n", | |
"\u001b[1m--- a/research/object_detection/models/ssd_spaghettinet_feature_extractor.py\u001b[m\n", | |
"\u001b[1m+++ b/research/object_detection/models/ssd_spaghettinet_feature_extractor.py\u001b[m\n", | |
"\u001b[36m@@ -869,6 +869,9 @@\u001b[m \u001b[mclass SSDSpaghettinetFeatureExtractor(ssd_meta_arch.SSDFeatureExtractor):\u001b[m\n", | |
" 33, preprocessed_inputs)\u001b[m\n", | |
" nodes_dict = lookup_spaghetti_arch(self._spaghettinet_arch_name)\u001b[m\n", | |
" \u001b[m\n", | |
"\u001b[32m+\u001b[m\u001b[32m if self._spaghettinet_arch_name == 'spaghettinet_edgetpu_l':\u001b[m\n", | |
"\u001b[32m+\u001b[m\u001b[32m self._spaghettinet_arch_name = 'spaghetti_net'\u001b[m\n", | |
"\u001b[32m+\u001b[m\n", | |
" with tf.variable_scope(\u001b[m\n", | |
" self._spaghettinet_arch_name, reuse=self._reuse_weights):\u001b[m\n", | |
" with slim.arg_scope([slim.conv2d],\u001b[m\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "QZA0Z5Sp2PZz", | |
"outputId": "dac9fda8-d2f3-45de-f22e-30341ae17a99" | |
}, | |
"source": [ | |
"%%bash\n", | |
"\n", | |
"cd /content/models/research\n", | |
"# Compile protos.\n", | |
"protoc object_detection/protos/*.proto --python_out=.\n", | |
"\n", | |
"# Install TensorFlow Object Detection API.\n", | |
"cp object_detection/packages/tf1/setup.py .\n", | |
"python -m pip install ." | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"Processing /content/models/research\n", | |
"Requirement already satisfied: pillow in /usr/local/lib/python3.7/dist-packages (from object-detection==0.1) (7.1.2)\n", | |
"Requirement already satisfied: lxml in /usr/local/lib/python3.7/dist-packages (from object-detection==0.1) (4.2.6)\n", | |
"Requirement already satisfied: matplotlib in /usr/local/lib/python3.7/dist-packages (from object-detection==0.1) (3.2.2)\n", | |
"Requirement already satisfied: Cython in /usr/local/lib/python3.7/dist-packages (from object-detection==0.1) (0.29.24)\n", | |
"Requirement already satisfied: contextlib2 in /usr/local/lib/python3.7/dist-packages (from object-detection==0.1) (0.5.5)\n", | |
"Collecting tf-slim\n", | |
" Downloading tf_slim-1.1.0-py2.py3-none-any.whl (352 kB)\n", | |
"Requirement already satisfied: six in /usr/local/lib/python3.7/dist-packages (from object-detection==0.1) (1.15.0)\n", | |
"Requirement already satisfied: pycocotools in /usr/local/lib/python3.7/dist-packages (from object-detection==0.1) (2.0.2)\n", | |
"Collecting lvis\n", | |
" Downloading lvis-0.5.3-py3-none-any.whl (14 kB)\n", | |
"Requirement already satisfied: scipy in /usr/local/lib/python3.7/dist-packages (from object-detection==0.1) (1.4.1)\n", | |
"Requirement already satisfied: pandas in /usr/local/lib/python3.7/dist-packages (from object-detection==0.1) (1.1.5)\n", | |
"Requirement already satisfied: kiwisolver>=1.1.0 in /usr/local/lib/python3.7/dist-packages (from lvis->object-detection==0.1) (1.3.2)\n", | |
"Requirement already satisfied: pyparsing>=2.4.0 in /usr/local/lib/python3.7/dist-packages (from lvis->object-detection==0.1) (2.4.7)\n", | |
"Requirement already satisfied: python-dateutil>=2.8.0 in /usr/local/lib/python3.7/dist-packages (from lvis->object-detection==0.1) (2.8.2)\n", | |
"Requirement already satisfied: numpy>=1.18.2 in /usr/local/lib/python3.7/dist-packages (from lvis->object-detection==0.1) (1.19.5)\n", | |
"Requirement already satisfied: opencv-python>=4.1.0.25 in /usr/local/lib/python3.7/dist-packages (from lvis->object-detection==0.1) (4.1.2.30)\n", | |
"Requirement already satisfied: cycler>=0.10.0 in /usr/local/lib/python3.7/dist-packages (from lvis->object-detection==0.1) (0.10.0)\n", | |
"Requirement already satisfied: pytz>=2017.2 in /usr/local/lib/python3.7/dist-packages (from pandas->object-detection==0.1) (2018.9)\n", | |
"Requirement already satisfied: setuptools>=18.0 in /usr/local/lib/python3.7/dist-packages (from pycocotools->object-detection==0.1) (57.4.0)\n", | |
"Requirement already satisfied: absl-py>=0.2.2 in /usr/local/lib/python3.7/dist-packages (from tf-slim->object-detection==0.1) (0.12.0)\n", | |
"Building wheels for collected packages: object-detection\n", | |
" Building wheel for object-detection (setup.py): started\n", | |
" Building wheel for object-detection (setup.py): finished with status 'done'\n", | |
" Created wheel for object-detection: filename=object_detection-0.1-py3-none-any.whl size=1675201 sha256=2e88345a509b4fddb5db1142d8380cf2568382c5358d9ac5a06326bf6589effe\n", | |
" Stored in directory: /tmp/pip-ephem-wheel-cache-r9wta9ws/wheels/fa/a4/d2/e9a5057e414fd46c8e543d2706cd836d64e1fcd9eccceb2329\n", | |
"Successfully built object-detection\n", | |
"Installing collected packages: tf-slim, lvis, object-detection\n", | |
"Successfully installed lvis-0.5.3 object-detection-0.1 tf-slim-1.1.0\n" | |
] | |
}, | |
{ | |
"output_type": "stream", | |
"name": "stderr", | |
"text": [ | |
" DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.\n", | |
" pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "DZp51Br_2Srk", | |
"outputId": "56780e1c-862c-46a9-93b1-9ed52e2f1e80" | |
}, | |
"source": [ | |
"%cd /content/models/research\n", | |
"\n", | |
"import os\n", | |
"\n", | |
"os.environ['PYTHONPATH'] = '/content/models:' + os.environ['PYTHONPATH']\n", | |
"print(os.environ['PYTHONPATH'])" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"/content/models/research\n", | |
"/content/models:/tensorflow-1.15.2/python3.7:/env/python\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "GS2dZTCY2Udy", | |
"outputId": "0661dad0-e592-4a2a-f91d-a9d6cbc21f81" | |
}, | |
"source": [ | |
"# Test the installation.\n", | |
"!python object_detection/builders/model_builder_tf1_test.py" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"Running tests under Python 3.7.12: /usr/bin/python3\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_context_rcnn_from_config_with_params0 (True)\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_context_rcnn_from_config_with_params0 (True)\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_context_rcnn_from_config_with_params1 (False)\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_context_rcnn_from_config_with_params1 (False)\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_experimental_model\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_experimental_model\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_faster_rcnn_from_config_with_crop_feature0 (True)\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_faster_rcnn_from_config_with_crop_feature0 (True)\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_faster_rcnn_from_config_with_crop_feature1 (False)\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_faster_rcnn_from_config_with_crop_feature1 (False)\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_faster_rcnn_model_from_config_with_example_miner\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_faster_rcnn_model_from_config_with_example_miner\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_faster_rcnn_models_from_config_faster_rcnn_with_matmul\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_faster_rcnn_models_from_config_faster_rcnn_with_matmul\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_faster_rcnn_models_from_config_faster_rcnn_without_matmul\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_faster_rcnn_models_from_config_faster_rcnn_without_matmul\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_faster_rcnn_models_from_config_mask_rcnn_with_matmul\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_faster_rcnn_models_from_config_mask_rcnn_with_matmul\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_faster_rcnn_models_from_config_mask_rcnn_without_matmul\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_faster_rcnn_models_from_config_mask_rcnn_without_matmul\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_rfcn_model_from_config\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_rfcn_model_from_config\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_ssd_fpn_model_from_config\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_ssd_fpn_model_from_config\n", | |
"[ RUN ] ModelBuilderTF1Test.test_create_ssd_models_from_config\n", | |
"[ OK ] ModelBuilderTF1Test.test_create_ssd_models_from_config\n", | |
"[ RUN ] ModelBuilderTF1Test.test_invalid_faster_rcnn_batchnorm_update\n", | |
"[ OK ] ModelBuilderTF1Test.test_invalid_faster_rcnn_batchnorm_update\n", | |
"[ RUN ] ModelBuilderTF1Test.test_invalid_first_stage_nms_iou_threshold\n", | |
"[ OK ] ModelBuilderTF1Test.test_invalid_first_stage_nms_iou_threshold\n", | |
"[ RUN ] ModelBuilderTF1Test.test_invalid_model_config_proto\n", | |
"[ OK ] ModelBuilderTF1Test.test_invalid_model_config_proto\n", | |
"[ RUN ] ModelBuilderTF1Test.test_invalid_second_stage_batch_size\n", | |
"[ OK ] ModelBuilderTF1Test.test_invalid_second_stage_batch_size\n", | |
"[ RUN ] ModelBuilderTF1Test.test_session\n", | |
"[ SKIPPED ] ModelBuilderTF1Test.test_session\n", | |
"[ RUN ] ModelBuilderTF1Test.test_unknown_faster_rcnn_feature_extractor\n", | |
"[ OK ] ModelBuilderTF1Test.test_unknown_faster_rcnn_feature_extractor\n", | |
"[ RUN ] ModelBuilderTF1Test.test_unknown_meta_architecture\n", | |
"[ OK ] ModelBuilderTF1Test.test_unknown_meta_architecture\n", | |
"[ RUN ] ModelBuilderTF1Test.test_unknown_ssd_feature_extractor\n", | |
"[ OK ] ModelBuilderTF1Test.test_unknown_ssd_feature_extractor\n", | |
"----------------------------------------------------------------------\n", | |
"Ran 21 tests in 0.227s\n", | |
"\n", | |
"OK (skipped=1)\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "_1RTyfZHDOux" | |
}, | |
"source": [ | |
"## Install EdgeTPU Compiler" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "nGe0ReDW2WHL", | |
"outputId": "a3a14c82-cde3-4d9b-d465-0d45cbce61e7" | |
}, | |
"source": [ | |
"!echo \"deb https://packages.cloud.google.com/apt coral-edgetpu-stable main\" | tee /etc/apt/sources.list.d/coral-edgetpu.list\n", | |
"!curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -\n", | |
"!sudo apt -qq update\n", | |
"!apt-get -qq install edgetpu-compiler" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"deb https://packages.cloud.google.com/apt coral-edgetpu-stable main\n", | |
" % Total % Received % Xferd Average Speed Time Time Time Current\n", | |
" Dload Upload Total Spent Left Speed\n", | |
"100 2537 100 2537 0 0 117k 0 --:--:-- --:--:-- --:--:-- 117k\n", | |
"OK\n", | |
"58 packages can be upgraded. Run 'apt list --upgradable' to see them.\n", | |
"Selecting previously unselected package edgetpu-compiler.\n", | |
"(Reading database ... 155047 files and directories currently installed.)\n", | |
"Preparing to unpack .../edgetpu-compiler_16.0_amd64.deb ...\n", | |
"Unpacking edgetpu-compiler (16.0) ...\n", | |
"Setting up edgetpu-compiler (16.0) ...\n", | |
"Processing triggers for libc-bin (2.27-3ubuntu1.3) ...\n", | |
"/sbin/ldconfig.real: /usr/local/lib/python3.7/dist-packages/ideep4py/lib/libmkldnn.so.0 is not a symbolic link\n", | |
"\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "IMlVZ2ek2YCN", | |
"outputId": "ad6121cf-a49a-4f02-a2e4-8eb2bf9580ae" | |
}, | |
"source": [ | |
"!edgetpu_compiler -v" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"Edge TPU Compiler version 16.0.384591198\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "WNiXMPXaDUah" | |
}, | |
"source": [ | |
"# Download pre-trained model and convert edge tpu model." | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "mVfoSxn32Zeg" | |
}, | |
"source": [ | |
"!mkdir /content/tflite_models" | |
], | |
"execution_count": null, | |
"outputs": [] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "x0tX_rj02e4b", | |
"outputId": "659be9ac-b1eb-4669-fd3d-11e7fef80c1d" | |
}, | |
"source": [ | |
"!wget http://download.tensorflow.org/models/object_detection/tf1/spaghettinet_edgetpu_s_2021_10_13.tar.gz\n", | |
"!tar xf spaghettinet_edgetpu_s_2021_10_13.tar.gz -C /content/\n", | |
"!wget http://download.tensorflow.org/models/object_detection/tf1/spaghettinet_edgetpu_m_2021_10_13.tar.gz\n", | |
"!tar xf spaghettinet_edgetpu_m_2021_10_13.tar.gz -C /content/\n", | |
"!wget http://download.tensorflow.org/models/object_detection/tf1/spaghettinet_edgetpu_l_2021_10_13.tar.gz\n", | |
"!tar xf spaghettinet_edgetpu_l_2021_10_13.tar.gz -C /content/" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"--2021-10-19 12:33:52-- http://download.tensorflow.org/models/object_detection/tf1/spaghettinet_edgetpu_s_2021_10_13.tar.gz\n", | |
"Resolving download.tensorflow.org (download.tensorflow.org)... 142.250.153.128, 2a00:1450:4013:c16::80\n", | |
"Connecting to download.tensorflow.org (download.tensorflow.org)|142.250.153.128|:80... connected.\n", | |
"HTTP request sent, awaiting response... 200 OK\n", | |
"Length: 45409207 (43M) [application/x-tar]\n", | |
"Saving to: ‘spaghettinet_edgetpu_s_2021_10_13.tar.gz’\n", | |
"\n", | |
"spaghettinet_edgetp 100%[===================>] 43.30M 62.4MB/s in 0.7s \n", | |
"\n", | |
"2021-10-19 12:33:54 (62.4 MB/s) - ‘spaghettinet_edgetpu_s_2021_10_13.tar.gz’ saved [45409207/45409207]\n", | |
"\n", | |
"--2021-10-19 12:33:55-- http://download.tensorflow.org/models/object_detection/tf1/spaghettinet_edgetpu_m_2021_10_13.tar.gz\n", | |
"Resolving download.tensorflow.org (download.tensorflow.org)... 142.250.153.128, 2a00:1450:4013:c16::80\n", | |
"Connecting to download.tensorflow.org (download.tensorflow.org)|142.250.153.128|:80... connected.\n", | |
"HTTP request sent, awaiting response... 200 OK\n", | |
"Length: 53773173 (51M) [application/x-tar]\n", | |
"Saving to: ‘spaghettinet_edgetpu_m_2021_10_13.tar.gz’\n", | |
"\n", | |
"spaghettinet_edgetp 100%[===================>] 51.28M 62.8MB/s in 0.8s \n", | |
"\n", | |
"2021-10-19 12:33:56 (62.8 MB/s) - ‘spaghettinet_edgetpu_m_2021_10_13.tar.gz’ saved [53773173/53773173]\n", | |
"\n", | |
"--2021-10-19 12:33:57-- http://download.tensorflow.org/models/object_detection/tf1/spaghettinet_edgetpu_l_2021_10_13.tar.gz\n", | |
"Resolving download.tensorflow.org (download.tensorflow.org)... 142.250.153.128, 2a00:1450:4013:c16::80\n", | |
"Connecting to download.tensorflow.org (download.tensorflow.org)|142.250.153.128|:80... connected.\n", | |
"HTTP request sent, awaiting response... 200 OK\n", | |
"Length: 71603101 (68M) [application/x-tar]\n", | |
"Saving to: ‘spaghettinet_edgetpu_l_2021_10_13.tar.gz’\n", | |
"\n", | |
"spaghettinet_edgetp 100%[===================>] 68.29M 50.7MB/s in 1.3s \n", | |
"\n", | |
"2021-10-19 12:33:59 (50.7 MB/s) - ‘spaghettinet_edgetpu_l_2021_10_13.tar.gz’ saved [71603101/71603101]\n", | |
"\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "XcGZg_oKDZEh" | |
}, | |
"source": [ | |
"## Export spaghettinet_edgetpu_s" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "LuvryGyh3a9i", | |
"outputId": "b3f1c99b-104e-42d9-c5a0-a6bf0ddf644f" | |
}, | |
"source": [ | |
"!python object_detection/export_tflite_ssd_graph.py \\\n", | |
" --pipeline_config_path=\"/content/spaghettinet_edgetpu_s/pipeline.config\" \\\n", | |
" --trained_checkpoint_prefix=\"/content/spaghettinet_edgetpu_s/model.ckpt-400000\" \\\n", | |
" --output_directory=\"/content/spaghettinet_edgetpu_s/tflite\" \\\n", | |
" --add_postprocessing_op=true" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"WARNING:tensorflow:From /usr/local/lib/python3.7/dist-packages/tf_slim/layers/layers.py:1089: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Please use `layer.__call__` method instead.\n", | |
"W1019 12:34:03.464374 139867702761344 deprecation.py:323] From /usr/local/lib/python3.7/dist-packages/tf_slim/layers/layers.py:1089: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Please use `layer.__call__` method instead.\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:06.443667 139867702761344 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:06.511233 139867702761344 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:06.580230 139867702761344 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:06.648141 139867702761344 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:06.822546 139867702761344 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"2021-10-19 12:34:06.906205: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1\n", | |
"2021-10-19 12:34:06.950872: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:06.951456: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:06.953504: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:07.113427: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:07.130844: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:07.144600: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:07.317949: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:07.338589: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:07.645792: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:07.646117: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:07.646780: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:07.647319: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:07.647785: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX512F\n", | |
"2021-10-19 12:34:07.663828: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2000175000 Hz\n", | |
"2021-10-19 12:34:07.664115: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55cb78dab480 initialized for platform Host (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:34:07.664145: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version\n", | |
"2021-10-19 12:34:07.786239: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:07.787105: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55cb78dab640 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:34:07.787137: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Tesla P100-PCIE-16GB, Compute Capability 6.0\n", | |
"2021-10-19 12:34:07.787306: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:07.787891: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:07.787961: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:07.787990: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:07.788013: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:07.788037: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:07.788064: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:07.788084: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:07.788105: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:07.788178: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:07.788770: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:07.789317: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:07.792537: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:07.793831: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:\n", | |
"2021-10-19 12:34:07.793859: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0 \n", | |
"2021-10-19 12:34:07.793870: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N \n", | |
"2021-10-19 12:34:07.794818: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:07.795475: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:07.796022: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:39] Overriding allow_growth setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.\n", | |
"2021-10-19 12:34:07.796071: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15224 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/add_12\n", | |
"I1019 12:34:10.163182 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/add_12\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/add_16\n", | |
"I1019 12:34:10.164597 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/add_16\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/add_20\n", | |
"I1019 12:34:10.165966 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/add_20\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/add_21\n", | |
"I1019 12:34:10.166552 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/add_21\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/add_23\n", | |
"I1019 12:34:10.167282 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/add_23\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/stem_node/stem/add_fold\n", | |
"I1019 12:34:10.171393 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/stem_node/stem/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n0_0/slice_0/add_fold\n", | |
"I1019 12:34:10.171607 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n0_0/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n0_0/slice_1/add_fold\n", | |
"I1019 12:34:10.171782 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n0_0/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n0_0/slice_2/add_fold\n", | |
"I1019 12:34:10.171967 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n0_0/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_0/slice_0/add_fold\n", | |
"I1019 12:34:10.172232 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_0/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_0/slice_1/add_fold\n", | |
"I1019 12:34:10.172398 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_0/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_0/slice_2/add_fold\n", | |
"I1019 12:34:10.172562 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_0/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_0/slice_3/add_fold\n", | |
"I1019 12:34:10.172729 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_0/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_1/slice_0/add_fold\n", | |
"I1019 12:34:10.172985 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_1/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_1/slice_1/add_fold\n", | |
"I1019 12:34:10.173154 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_1/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_1/slice_2/add_fold\n", | |
"I1019 12:34:10.173316 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_1/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_1/slice_3/add_fold\n", | |
"I1019 12:34:10.173483 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_1/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_2/slice_0/add_fold\n", | |
"I1019 12:34:10.173738 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_2/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_2/slice_1/add_fold\n", | |
"I1019 12:34:10.173908 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_2/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_2/slice_2/add_fold\n", | |
"I1019 12:34:10.174083 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_2/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_2/slice_3/add_fold\n", | |
"I1019 12:34:10.174249 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n1_2/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_0/expansion/add_fold\n", | |
"I1019 12:34:10.174500 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_0/depthwise/add_fold\n", | |
"I1019 12:34:10.174669 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_1/slice_0/add_fold\n", | |
"I1019 12:34:10.174921 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_1/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_1/slice_1/add_fold\n", | |
"I1019 12:34:10.175089 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_1/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_1/slice_2/add_fold\n", | |
"I1019 12:34:10.175252 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_1/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_1/slice_3/add_fold\n", | |
"I1019 12:34:10.175415 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_1/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_2/expansion/add_fold\n", | |
"I1019 12:34:10.175665 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_2/depthwise/add_fold\n", | |
"I1019 12:34:10.175847 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_3/expansion/add_fold\n", | |
"I1019 12:34:10.176103 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_3/depthwise/add_fold\n", | |
"I1019 12:34:10.176275 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n2_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_0/expansion/add_fold\n", | |
"I1019 12:34:10.176518 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_0/depthwise/add_fold\n", | |
"I1019 12:34:10.176695 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_1/expansion/add_fold\n", | |
"I1019 12:34:10.176945 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_1/depthwise/add_fold\n", | |
"I1019 12:34:10.177123 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_2/expansion/add_fold\n", | |
"I1019 12:34:10.177368 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_2/depthwise/add_fold\n", | |
"I1019 12:34:10.177536 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_3/expansion/add_fold\n", | |
"I1019 12:34:10.177780 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_3/depthwise/add_fold\n", | |
"I1019 12:34:10.177956 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n3_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n4_0/expansion/add_fold\n", | |
"I1019 12:34:10.178207 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n4_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n4_0/depthwise/add_fold\n", | |
"I1019 12:34:10.178374 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n4_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n4_1/pointwise/add_fold\n", | |
"I1019 12:34:10.178616 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n4_1/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n4_2/pointwise/add_fold\n", | |
"I1019 12:34:10.178776 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n4_2/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n4_3/pointwise/add_fold\n", | |
"I1019 12:34:10.178961 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n4_3/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n5_0/pointwise/add_fold\n", | |
"I1019 12:34:10.179138 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n5_0/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n5_1/pointwise/add_fold\n", | |
"I1019 12:34:10.179311 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/n5_1/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_0/expansion/add_fold\n", | |
"I1019 12:34:10.179647 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_0/depthwise/add_fold\n", | |
"I1019 12:34:10.179823 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_1/expansion/add_fold\n", | |
"I1019 12:34:10.180073 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_1/depthwise/add_fold\n", | |
"I1019 12:34:10.180244 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_2/expansion/add_fold\n", | |
"I1019 12:34:10.180486 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_2/depthwise/add_fold\n", | |
"I1019 12:34:10.180653 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_3/expansion/add_fold\n", | |
"I1019 12:34:10.180903 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_3/depthwise/add_fold\n", | |
"I1019 12:34:10.181084 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n0_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_0/expansion/add_fold\n", | |
"I1019 12:34:10.181493 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_0/depthwise/add_fold\n", | |
"I1019 12:34:10.181667 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_1/expansion/add_fold\n", | |
"I1019 12:34:10.181922 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_1/depthwise/add_fold\n", | |
"I1019 12:34:10.182094 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_2/expansion/add_fold\n", | |
"I1019 12:34:10.182345 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_2/depthwise/add_fold\n", | |
"I1019 12:34:10.182514 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_3/expansion/add_fold\n", | |
"I1019 12:34:10.182755 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_3/depthwise/add_fold\n", | |
"I1019 12:34:10.182927 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n1_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n2_0/expansion/add_fold\n", | |
"I1019 12:34:10.183341 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n2_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n2_0/depthwise/add_fold\n", | |
"I1019 12:34:10.250698 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n2_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n3_0/expansion/add_fold\n", | |
"I1019 12:34:10.251899 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n3_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n3_0/depthwise/add_fold\n", | |
"I1019 12:34:10.252189 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n3_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n3_1/pointwise/add_fold\n", | |
"I1019 12:34:10.252484 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n3_1/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n4_0/expansion/add_fold\n", | |
"I1019 12:34:10.252882 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n4_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n4_0/depthwise/add_fold\n", | |
"I1019 12:34:10.253095 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n4_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n5_0/pointwise/add_fold\n", | |
"I1019 12:34:10.253369 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n5_0/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n5_1/pointwise/add_fold\n", | |
"I1019 12:34:10.253550 139867702761344 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_s/spaghetti_net/c0n5_1/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_0/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:10.253746 139867702761344 quantize.py:299] Skipping quant after BoxPredictor_0/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_0/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:10.253939 139867702761344 quantize.py:299] Skipping quant after BoxPredictor_0/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_1/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:10.254133 139867702761344 quantize.py:299] Skipping quant after BoxPredictor_1/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_1/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:10.254318 139867702761344 quantize.py:299] Skipping quant after BoxPredictor_1/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_2/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:10.254503 139867702761344 quantize.py:299] Skipping quant after BoxPredictor_2/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_2/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:10.254685 139867702761344 quantize.py:299] Skipping quant after BoxPredictor_2/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_3/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:10.254875 139867702761344 quantize.py:299] Skipping quant after BoxPredictor_3/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_3/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:10.255156 139867702761344 quantize.py:299] Skipping quant after BoxPredictor_3/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_4/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:10.255435 139867702761344 quantize.py:299] Skipping quant after BoxPredictor_4/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_4/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:10.255660 139867702761344 quantize.py:299] Skipping quant after BoxPredictor_4/ClassPredictor_depthwise/add_fold\n", | |
"WARNING:tensorflow:From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:127: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use standard file APIs to check for files with this prefix.\n", | |
"W1019 12:34:11.162619 139867702761344 deprecation.py:323] From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:127: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use standard file APIs to check for files with this prefix.\n", | |
"2021-10-19 12:34:12.080937: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:12.081581: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:12.081663: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:12.081691: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:12.081713: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:12.081741: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:12.081762: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:12.081781: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:12.081801: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:12.081899: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:12.082464: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:12.082981: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:12.083021: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:\n", | |
"2021-10-19 12:34:12.083037: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0 \n", | |
"2021-10-19 12:34:12.083046: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N \n", | |
"2021-10-19 12:34:12.083136: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:12.083698: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:12.084259: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15224 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)\n", | |
"INFO:tensorflow:Restoring parameters from /content/spaghettinet_edgetpu_s/model.ckpt-400000\n", | |
"I1019 12:34:12.085237 139867702761344 saver.py:1284] Restoring parameters from /content/spaghettinet_edgetpu_s/model.ckpt-400000\n", | |
"WARNING:tensorflow:From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:233: convert_variables_to_constants (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.convert_variables_to_constants`\n", | |
"W1019 12:34:16.685015 139867702761344 deprecation.py:323] From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:233: convert_variables_to_constants (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.convert_variables_to_constants`\n", | |
"WARNING:tensorflow:From /tensorflow-1.15.2/python3.7/tensorflow_core/python/framework/graph_util_impl.py:277: extract_sub_graph (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.extract_sub_graph`\n", | |
"W1019 12:34:16.685263 139867702761344 deprecation.py:323] From /tensorflow-1.15.2/python3.7/tensorflow_core/python/framework/graph_util_impl.py:277: extract_sub_graph (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.extract_sub_graph`\n", | |
"INFO:tensorflow:Froze 1110 variables.\n", | |
"I1019 12:34:17.664638 139867702761344 graph_util_impl.py:334] Froze 1110 variables.\n", | |
"INFO:tensorflow:Converted 1110 variables to const ops.\n", | |
"I1019 12:34:17.770003 139867702761344 graph_util_impl.py:394] Converted 1110 variables to const ops.\n", | |
"2021-10-19 12:34:17.970590: I tensorflow/tools/graph_transforms/transform_graph.cc:317] Applying strip_unused_nodes\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "z74xKMas9Jbm", | |
"outputId": "e6aca3f5-38e4-454b-a615-d39d805f932f" | |
}, | |
"source": [ | |
"!tflite_convert \\\n", | |
" --enable_v1_converter \\\n", | |
" --output_file=\"/content/tflite_models/spaghettinet_edgetpu_s.tflite\" \\\n", | |
" --graph_def_file=\"/content/spaghettinet_edgetpu_s/tflite/tflite_graph.pb\" \\\n", | |
" --inference_type=QUANTIZED_UINT8 \\\n", | |
" --input_arrays=\"normalized_input_image_tensor\" \\\n", | |
" --output_arrays=\"TFLite_Detection_PostProcess,TFLite_Detection_PostProcess:1,TFLite_Detection_PostProcess:2,TFLite_Detection_PostProcess:3\" \\\n", | |
" --mean_values=128 \\\n", | |
" --std_dev_values=128 \\\n", | |
" --default_ranges_min=0 \\\n", | |
" --default_ranges_max=6 \\\n", | |
" --input_shapes=1,320,320,3 \\\n", | |
" --change_concat_input_ranges=false \\\n", | |
" --allow_custom_op" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"2021-10-19 12:34:20.711648: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1\n", | |
"2021-10-19 12:34:20.724315: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:20.724911: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:20.725158: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:20.726657: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:20.735308: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:20.735611: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:20.737301: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:20.738433: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:20.742360: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:20.742477: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:20.743126: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:20.743680: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:20.744016: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX512F\n", | |
"2021-10-19 12:34:20.748534: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2000175000 Hz\n", | |
"2021-10-19 12:34:20.748721: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x56447b71cd80 initialized for platform Host (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:34:20.748747: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version\n", | |
"2021-10-19 12:34:20.833603: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:20.834441: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x56447b71d800 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:34:20.834473: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Tesla P100-PCIE-16GB, Compute Capability 6.0\n", | |
"2021-10-19 12:34:20.834634: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:20.835211: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:20.835266: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:20.835286: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:20.835305: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:20.835324: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:20.835342: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:20.835359: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:20.835376: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:20.835439: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:20.836018: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:20.836526: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:20.836591: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:20.837555: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:\n", | |
"2021-10-19 12:34:20.837581: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0 \n", | |
"2021-10-19 12:34:20.837591: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N \n", | |
"2021-10-19 12:34:20.837692: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:20.838286: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:20.838821: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:39] Overriding allow_growth setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.\n", | |
"2021-10-19 12:34:20.838864: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15224 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "cWgyH0xugkMN", | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"outputId": "85de9188-95a3-40b3-a01b-79bf3ac4cf31" | |
}, | |
"source": [ | |
"!edgetpu_compiler -s /content/tflite_models/spaghettinet_edgetpu_s.tflite -o /content/tflite_models" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"Edge TPU Compiler version 16.0.384591198\n", | |
"Started a compilation timeout timer of 180 seconds.\n", | |
"\n", | |
"Model compiled successfully in 1391 ms.\n", | |
"\n", | |
"Input model: /content/tflite_models/spaghettinet_edgetpu_s.tflite\n", | |
"Input size: 3.50MiB\n", | |
"Output model: /content/tflite_models/spaghettinet_edgetpu_s_edgetpu.tflite\n", | |
"Output size: 4.77MiB\n", | |
"On-chip memory used for caching model parameters: 4.35MiB\n", | |
"On-chip memory remaining for caching model parameters: 3.19MiB\n", | |
"Off-chip memory used for streaming uncached model parameters: 0.00B\n", | |
"Number of Edge TPU subgraphs: 1\n", | |
"Total number of operations: 208\n", | |
"Operation log: /content/tflite_models/spaghettinet_edgetpu_s_edgetpu.log\n", | |
"\n", | |
"Model successfully compiled but not all operations are supported by the Edge TPU. A percentage of the model will instead run on the CPU, which is slower. If possible, consider updating your model to use only operations supported by the Edge TPU. For details, visit g.co/coral/model-reqs.\n", | |
"Number of operations that will run on Edge TPU: 207\n", | |
"Number of operations that will run on CPU: 1\n", | |
"\n", | |
"Operator Count Status\n", | |
"\n", | |
"STRIDED_SLICE 10 Mapped to Edge TPU\n", | |
"RESHAPE 11 Mapped to Edge TPU\n", | |
"CONCATENATION 7 Mapped to Edge TPU\n", | |
"MAX_POOL_2D 3 Mapped to Edge TPU\n", | |
"LOGISTIC 1 Mapped to Edge TPU\n", | |
"ADD 25 Mapped to Edge TPU\n", | |
"CUSTOM 1 Operation is working on an unsupported data type\n", | |
"CONV_2D 91 Mapped to Edge TPU\n", | |
"DEPTHWISE_CONV_2D 37 Mapped to Edge TPU\n", | |
"SLICE 19 Mapped to Edge TPU\n", | |
"RESIZE_NEAREST_NEIGHBOR 3 Mapped to Edge TPU\n", | |
"Compilation child process completed within timeout period.\n", | |
"Compilation succeeded! \n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "qkD-iYfREfU0" | |
}, | |
"source": [ | |
"## Export spaghettinet_edgetpu_m" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "1rojuQgMEfU1", | |
"outputId": "0e403edb-76ce-4d43-a378-645120bf7ced" | |
}, | |
"source": [ | |
"!python object_detection/export_tflite_ssd_graph.py \\\n", | |
" --pipeline_config_path=\"/content/spaghettinet_edgetpu_m/pipeline.config\" \\\n", | |
" --trained_checkpoint_prefix=\"/content/spaghettinet_edgetpu_m/model.ckpt-400000\" \\\n", | |
" --output_directory=\"/content/spaghettinet_edgetpu_m/tflite\" \\\n", | |
" --add_postprocessing_op=true" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"WARNING:tensorflow:From /usr/local/lib/python3.7/dist-packages/tf_slim/layers/layers.py:1089: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Please use `layer.__call__` method instead.\n", | |
"W1019 12:34:29.600765 140411536885632 deprecation.py:323] From /usr/local/lib/python3.7/dist-packages/tf_slim/layers/layers.py:1089: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Please use `layer.__call__` method instead.\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:32.762622 140411536885632 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:32.938181 140411536885632 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:33.013399 140411536885632 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:33.091328 140411536885632 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:33.161337 140411536885632 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"2021-10-19 12:34:33.246465: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1\n", | |
"2021-10-19 12:34:33.260003: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:33.260661: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:33.260958: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:33.262443: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:33.263661: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:33.264004: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:33.265567: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:33.266662: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:33.270105: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:33.270216: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:33.270843: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:33.271377: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:33.271657: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX512F\n", | |
"2021-10-19 12:34:33.276271: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2000175000 Hz\n", | |
"2021-10-19 12:34:33.276446: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5593e4a09480 initialized for platform Host (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:34:33.276472: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version\n", | |
"2021-10-19 12:34:33.364508: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:33.365386: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5593e4a09640 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:34:33.365418: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Tesla P100-PCIE-16GB, Compute Capability 6.0\n", | |
"2021-10-19 12:34:33.365585: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:33.366184: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:33.366250: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:33.366273: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:33.366294: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:33.366314: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:33.366338: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:33.366357: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:33.366376: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:33.366446: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:33.367040: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:33.367545: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:33.367613: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:33.368748: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:\n", | |
"2021-10-19 12:34:33.368774: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0 \n", | |
"2021-10-19 12:34:33.368785: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N \n", | |
"2021-10-19 12:34:33.368905: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:33.369475: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:33.370018: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:39] Overriding allow_growth setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.\n", | |
"2021-10-19 12:34:33.370056: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15224 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/add_13\n", | |
"I1019 12:34:35.969092 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/add_13\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/add_17\n", | |
"I1019 12:34:35.970586 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/add_17\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/add_21\n", | |
"I1019 12:34:35.972006 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/add_21\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/add_23\n", | |
"I1019 12:34:35.972782 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/add_23\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/add_26\n", | |
"I1019 12:34:35.973660 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/add_26\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/stem_node/stem/add_fold\n", | |
"I1019 12:34:35.982750 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/stem_node/stem/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n0_0/slice_0/add_fold\n", | |
"I1019 12:34:35.982981 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n0_0/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n0_0/slice_1/add_fold\n", | |
"I1019 12:34:35.983161 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n0_0/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n0_0/slice_2/add_fold\n", | |
"I1019 12:34:35.983336 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n0_0/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_0/slice_0/add_fold\n", | |
"I1019 12:34:35.983614 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_0/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_0/slice_1/add_fold\n", | |
"I1019 12:34:35.983786 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_0/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_0/slice_2/add_fold\n", | |
"I1019 12:34:35.983965 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_0/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_0/slice_3/add_fold\n", | |
"I1019 12:34:35.984140 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_0/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_1/slice_0/add_fold\n", | |
"I1019 12:34:35.984398 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_1/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_1/slice_1/add_fold\n", | |
"I1019 12:34:35.984568 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_1/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_1/slice_2/add_fold\n", | |
"I1019 12:34:35.984734 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_1/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_1/slice_3/add_fold\n", | |
"I1019 12:34:35.984909 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_1/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_2/slice_0/add_fold\n", | |
"I1019 12:34:35.985165 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_2/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_2/slice_1/add_fold\n", | |
"I1019 12:34:35.985326 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_2/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_2/slice_2/add_fold\n", | |
"I1019 12:34:35.985489 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_2/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_2/slice_3/add_fold\n", | |
"I1019 12:34:35.985662 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_2/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_3/slice_0/add_fold\n", | |
"I1019 12:34:35.985926 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_3/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_3/slice_1/add_fold\n", | |
"I1019 12:34:35.986090 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_3/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_3/slice_2/add_fold\n", | |
"I1019 12:34:35.986253 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_3/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_3/slice_3/add_fold\n", | |
"I1019 12:34:35.986421 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n1_3/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_0/expansion/add_fold\n", | |
"I1019 12:34:35.986678 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_0/depthwise/add_fold\n", | |
"I1019 12:34:35.986854 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_1/slice_0/add_fold\n", | |
"I1019 12:34:35.987102 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_1/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_1/slice_1/add_fold\n", | |
"I1019 12:34:35.987266 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_1/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_1/slice_2/add_fold\n", | |
"I1019 12:34:35.987426 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_1/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_1/slice_3/add_fold\n", | |
"I1019 12:34:35.987595 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_1/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_2/expansion/add_fold\n", | |
"I1019 12:34:35.987859 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_2/depthwise/add_fold\n", | |
"I1019 12:34:35.988029 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_3/expansion/add_fold\n", | |
"I1019 12:34:35.988294 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_3/depthwise/add_fold\n", | |
"I1019 12:34:35.988477 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n2_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_0/expansion/add_fold\n", | |
"I1019 12:34:35.988728 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_0/depthwise/add_fold\n", | |
"I1019 12:34:35.988904 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_1/expansion/add_fold\n", | |
"I1019 12:34:35.989156 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_1/depthwise/add_fold\n", | |
"I1019 12:34:35.989324 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_2/expansion/add_fold\n", | |
"I1019 12:34:35.989578 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_2/depthwise/add_fold\n", | |
"I1019 12:34:35.989753 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_3/expansion/add_fold\n", | |
"I1019 12:34:35.990005 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_3/depthwise/add_fold\n", | |
"I1019 12:34:35.990180 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n3_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_0/expansion/add_fold\n", | |
"I1019 12:34:35.990425 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_0/depthwise/add_fold\n", | |
"I1019 12:34:35.990597 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_1/expansion/add_fold\n", | |
"I1019 12:34:35.990850 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_1/depthwise/add_fold\n", | |
"I1019 12:34:35.991031 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_2/pointwise/add_fold\n", | |
"I1019 12:34:35.991280 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_2/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_3/expansion/add_fold\n", | |
"I1019 12:34:35.991442 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_3/depthwise/add_fold\n", | |
"I1019 12:34:35.991613 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n4_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n5_0/pointwise/add_fold\n", | |
"I1019 12:34:35.991871 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n5_0/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n5_1/pointwise/add_fold\n", | |
"I1019 12:34:35.992033 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/n5_1/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_0/expansion/add_fold\n", | |
"I1019 12:34:35.992361 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_0/depthwise/add_fold\n", | |
"I1019 12:34:35.992536 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_1/expansion/add_fold\n", | |
"I1019 12:34:35.992785 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_1/depthwise/add_fold\n", | |
"I1019 12:34:35.992959 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_2/expansion/add_fold\n", | |
"I1019 12:34:35.993198 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_2/depthwise/add_fold\n", | |
"I1019 12:34:35.993365 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_3/expansion/add_fold\n", | |
"I1019 12:34:35.993608 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_3/depthwise/add_fold\n", | |
"I1019 12:34:35.993775 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n0_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_0/expansion/add_fold\n", | |
"I1019 12:34:35.994206 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_0/depthwise/add_fold\n", | |
"I1019 12:34:35.994382 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_1/expansion/add_fold\n", | |
"I1019 12:34:35.994633 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_1/depthwise/add_fold\n", | |
"I1019 12:34:36.014024 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_2/expansion/add_fold\n", | |
"I1019 12:34:36.014435 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_2/depthwise/add_fold\n", | |
"I1019 12:34:36.014717 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_3/expansion/add_fold\n", | |
"I1019 12:34:36.015151 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_3/depthwise/add_fold\n", | |
"I1019 12:34:36.015449 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n1_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n2_0/expansion/add_fold\n", | |
"I1019 12:34:36.016401 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n2_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n2_0/depthwise/add_fold\n", | |
"I1019 12:34:36.016669 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n2_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n2_1/pointwise/add_fold\n", | |
"I1019 12:34:36.016984 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n2_1/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n3_0/pointwise/add_fold\n", | |
"I1019 12:34:36.017395 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n3_0/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n3_1/pointwise/add_fold\n", | |
"I1019 12:34:36.017588 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n3_1/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n3_2/pointwise/add_fold\n", | |
"I1019 12:34:36.017766 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n3_2/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n4_0/expansion/add_fold\n", | |
"I1019 12:34:36.018151 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n4_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n4_0/depthwise/add_fold\n", | |
"I1019 12:34:36.018341 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n4_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n4_1/pointwise/add_fold\n", | |
"I1019 12:34:36.018621 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n4_1/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n5_0/pointwise/add_fold\n", | |
"I1019 12:34:36.018811 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n5_0/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n5_1/pointwise/add_fold\n", | |
"I1019 12:34:36.019014 140411536885632 quantize.py:299] Skipping quant after FeatureExtractor/spaghettinet_edgetpu_m/spaghetti_net/c0n5_1/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_0/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:36.019198 140411536885632 quantize.py:299] Skipping quant after BoxPredictor_0/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_0/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:36.019381 140411536885632 quantize.py:299] Skipping quant after BoxPredictor_0/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_1/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:36.019583 140411536885632 quantize.py:299] Skipping quant after BoxPredictor_1/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_1/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:36.019780 140411536885632 quantize.py:299] Skipping quant after BoxPredictor_1/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_2/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:36.019976 140411536885632 quantize.py:299] Skipping quant after BoxPredictor_2/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_2/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:36.020163 140411536885632 quantize.py:299] Skipping quant after BoxPredictor_2/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_3/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:36.020344 140411536885632 quantize.py:299] Skipping quant after BoxPredictor_3/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_3/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:36.020524 140411536885632 quantize.py:299] Skipping quant after BoxPredictor_3/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_4/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:36.020702 140411536885632 quantize.py:299] Skipping quant after BoxPredictor_4/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_4/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:36.020889 140411536885632 quantize.py:299] Skipping quant after BoxPredictor_4/ClassPredictor_depthwise/add_fold\n", | |
"WARNING:tensorflow:From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:127: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use standard file APIs to check for files with this prefix.\n", | |
"W1019 12:34:37.015226 140411536885632 deprecation.py:323] From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:127: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use standard file APIs to check for files with this prefix.\n", | |
"2021-10-19 12:34:38.147985: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:38.148610: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:38.148702: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:38.148729: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:38.148754: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:38.148779: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:38.148800: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:38.148839: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:38.148864: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:38.148955: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:38.149541: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:38.150063: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:38.150107: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:\n", | |
"2021-10-19 12:34:38.150120: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0 \n", | |
"2021-10-19 12:34:38.150130: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N \n", | |
"2021-10-19 12:34:38.150227: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:38.150789: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:38.151316: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15224 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)\n", | |
"INFO:tensorflow:Restoring parameters from /content/spaghettinet_edgetpu_m/model.ckpt-400000\n", | |
"I1019 12:34:38.152310 140411536885632 saver.py:1284] Restoring parameters from /content/spaghettinet_edgetpu_m/model.ckpt-400000\n", | |
"WARNING:tensorflow:From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:233: convert_variables_to_constants (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.convert_variables_to_constants`\n", | |
"W1019 12:34:40.249564 140411536885632 deprecation.py:323] From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:233: convert_variables_to_constants (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.convert_variables_to_constants`\n", | |
"WARNING:tensorflow:From /tensorflow-1.15.2/python3.7/tensorflow_core/python/framework/graph_util_impl.py:277: extract_sub_graph (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.extract_sub_graph`\n", | |
"W1019 12:34:40.249828 140411536885632 deprecation.py:323] From /tensorflow-1.15.2/python3.7/tensorflow_core/python/framework/graph_util_impl.py:277: extract_sub_graph (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.extract_sub_graph`\n", | |
"INFO:tensorflow:Froze 1214 variables.\n", | |
"I1019 12:34:41.200728 140411536885632 graph_util_impl.py:334] Froze 1214 variables.\n", | |
"INFO:tensorflow:Converted 1214 variables to const ops.\n", | |
"I1019 12:34:41.318853 140411536885632 graph_util_impl.py:394] Converted 1214 variables to const ops.\n", | |
"2021-10-19 12:34:41.530339: I tensorflow/tools/graph_transforms/transform_graph.cc:317] Applying strip_unused_nodes\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "4LQQnHE4EjrJ", | |
"outputId": "4ca6f9ca-0332-4b3f-be2a-78fc6a9e94b1" | |
}, | |
"source": [ | |
"!tflite_convert \\\n", | |
" --enable_v1_converter \\\n", | |
" --output_file=\"/content/tflite_models/spaghettinet_edgetpu_m.tflite\" \\\n", | |
" --graph_def_file=\"/content/spaghettinet_edgetpu_m/tflite/tflite_graph.pb\" \\\n", | |
" --inference_type=QUANTIZED_UINT8 \\\n", | |
" --input_arrays=\"normalized_input_image_tensor\" \\\n", | |
" --output_arrays=\"TFLite_Detection_PostProcess,TFLite_Detection_PostProcess:1,TFLite_Detection_PostProcess:2,TFLite_Detection_PostProcess:3\" \\\n", | |
" --mean_values=128 \\\n", | |
" --std_dev_values=128 \\\n", | |
" --default_ranges_min=0 \\\n", | |
" --default_ranges_max=6 \\\n", | |
" --input_shapes=1,320,320,3 \\\n", | |
" --change_concat_input_ranges=false \\\n", | |
" --allow_custom_op" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"2021-10-19 12:34:44.426780: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1\n", | |
"2021-10-19 12:34:44.439443: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:44.440052: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:44.440313: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:44.441871: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:44.442954: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:44.443225: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:44.444996: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:44.445940: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:44.449341: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:44.449439: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:44.450034: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:44.450554: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:44.450873: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX512F\n", | |
"2021-10-19 12:34:44.455300: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2000175000 Hz\n", | |
"2021-10-19 12:34:44.455479: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x556abbec4d80 initialized for platform Host (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:34:44.455512: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version\n", | |
"2021-10-19 12:34:44.541794: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:44.542720: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x556abbec5800 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:34:44.542758: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Tesla P100-PCIE-16GB, Compute Capability 6.0\n", | |
"2021-10-19 12:34:44.543010: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:44.543867: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:44.543949: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:44.543981: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:44.544014: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:44.544036: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:44.544058: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:44.544078: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:44.544099: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:44.544213: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:44.545150: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:44.545906: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:44.545980: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:44.547111: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:\n", | |
"2021-10-19 12:34:44.547139: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0 \n", | |
"2021-10-19 12:34:44.547151: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N \n", | |
"2021-10-19 12:34:44.547250: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:44.548099: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:44.548727: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:39] Overriding allow_growth setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.\n", | |
"2021-10-19 12:34:44.548780: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15224 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "USNGlWaDhBzN", | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"outputId": "8d187028-c383-4d48-924e-bf09b9e0f75e" | |
}, | |
"source": [ | |
"!edgetpu_compiler -s /content/tflite_models/spaghettinet_edgetpu_m.tflite -o /content/tflite_models" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"Edge TPU Compiler version 16.0.384591198\n", | |
"Started a compilation timeout timer of 180 seconds.\n", | |
"\n", | |
"Model compiled successfully in 1555 ms.\n", | |
"\n", | |
"Input model: /content/tflite_models/spaghettinet_edgetpu_m.tflite\n", | |
"Input size: 4.18MiB\n", | |
"Output model: /content/tflite_models/spaghettinet_edgetpu_m_edgetpu.tflite\n", | |
"Output size: 5.58MiB\n", | |
"On-chip memory used for caching model parameters: 5.11MiB\n", | |
"On-chip memory remaining for caching model parameters: 2.39MiB\n", | |
"Off-chip memory used for streaming uncached model parameters: 0.00B\n", | |
"Number of Edge TPU subgraphs: 1\n", | |
"Total number of operations: 229\n", | |
"Operation log: /content/tflite_models/spaghettinet_edgetpu_m_edgetpu.log\n", | |
"\n", | |
"Model successfully compiled but not all operations are supported by the Edge TPU. A percentage of the model will instead run on the CPU, which is slower. If possible, consider updating your model to use only operations supported by the Edge TPU. For details, visit g.co/coral/model-reqs.\n", | |
"Number of operations that will run on Edge TPU: 228\n", | |
"Number of operations that will run on CPU: 1\n", | |
"\n", | |
"Operator Count Status\n", | |
"\n", | |
"RESHAPE 11 Mapped to Edge TPU\n", | |
"CONCATENATION 8 Mapped to Edge TPU\n", | |
"CUSTOM 1 Operation is working on an unsupported data type\n", | |
"ADD 29 Mapped to Edge TPU\n", | |
"MAX_POOL_2D 3 Mapped to Edge TPU\n", | |
"STRIDED_SLICE 10 Mapped to Edge TPU\n", | |
"CONV_2D 100 Mapped to Edge TPU\n", | |
"DEPTHWISE_CONV_2D 40 Mapped to Edge TPU\n", | |
"LOGISTIC 1 Mapped to Edge TPU\n", | |
"RESIZE_NEAREST_NEIGHBOR 3 Mapped to Edge TPU\n", | |
"SLICE 23 Mapped to Edge TPU\n", | |
"Compilation child process completed within timeout period.\n", | |
"Compilation succeeded! \n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "wzKo3-SmE26u" | |
}, | |
"source": [ | |
"## Export spaghettinet_edgetpu_l" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "M17wjXvqE26v", | |
"outputId": "53b98dbd-dfd4-471a-9c7a-0ecc144e7e0d" | |
}, | |
"source": [ | |
"!python object_detection/export_tflite_ssd_graph.py \\\n", | |
" --pipeline_config_path=\"/content/spaghettinet_edgetpu_l/pipeline.config\" \\\n", | |
" --trained_checkpoint_prefix=\"/content/spaghettinet_edgetpu_l/model.ckpt-400000\" \\\n", | |
" --output_directory=\"/content/spaghettinet_edgetpu_l/tflite\" \\\n", | |
" --add_postprocessing_op=true" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"WARNING:tensorflow:From /usr/local/lib/python3.7/dist-packages/tf_slim/layers/layers.py:1089: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Please use `layer.__call__` method instead.\n", | |
"W1019 12:34:52.718561 140590936360832 deprecation.py:323] From /usr/local/lib/python3.7/dist-packages/tf_slim/layers/layers.py:1089: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Please use `layer.__call__` method instead.\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:56.244842 140590936360832 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:56.320246 140590936360832 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:56.390823 140590936360832 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:56.460975 140590936360832 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"INFO:tensorflow:depth of additional conv before box predictor: 0\n", | |
"I1019 12:34:56.533610 140590936360832 convolutional_box_predictor.py:156] depth of additional conv before box predictor: 0\n", | |
"2021-10-19 12:34:56.616883: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1\n", | |
"2021-10-19 12:34:56.630933: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:56.631509: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:56.631785: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:56.633281: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:56.634389: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:56.634692: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:56.636345: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:56.637333: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:56.640828: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:56.640940: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:56.641531: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:56.642055: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:56.642358: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX512F\n", | |
"2021-10-19 12:34:56.647049: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2000175000 Hz\n", | |
"2021-10-19 12:34:56.647234: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55f5e75b7480 initialized for platform Host (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:34:56.647263: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version\n", | |
"2021-10-19 12:34:56.740663: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:56.741487: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x55f5e75b7640 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:34:56.741517: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Tesla P100-PCIE-16GB, Compute Capability 6.0\n", | |
"2021-10-19 12:34:56.741694: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:56.742282: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:34:56.742350: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:56.742375: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:34:56.742396: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:34:56.742416: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:34:56.742458: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:34:56.742477: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:34:56.742504: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:34:56.742581: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:56.743206: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:56.743759: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:34:56.743842: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:34:56.744981: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:\n", | |
"2021-10-19 12:34:56.745010: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0 \n", | |
"2021-10-19 12:34:56.745027: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N \n", | |
"2021-10-19 12:34:56.745138: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:56.745708: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:34:56.746275: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:39] Overriding allow_growth setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.\n", | |
"2021-10-19 12:34:56.746319: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15224 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/add_13\n", | |
"I1019 12:34:59.674706 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/add_13\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/add_17\n", | |
"I1019 12:34:59.676181 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/add_17\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/add_21\n", | |
"I1019 12:34:59.677501 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/add_21\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/add_25\n", | |
"I1019 12:34:59.678805 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/add_25\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/add_28\n", | |
"I1019 12:34:59.679768 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/add_28\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/stem_node/stem/add_fold\n", | |
"I1019 12:34:59.684213 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/stem_node/stem/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n0_0/slice_0/add_fold\n", | |
"I1019 12:34:59.684440 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n0_0/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n0_0/slice_1/add_fold\n", | |
"I1019 12:34:59.684622 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n0_0/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n0_0/slice_2/add_fold\n", | |
"I1019 12:34:59.684794 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n0_0/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_0/slice_0/add_fold\n", | |
"I1019 12:34:59.685062 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_0/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_0/slice_1/add_fold\n", | |
"I1019 12:34:59.685227 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_0/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_0/slice_2/add_fold\n", | |
"I1019 12:34:59.685387 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_0/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_0/slice_3/add_fold\n", | |
"I1019 12:34:59.685559 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_0/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_1/slice_0/add_fold\n", | |
"I1019 12:34:59.685816 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_1/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_1/slice_1/add_fold\n", | |
"I1019 12:34:59.685982 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_1/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_1/slice_2/add_fold\n", | |
"I1019 12:34:59.686146 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_1/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_1/slice_3/add_fold\n", | |
"I1019 12:34:59.686311 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_1/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_2/slice_0/add_fold\n", | |
"I1019 12:34:59.686599 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_2/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_2/slice_1/add_fold\n", | |
"I1019 12:34:59.686758 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_2/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_2/slice_2/add_fold\n", | |
"I1019 12:34:59.686940 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_2/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_2/slice_3/add_fold\n", | |
"I1019 12:34:59.687114 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_2/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_3/slice_0/add_fold\n", | |
"I1019 12:34:59.687361 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_3/slice_0/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_3/slice_1/add_fold\n", | |
"I1019 12:34:59.687524 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_3/slice_1/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_3/slice_2/add_fold\n", | |
"I1019 12:34:59.687682 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_3/slice_2/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_3/slice_3/add_fold\n", | |
"I1019 12:34:59.687855 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n1_3/slice_3/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_0/expansion/add_fold\n", | |
"I1019 12:34:59.688101 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_0/depthwise/add_fold\n", | |
"I1019 12:34:59.688267 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_1/expansion/add_fold\n", | |
"I1019 12:34:59.688510 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_1/depthwise/add_fold\n", | |
"I1019 12:34:59.688676 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_2/expansion/add_fold\n", | |
"I1019 12:34:59.688921 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_2/depthwise/add_fold\n", | |
"I1019 12:34:59.689091 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_3/expansion/add_fold\n", | |
"I1019 12:34:59.689327 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_3/depthwise/add_fold\n", | |
"I1019 12:34:59.689495 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n2_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_0/expansion/add_fold\n", | |
"I1019 12:34:59.689733 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_0/depthwise/add_fold\n", | |
"I1019 12:34:59.689909 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_1/expansion/add_fold\n", | |
"I1019 12:34:59.690150 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_1/depthwise/add_fold\n", | |
"I1019 12:34:59.690317 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_2/expansion/add_fold\n", | |
"I1019 12:34:59.690574 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_2/depthwise/add_fold\n", | |
"I1019 12:34:59.690739 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_3/expansion/add_fold\n", | |
"I1019 12:34:59.690987 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_3/depthwise/add_fold\n", | |
"I1019 12:34:59.691158 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n3_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_0/expansion/add_fold\n", | |
"I1019 12:34:59.691398 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_0/depthwise/add_fold\n", | |
"I1019 12:34:59.691568 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_1/expansion/add_fold\n", | |
"I1019 12:34:59.691815 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_1/depthwise/add_fold\n", | |
"I1019 12:34:59.691987 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_2/expansion/add_fold\n", | |
"I1019 12:34:59.692226 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_2/depthwise/add_fold\n", | |
"I1019 12:34:59.692392 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_3/expansion/add_fold\n", | |
"I1019 12:34:59.692637 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_3/depthwise/add_fold\n", | |
"I1019 12:34:59.692803 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n4_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n5_0/expansion/add_fold\n", | |
"I1019 12:34:59.693052 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n5_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n5_0/depthwise/add_fold\n", | |
"I1019 12:34:59.693218 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n5_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n5_1/pointwise/add_fold\n", | |
"I1019 12:34:59.693456 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/n5_1/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_0/expansion/add_fold\n", | |
"I1019 12:34:59.693780 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_0/depthwise/add_fold\n", | |
"I1019 12:34:59.693962 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_1/expansion/add_fold\n", | |
"I1019 12:34:59.694205 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_1/depthwise/add_fold\n", | |
"I1019 12:34:59.694372 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_2/expansion/add_fold\n", | |
"I1019 12:34:59.694621 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_2/depthwise/add_fold\n", | |
"I1019 12:34:59.694787 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_3/expansion/add_fold\n", | |
"I1019 12:34:59.695039 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_3/depthwise/add_fold\n", | |
"I1019 12:34:59.695203 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n0_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_0/expansion/add_fold\n", | |
"I1019 12:34:59.695613 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_0/depthwise/add_fold\n", | |
"I1019 12:34:59.695785 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_1/expansion/add_fold\n", | |
"I1019 12:34:59.696047 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_1/depthwise/add_fold\n", | |
"I1019 12:34:59.696216 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_2/expansion/add_fold\n", | |
"I1019 12:34:59.696453 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_2/depthwise/add_fold\n", | |
"I1019 12:34:59.696625 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_3/expansion/add_fold\n", | |
"I1019 12:34:59.696876 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_3/depthwise/add_fold\n", | |
"I1019 12:34:59.697041 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n1_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_0/expansion/add_fold\n", | |
"I1019 12:34:59.697438 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_0/depthwise/add_fold\n", | |
"I1019 12:34:59.697615 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_1/expansion/add_fold\n", | |
"I1019 12:34:59.697894 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_1/depthwise/add_fold\n", | |
"I1019 12:34:59.698076 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_2/expansion/add_fold\n", | |
"I1019 12:34:59.698327 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_2/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_2/depthwise/add_fold\n", | |
"I1019 12:34:59.698500 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_2/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_3/expansion/add_fold\n", | |
"I1019 12:34:59.698741 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_3/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_3/depthwise/add_fold\n", | |
"I1019 12:34:59.698918 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n2_3/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n3_0/expansion/add_fold\n", | |
"I1019 12:34:59.699321 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n3_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n3_0/depthwise/add_fold\n", | |
"I1019 12:34:59.699505 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n3_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n3_1/expansion/add_fold\n", | |
"I1019 12:34:59.699746 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n3_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n3_1/depthwise/add_fold\n", | |
"I1019 12:34:59.699918 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n3_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n3_2/pointwise/add_fold\n", | |
"I1019 12:34:59.737200 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n3_2/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n4_0/expansion/add_fold\n", | |
"I1019 12:34:59.737789 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n4_0/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n4_0/depthwise/add_fold\n", | |
"I1019 12:34:59.738099 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n4_0/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n4_1/expansion/add_fold\n", | |
"I1019 12:34:59.738523 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n4_1/expansion/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n4_1/depthwise/add_fold\n", | |
"I1019 12:34:59.738823 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n4_1/depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n5_0/pointwise/add_fold\n", | |
"I1019 12:34:59.739127 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n5_0/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n5_1/pointwise/add_fold\n", | |
"I1019 12:34:59.739304 140590936360832 quantize.py:299] Skipping quant after FeatureExtractor/spaghetti_net/spaghetti_net/c0n5_1/pointwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_0/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:59.739482 140590936360832 quantize.py:299] Skipping quant after BoxPredictor_0/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_0/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:59.739672 140590936360832 quantize.py:299] Skipping quant after BoxPredictor_0/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_1/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:59.739867 140590936360832 quantize.py:299] Skipping quant after BoxPredictor_1/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_1/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:59.740055 140590936360832 quantize.py:299] Skipping quant after BoxPredictor_1/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_2/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:59.740236 140590936360832 quantize.py:299] Skipping quant after BoxPredictor_2/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_2/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:59.740414 140590936360832 quantize.py:299] Skipping quant after BoxPredictor_2/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_3/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:59.740602 140590936360832 quantize.py:299] Skipping quant after BoxPredictor_3/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_3/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:59.740787 140590936360832 quantize.py:299] Skipping quant after BoxPredictor_3/ClassPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_4/BoxEncodingPredictor_depthwise/add_fold\n", | |
"I1019 12:34:59.740975 140590936360832 quantize.py:299] Skipping quant after BoxPredictor_4/BoxEncodingPredictor_depthwise/add_fold\n", | |
"INFO:tensorflow:Skipping quant after BoxPredictor_4/ClassPredictor_depthwise/add_fold\n", | |
"I1019 12:34:59.741153 140590936360832 quantize.py:299] Skipping quant after BoxPredictor_4/ClassPredictor_depthwise/add_fold\n", | |
"WARNING:tensorflow:From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:127: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use standard file APIs to check for files with this prefix.\n", | |
"W1019 12:35:00.672590 140590936360832 deprecation.py:323] From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:127: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use standard file APIs to check for files with this prefix.\n", | |
"2021-10-19 12:35:01.875538: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:01.876183: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:35:01.876282: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:35:01.876310: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:35:01.876336: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:35:01.876363: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:35:01.876384: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:35:01.876406: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:35:01.876429: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:35:01.876521: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:01.877103: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:01.877612: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:35:01.877659: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:\n", | |
"2021-10-19 12:35:01.877673: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0 \n", | |
"2021-10-19 12:35:01.877683: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N \n", | |
"2021-10-19 12:35:01.877772: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:01.878333: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:01.878873: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15224 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)\n", | |
"INFO:tensorflow:Restoring parameters from /content/spaghettinet_edgetpu_l/model.ckpt-400000\n", | |
"I1019 12:35:01.879834 140590936360832 saver.py:1284] Restoring parameters from /content/spaghettinet_edgetpu_l/model.ckpt-400000\n", | |
"WARNING:tensorflow:From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:233: convert_variables_to_constants (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.convert_variables_to_constants`\n", | |
"W1019 12:35:04.158870 140590936360832 deprecation.py:323] From /tensorflow-1.15.2/python3.7/tensorflow_core/python/tools/freeze_graph.py:233: convert_variables_to_constants (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.convert_variables_to_constants`\n", | |
"WARNING:tensorflow:From /tensorflow-1.15.2/python3.7/tensorflow_core/python/framework/graph_util_impl.py:277: extract_sub_graph (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.extract_sub_graph`\n", | |
"W1019 12:35:04.159121 140590936360832 deprecation.py:323] From /tensorflow-1.15.2/python3.7/tensorflow_core/python/framework/graph_util_impl.py:277: extract_sub_graph (from tensorflow.python.framework.graph_util_impl) is deprecated and will be removed in a future version.\n", | |
"Instructions for updating:\n", | |
"Use `tf.compat.v1.graph_util.extract_sub_graph`\n", | |
"INFO:tensorflow:Froze 1332 variables.\n", | |
"I1019 12:35:05.205414 140590936360832 graph_util_impl.py:334] Froze 1332 variables.\n", | |
"INFO:tensorflow:Converted 1332 variables to const ops.\n", | |
"I1019 12:35:05.339842 140590936360832 graph_util_impl.py:394] Converted 1332 variables to const ops.\n", | |
"2021-10-19 12:35:05.585576: I tensorflow/tools/graph_transforms/transform_graph.cc:317] Applying strip_unused_nodes\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "yAln4mNdE26w", | |
"outputId": "f2303153-fd4c-4e7b-a9d9-c16870f12e9d" | |
}, | |
"source": [ | |
"!tflite_convert \\\n", | |
" --enable_v1_converter \\\n", | |
" --output_file=\"/content/tflite_models/spaghettinet_edgetpu_l.tflite\" \\\n", | |
" --graph_def_file=\"/content/spaghettinet_edgetpu_l/tflite/tflite_graph.pb\" \\\n", | |
" --inference_type=QUANTIZED_UINT8 \\\n", | |
" --input_arrays=\"normalized_input_image_tensor\" \\\n", | |
" --output_arrays=\"TFLite_Detection_PostProcess,TFLite_Detection_PostProcess:1,TFLite_Detection_PostProcess:2,TFLite_Detection_PostProcess:3\" \\\n", | |
" --mean_values=128 \\\n", | |
" --std_dev_values=128 \\\n", | |
" --default_ranges_min=0 \\\n", | |
" --default_ranges_max=6 \\\n", | |
" --input_shapes=1,320,320,3 \\\n", | |
" --change_concat_input_ranges=false \\\n", | |
" --allow_nudging_weights_to_use_fast_gemm_kernel=true \\\n", | |
" --allow_custom_op" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"2021-10-19 12:35:08.760626: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1\n", | |
"2021-10-19 12:35:08.774459: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:08.775079: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:35:08.775359: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:35:08.776967: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:35:08.778091: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:35:08.778368: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:35:08.780071: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:35:08.781104: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:35:08.784711: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:35:08.784827: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:08.785439: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:08.785984: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:35:08.786304: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX512F\n", | |
"2021-10-19 12:35:08.790764: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency: 2000175000 Hz\n", | |
"2021-10-19 12:35:08.790961: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5598324c6d80 initialized for platform Host (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:35:08.790994: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version\n", | |
"2021-10-19 12:35:08.879744: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:08.880604: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x5598324c7800 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:\n", | |
"2021-10-19 12:35:08.880644: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Tesla P100-PCIE-16GB, Compute Capability 6.0\n", | |
"2021-10-19 12:35:08.880837: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:08.881425: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties: \n", | |
"name: Tesla P100-PCIE-16GB major: 6 minor: 0 memoryClockRate(GHz): 1.3285\n", | |
"pciBusID: 0000:00:04.0\n", | |
"2021-10-19 12:35:08.881484: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:35:08.881506: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10\n", | |
"2021-10-19 12:35:08.881526: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10\n", | |
"2021-10-19 12:35:08.881545: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10\n", | |
"2021-10-19 12:35:08.881564: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10\n", | |
"2021-10-19 12:35:08.881582: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10\n", | |
"2021-10-19 12:35:08.881600: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudnn.so.7\n", | |
"2021-10-19 12:35:08.881665: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:08.882320: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:08.882901: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1767] Adding visible gpu devices: 0\n", | |
"2021-10-19 12:35:08.882967: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1\n", | |
"2021-10-19 12:35:08.883994: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1180] Device interconnect StreamExecutor with strength 1 edge matrix:\n", | |
"2021-10-19 12:35:08.884021: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1186] 0 \n", | |
"2021-10-19 12:35:08.884032: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1199] 0: N \n", | |
"2021-10-19 12:35:08.884140: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:08.884729: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:983] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero\n", | |
"2021-10-19 12:35:08.885317: W tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.cc:39] Overriding allow_growth setting because the TF_FORCE_GPU_ALLOW_GROWTH environment variable is set. Original config value was 0.\n", | |
"2021-10-19 12:35:08.885361: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 15224 MB memory) -> physical GPU (device: 0, name: Tesla P100-PCIE-16GB, pci bus id: 0000:00:04.0, compute capability: 6.0)\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "Fs9CbesJhNNN", | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"outputId": "c9082727-6392-46af-9cc4-d7f370f09f5b" | |
}, | |
"source": [ | |
"!edgetpu_compiler -s /content/tflite_models/spaghettinet_edgetpu_l.tflite -o /content/tflite_models" | |
], | |
"execution_count": null, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"Edge TPU Compiler version 16.0.384591198\n", | |
"Started a compilation timeout timer of 180 seconds.\n", | |
"\n", | |
"Model compiled successfully in 1593 ms.\n", | |
"\n", | |
"Input model: /content/tflite_models/spaghettinet_edgetpu_m.tflite\n", | |
"Input size: 4.18MiB\n", | |
"Output model: /content/tflite_models/spaghettinet_edgetpu_m_edgetpu.tflite\n", | |
"Output size: 5.58MiB\n", | |
"On-chip memory used for caching model parameters: 5.11MiB\n", | |
"On-chip memory remaining for caching model parameters: 2.39MiB\n", | |
"Off-chip memory used for streaming uncached model parameters: 0.00B\n", | |
"Number of Edge TPU subgraphs: 1\n", | |
"Total number of operations: 229\n", | |
"Operation log: /content/tflite_models/spaghettinet_edgetpu_m_edgetpu.log\n", | |
"\n", | |
"Model successfully compiled but not all operations are supported by the Edge TPU. A percentage of the model will instead run on the CPU, which is slower. If possible, consider updating your model to use only operations supported by the Edge TPU. For details, visit g.co/coral/model-reqs.\n", | |
"Number of operations that will run on Edge TPU: 228\n", | |
"Number of operations that will run on CPU: 1\n", | |
"\n", | |
"Operator Count Status\n", | |
"\n", | |
"CONCATENATION 8 Mapped to Edge TPU\n", | |
"MAX_POOL_2D 3 Mapped to Edge TPU\n", | |
"STRIDED_SLICE 10 Mapped to Edge TPU\n", | |
"ADD 29 Mapped to Edge TPU\n", | |
"CUSTOM 1 Operation is working on an unsupported data type\n", | |
"CONV_2D 100 Mapped to Edge TPU\n", | |
"DEPTHWISE_CONV_2D 40 Mapped to Edge TPU\n", | |
"SLICE 23 Mapped to Edge TPU\n", | |
"RESIZE_NEAREST_NEIGHBOR 3 Mapped to Edge TPU\n", | |
"LOGISTIC 1 Mapped to Edge TPU\n", | |
"RESHAPE 11 Mapped to Edge TPU\n", | |
"Compilation child process completed within timeout period.\n", | |
"Compilation succeeded! \n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"id": "stfCThnWhRPE" | |
}, | |
"source": [ | |
"" | |
], | |
"execution_count": null, | |
"outputs": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good stuff!