mirror of https://github.com/WongKinYiu/yolov7.git
2737 lines
873 KiB
Plaintext
2737 lines
873 KiB
Plaintext
|
{
|
|||
|
"nbformat": 4,
|
|||
|
"nbformat_minor": 0,
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"name": "YOLOv7CoreML.ipynb",
|
|||
|
"provenance": []
|
|||
|
},
|
|||
|
"kernelspec": {
|
|||
|
"name": "python3",
|
|||
|
"display_name": "Python 3"
|
|||
|
},
|
|||
|
"language_info": {
|
|||
|
"name": "python"
|
|||
|
},
|
|||
|
"accelerator": "GPU",
|
|||
|
"gpuClass": "standard"
|
|||
|
},
|
|||
|
"cells": [
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"!pip install --upgrade setuptools pip --user\n",
|
|||
|
"\n",
|
|||
|
"!pip install onnx\n",
|
|||
|
"!pip install coremltools>=4.1"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/",
|
|||
|
"height": 558
|
|||
|
},
|
|||
|
"id": "sSDOngglBk_O",
|
|||
|
"outputId": "49b46aee-3416-485f-8ff7-a186c5e31890"
|
|||
|
},
|
|||
|
"execution_count": 1,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"name": "stdout",
|
|||
|
"text": [
|
|||
|
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
|||
|
"Requirement already satisfied: setuptools in /usr/local/lib/python3.7/dist-packages (57.4.0)\n",
|
|||
|
"Collecting setuptools\n",
|
|||
|
" Downloading setuptools-64.0.1-py3-none-any.whl (1.2 MB)\n",
|
|||
|
"\u001b[K |████████████████████████████████| 1.2 MB 29.1 MB/s \n",
|
|||
|
"\u001b[?25hRequirement already satisfied: pip in /usr/local/lib/python3.7/dist-packages (21.1.3)\n",
|
|||
|
"Collecting pip\n",
|
|||
|
" Downloading pip-22.2.2-py3-none-any.whl (2.0 MB)\n",
|
|||
|
"\u001b[K |████████████████████████████████| 2.0 MB 53.1 MB/s \n",
|
|||
|
"\u001b[?25hInstalling collected packages: setuptools, pip\n",
|
|||
|
"\u001b[33m WARNING: The scripts pip, pip3 and pip3.7 are installed in '/root/.local/bin' which is not on PATH.\n",
|
|||
|
" Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.\u001b[0m\n",
|
|||
|
"Successfully installed pip-22.2.2 setuptools-64.0.1\n"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"output_type": "display_data",
|
|||
|
"data": {
|
|||
|
"application/vnd.colab-display-data+json": {
|
|||
|
"pip_warning": {
|
|||
|
"packages": [
|
|||
|
"pkg_resources"
|
|||
|
]
|
|||
|
}
|
|||
|
}
|
|||
|
},
|
|||
|
"metadata": {}
|
|||
|
},
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"name": "stdout",
|
|||
|
"text": [
|
|||
|
"Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/\n",
|
|||
|
"Collecting onnx\n",
|
|||
|
" Downloading onnx-1.12.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.1 MB)\n",
|
|||
|
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m13.1/13.1 MB\u001b[0m \u001b[31m45.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
|
|||
|
"\u001b[?25hRequirement already satisfied: numpy>=1.16.6 in /usr/local/lib/python3.7/dist-packages (from onnx) (1.21.6)\n",
|
|||
|
"Requirement already satisfied: protobuf<=3.20.1,>=3.12.2 in /usr/local/lib/python3.7/dist-packages (from onnx) (3.17.3)\n",
|
|||
|
"Requirement already satisfied: typing-extensions>=3.6.2.1 in /usr/local/lib/python3.7/dist-packages (from onnx) (4.1.1)\n",
|
|||
|
"Requirement already satisfied: six>=1.9 in /usr/local/lib/python3.7/dist-packages (from protobuf<=3.20.1,>=3.12.2->onnx) (1.15.0)\n",
|
|||
|
"Installing collected packages: onnx\n",
|
|||
|
"Successfully installed onnx-1.12.0\n",
|
|||
|
"\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n",
|
|||
|
"\u001b[0m\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n",
|
|||
|
"\u001b[0m"
|
|||
|
]
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"execution_count": 2,
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/"
|
|||
|
},
|
|||
|
"id": "hQ5fNost-gZI",
|
|||
|
"outputId": "cb60d2e1-f850-45bb-853d-effa4b204bde"
|
|||
|
},
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"name": "stdout",
|
|||
|
"text": [
|
|||
|
"Python version: 3.7.13 (default, Apr 24 2022, 01:04:09) \n",
|
|||
|
"[GCC 7.5.0], sys.version_info(major=3, minor=7, micro=13, releaselevel='final', serial=0) \n",
|
|||
|
"Pytorch version: 1.12.0+cu113 \n"
|
|||
|
]
|
|||
|
}
|
|||
|
],
|
|||
|
"source": [
|
|||
|
"import sys\n",
|
|||
|
"import torch\n",
|
|||
|
"print(f\"Python version: {sys.version}, {sys.version_info} \")\n",
|
|||
|
"print(f\"Pytorch version: {torch.__version__} \")"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"!nvidia-smi"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/"
|
|||
|
},
|
|||
|
"id": "feCaRUEI-_Os",
|
|||
|
"outputId": "ac45fd9e-7a12-40ed-bcb9-06b18ee90922"
|
|||
|
},
|
|||
|
"execution_count": 3,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"name": "stdout",
|
|||
|
"text": [
|
|||
|
"Fri Aug 12 07:06:03 2022 \n",
|
|||
|
"+-----------------------------------------------------------------------------+\n",
|
|||
|
"| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |\n",
|
|||
|
"|-------------------------------+----------------------+----------------------+\n",
|
|||
|
"| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |\n",
|
|||
|
"| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |\n",
|
|||
|
"| | | MIG M. |\n",
|
|||
|
"|===============================+======================+======================|\n",
|
|||
|
"| 0 Tesla T4 Off | 00000000:00:04.0 Off | 0 |\n",
|
|||
|
"| N/A 56C P8 10W / 70W | 3MiB / 15109MiB | 0% Default |\n",
|
|||
|
"| | | N/A |\n",
|
|||
|
"+-------------------------------+----------------------+----------------------+\n",
|
|||
|
" \n",
|
|||
|
"+-----------------------------------------------------------------------------+\n",
|
|||
|
"| Processes: |\n",
|
|||
|
"| GPU GI CI PID Type Process name GPU Memory |\n",
|
|||
|
"| ID ID Usage |\n",
|
|||
|
"|=============================================================================|\n",
|
|||
|
"| No running processes found |\n",
|
|||
|
"+-----------------------------------------------------------------------------+\n"
|
|||
|
]
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"!# Download YOLOv7 code\n",
|
|||
|
"!git clone https://github.com/WongKinYiu/yolov7\n",
|
|||
|
"%cd yolov7\n",
|
|||
|
"!ls"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/"
|
|||
|
},
|
|||
|
"id": "yfZALjuo-_Md",
|
|||
|
"outputId": "88dbe003-898b-48ea-f374-42228d25a3cb"
|
|||
|
},
|
|||
|
"execution_count": 4,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"name": "stdout",
|
|||
|
"text": [
|
|||
|
"Cloning into 'yolov7'...\n",
|
|||
|
"remote: Enumerating objects: 724, done.\u001b[K\n",
|
|||
|
"remote: Counting objects: 100% (724/724), done.\u001b[K\n",
|
|||
|
"remote: Compressing objects: 100% (379/379), done.\u001b[K\n",
|
|||
|
"remote: Total 724 (delta 366), reused 644 (delta 330), pack-reused 0\u001b[K\n",
|
|||
|
"Receiving objects: 100% (724/724), 66.91 MiB | 17.13 MiB/s, done.\n",
|
|||
|
"Resolving deltas: 100% (366/366), done.\n",
|
|||
|
"/content/yolov7\n",
|
|||
|
"cfg\tdetect.py hubconf.py models\t requirements.txt tools\t utils\n",
|
|||
|
"data\texport.py inference paper\t scripts\t train_aux.py\n",
|
|||
|
"deploy\tfigure\t LICENSE.md README.md test.py\t train.py\n"
|
|||
|
]
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"!# Download trained weights\n",
|
|||
|
"!wget https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-tiny.pt"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/"
|
|||
|
},
|
|||
|
"id": "eWlHa1NJ-_Jw",
|
|||
|
"outputId": "4e6c08c5-500f-4c3c-d273-bfc8941c37b7"
|
|||
|
},
|
|||
|
"execution_count": 5,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"name": "stdout",
|
|||
|
"text": [
|
|||
|
"--2022-08-12 07:06:10-- https://github.com/WongKinYiu/yolov7/releases/download/v0.1/yolov7-tiny.pt\n",
|
|||
|
"Resolving github.com (github.com)... 20.205.243.166\n",
|
|||
|
"Connecting to github.com (github.com)|20.205.243.166|:443... connected.\n",
|
|||
|
"HTTP request sent, awaiting response... 302 Found\n",
|
|||
|
"Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/511187726/ba7d01ee-125a-4134-8864-fa1abcbf94d5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220812%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220812T070610Z&X-Amz-Expires=300&X-Amz-Signature=fbe7b2ff90bc6e2262f66d1b321cbddd6f90255ac23ec8bdf17ebe90b888e612&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=511187726&response-content-disposition=attachment%3B%20filename%3Dyolov7-tiny.pt&response-content-type=application%2Foctet-stream [following]\n",
|
|||
|
"--2022-08-12 07:06:10-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/511187726/ba7d01ee-125a-4134-8864-fa1abcbf94d5?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220812%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220812T070610Z&X-Amz-Expires=300&X-Amz-Signature=fbe7b2ff90bc6e2262f66d1b321cbddd6f90255ac23ec8bdf17ebe90b888e612&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=511187726&response-content-disposition=attachment%3B%20filename%3Dyolov7-tiny.pt&response-content-type=application%2Foctet-stream\n",
|
|||
|
"Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.108.133, 185.199.111.133, ...\n",
|
|||
|
"Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.\n",
|
|||
|
"HTTP request sent, awaiting response... 200 OK\n",
|
|||
|
"Length: 12639769 (12M) [application/octet-stream]\n",
|
|||
|
"Saving to: ‘yolov7-tiny.pt’\n",
|
|||
|
"\n",
|
|||
|
"yolov7-tiny.pt 100%[===================>] 12.05M 5.85MB/s in 2.1s \n",
|
|||
|
"\n",
|
|||
|
"2022-08-12 07:06:12 (5.85 MB/s) - ‘yolov7-tiny.pt’ saved [12639769/12639769]\n",
|
|||
|
"\n"
|
|||
|
]
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"!python detect.py --weights ./yolov7-tiny.pt --conf 0.25 --img-size 640 --source inference/images/horses.jpg"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/"
|
|||
|
},
|
|||
|
"id": "UX7u8eqj-_Hi",
|
|||
|
"outputId": "a088cfd4-183a-47a1-d939-3d5afd15ce4c"
|
|||
|
},
|
|||
|
"execution_count": 6,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"name": "stdout",
|
|||
|
"text": [
|
|||
|
"Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.25, device='', exist_ok=False, img_size=640, iou_thres=0.45, name='exp', no_trace=False, nosave=False, project='runs/detect', save_conf=False, save_txt=False, source='inference/images/horses.jpg', update=False, view_img=False, weights=['./yolov7-tiny.pt'])\n",
|
|||
|
"YOLOR 🚀 v0.1-101-g1b63720 torch 1.12.0+cu113 CUDA:0 (Tesla T4, 15109.75MB)\n",
|
|||
|
"\n",
|
|||
|
"Fusing layers... \n",
|
|||
|
"Model Summary: 200 layers, 6219709 parameters, 229245 gradients\n",
|
|||
|
" Convert model to Traced-model... \n",
|
|||
|
" traced_script_module saved! \n",
|
|||
|
" model is traced! \n",
|
|||
|
"\n",
|
|||
|
"/usr/local/lib/python3.7/dist-packages/torch/functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:2894.)\n",
|
|||
|
" return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]\n",
|
|||
|
"5 horses, Done. (8.0ms) Inference, (44.0ms) NMS\n",
|
|||
|
" The image with the result is saved in: runs/detect/exp/horses.jpg\n",
|
|||
|
"Done. (0.235s)\n"
|
|||
|
]
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"from PIL import Image\n",
|
|||
|
"Image.open('/content/yolov7/runs/detect/exp/horses.jpg')"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/",
|
|||
|
"height": 529
|
|||
|
},
|
|||
|
"id": "wZD-nZXX-_Ez",
|
|||
|
"outputId": "b201edb3-fb10-4d7f-f69d-78b4089a0e08"
|
|||
|
},
|
|||
|
"execution_count": 7,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "execute_result",
|
|||
|
"data": {
|
|||
|
"text/plain": [
|
|||
|
"<PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=773x512 at 0x7F8E9DA284D0>"
|
|||
|
],
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAwUAAAIACAIAAABcvVcpAAEAAElEQVR4nNS9W7otq44mJhFj51d996s74hc/uQVukSvPDOQHXdANIsZc62Rl8e09V4wILgKE9ANC4P/xf/5f4AIiAgAg3TT52f8FAJrQBiLKmfDzWF8lDiEAjDF8EktYX1r+iwYijmzxfYm7wHEIZo5PeKAfsKdnFxr6qafNmlpixYb1dfQvfXtKPjB2xFj7JKpmR5G0z6Y9iegCrJ9Szm33eRb6IWn/sWnX1N7ceL7rE4WHrn/JFbXrKx8uqkafp8VPhe5o8Pzso1lBiWsQESblN1vmih2Bq8V24zfXgvh5wLgAZpPnJkzcDyVPtsaJbDDACvMkoXuH/7TE7Gg7s2sNA8gonLB4jFbKleFEuBxpfszeVORMR9WBnh3lzCGIaKLMJCERockT7j5+LpSfC0WgxM9pXCSh5DKYiezhWm47cmnUrwAwHC9kMag/WZ6kImqw95Py8LT2PNZL3xgr0sifAIhwXCnCiqaZawRMEn8pRKWR34RoJh+qnEldxvwwRksnpQ5drEs3XINT+QznLRkmwTWHy9O1iW+9N3KjBsk2MK3XeqHu9tdkpNK5quCbBQDGGIjIrUsoyT+ViMoZsUrPg8pz9o5T20Hyu4bzZKcMv43zXxmUBnvuRaSRndTMqgKFaClt5cuDhq6F+k/88k/66FU0fICgiYa24n9I1YHUb6t/IC8x5LkWRARdy3xLz5veBwAStmKmNOH4XBZNTMKqFJTem7hvwJCmGVl5/Da8kTOKJJAHUJ4QuqG6w/RENAB3UPUlkY8R/EDoarSdJh3CH46mc9qqUyoujDi+p7DS+SiXHPZ6S20isi13W8qvwnsl+FcK8lzkQSpFYlI7Zx1qUuGXagFqKZ5IgKZnR1d9jZbRdhq/eRY6CAiHzi0zHhLiVPQ+tvsLzfFKtZiqPmd4oOcMSBc2rPT8QUfWsOPpXdV2MPHxZYt+2vcpE4ZIj0r617jHk+cnHxx0xkqHUVcVyQsFFsqFUsE34vIwOxRqSQHsEzGHrHYzXUlo45m6dkAl4yvVJRl9K0NTX4EDRgd00uu8HbWa+dCpWsmOBw4NXlEk9x5+y6UHOUOEvASY5hI+bUywL6XrwYfc9qQuxrbc++QGg37VMnuSX2CdrzFrmmLVKd95wQaiAHkzYXuedWyI3P2M2X43xCoclJeyyDoRwVOEiLAf9bXFWjqrtPQvBw5EJMU9lsO4iGbe0nmjtc/hJfjzkzFGbCM2HREBEx3W71nRNQjJGsqvnyFhg4dAJ6Mt6QgNg1YWsU+5RyhzgB/tj63DBbVsVIvu6Rlh+LWbTW80zY7UzGGlvueAa937eVHB8j9jwfpyREm943L/8tKePzf+t+E4wQ3F/S7nXyQ/IXJ8K/B2iLx+Ogj9lg7EtfBAQE7/vdJGr3ttcPkb1vqi0CdINDiLQ8NKKkIfzW+kfgENNyyx+BChVTmia/e59WqS1lI8+BW3b2jz+uZx6bR/L2XTQ+mR43ZTi/rTQ+Rvxx3pehsnnNPtuOHb6ZkHQw+4LeqvtT19nMaI0oV7JcSZtswAAGDuqv8CTYZe9rjf5/kin/CMgyBuY6X2DNniHDBYw04Mu2mIiBfQLHOk0EfTJENgWldiW/phxuhGTuRGo40/MYgEwJWcEHMHGXhIBFhhPR6qobLjTpP1P5f63U3LXi2BwGvZdxiWiAhUFgl3tdgOww1eAavvLxU5uG7ri4gw7ne4ZFBvRZSyFRCtgrSOt/08+y+gJQC4SwcM+lbavg1vIv85zGp17fs8C5FLcgKAqaVdKedsJ8JaBGIQMs9t8ptNmVDui2rHKGGZhPBBIOxE7W7Gb88+5tJJLq28UXs+U7SpNxEAyKPYh+q2uHlA0S6wZac2jA7MAazlB4SHpYXD+2i0JA8vp7g+ode+pFP+N8mhWx3po4H0IxEhQtouiLzCr3oOZwTjiY/18RMGn8MyHmoxU4BE3yuQxDyICEBSVqmIaRlEVHrGUCPRCwARbzX/EtoKuvJkI2KCRABA1j5jIYEzwj689Nm6n3lQI0IGQ9IIrspdzp8KBbSuvR3H1/rv17voL0I/Jzsv31FuO/h7ytvnn1+/nsKmaFlZUpCGbUEpt92KET5BIg5mJPELEPBVeEMMR0MEnH9k6JBC1mFPK8C/RkWHtDpzcG9ihOkgqXVKoRPdw8mkNwVt/GBH+YtQ2R9RbAz4IYtCqmmHex8sageAnfOQlwAERLilOSuBCHd0iunUOY4qrC1AYBIikjkolvXg3Oxoe5Z7JSpTNVXtfiUjIQNdQEgz7zPfYje5C7jNvawjwkp2oawO+q/c1Iyq95MB++rBkFZnrV4clhDOL1MYWiK6JaW2CH2pD3AjxGbRJaKatkp7RCS6t6RSM+4MEsXIDboKnCmWdmJNvDouQpmQLU5EZPtibxKHiBfBnRoVJ9Cw1pNJWFRZwZCfSDN9BVgb8rr3LqsI4mmmAautNJgEANtiak50feAg/QkrQt9V6UHK/yVtWkv/FhLt3v8t5bqr7yF/rwhbMASlmr4W9n6Hew6EVYNQnxtLZ3AsmJ7/YnizWAWR+K9G1y4Evai7sY94CP6YYbZ8uFk/uHWzjhOaZB27dUpV1amcdplgIq8DrT0yEWCIiBdHeUl/rk63HhOC2+9Hz66Yj9IMpqfLDff8MzYGE/bTK0V51eEhtjNAJD96YBLoOdnFSLPIfdT1VYBh+/Wx/ZT3tPaG8BqA+XuJWhNIR0OW3rkRzucSU55hcegBKGQKO2F+itxJwvdEJt5o5SoiAk6g/L4SSZQxBwD8wqxqlfJilIVeG+RhByZmxtnYh+A0zD/GwHkThbRjOhy3kjDAEnExaMg6kG6eSmMiMCFrjGyacTdImfF4zqNfAWBcPMsiArd0SkTDoyE1DQftXD9z0FEWtOfHKPhzSGSZVs1tcqdN9TLsePernFvc9lc0ay0oid2WEoBQC1PJbfwWi9SBfU7Sjvkakiars6jzGskONrWkzv38XoxbIWvHVEH5tPTO22D0fLXkk9QqdDX9i2Eii4TvuLSN3/PJWjcBr8FoSaHxUqyfoWRlqgUBVvs3aukqqjoxmOHC7KcAwmiqHQdx6EGJoNJzIiJbVyyCBxJNhGHaEpFPrAC5k+cVZ7TKOLVhIlueMQ/DPwwVCeUIjIS+FLB/IlEfE7adeMihbauXbShgqKiwb+fhMd6sciovDrVZFaOlBHd24m9FQ+udXKgBIA8j+P2YdJivIrt+4NUiInBsjwAzMVic9p/Vh+En1Hg6uucYn+k4rbTVRF3o3U3jFW+R7rkDEX3S5zoRJ0GBYfvMR3sjc9P8Gxxes3LnnHPOMQb//Xw+7KOoLSsCvWcdb022+1pfWkGpUNg3bkUquwZpabBMfMv40v37lviWv3fF+SS7n/aQPFJAafxDHd/L7lNd4vt65JLjUHl5IAMR51xrzr79903n5ZGPs8O7edNK6B8byxta0Si/+w60QSe10xsi4sUhXQdqQ3Dx4kNDCQb8AW5oVDWGLrLvYWDhSoB4peGfBv4icQqRqJH5aYgCsBKlCCd/1FCEgIjGuHxDcZljDLqz/OFdgHkjAH0Q1V9AHqRJaLC9MEs5K6UyAy5IxC0yPa81OEmDycxdv9f3lUjOdixd1Ayi1MVeUPv3s1EodaSEJFomVp2d6gJ8zsPiGG9kPl9znsatl6Oqyj2KO7a59UA2j6CTGztdg2NYi3nK28qCw2QAqDJHzH1WfAeGtA0JQPg5ZZvG0dCAOh+QyqkB/hhjxn1q49tVBduPI7ppSm4Al24VS4lRj1iLeX+E6MMIhRKRDrEbiACkJW0EDbqHNLEsFakVPE2aLA0G0hiC8ycRkGoTLOfLHB+U7hFWahYnYB92HVzVsOePNLpSEcZ/uwi+CIAwyA+k/rcKrfBq35wr9TuYYr1zkLxedlAP0iFF2BU3CPKSrOX/TY+dbdVaPd2y1t8NtYhWecjXzTrHr8NBNToatub5bPRgmuCxfRCy7YudSww/fZKnJSUimgCMUxiFBLnNFUC/m
|
|||
|
},
|
|||
|
"metadata": {},
|
|||
|
"execution_count": 7
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"# export CoreML model for iOS/MacOS: yolov7-tiny.mlmodel\n",
|
|||
|
"%cd /content/yolov7/\n",
|
|||
|
"!python export.py --weights ./yolov7-tiny.pt --img-size 640 640"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/"
|
|||
|
},
|
|||
|
"id": "VaPGM88g-_CE",
|
|||
|
"outputId": "74aa201a-2848-47f4-a1bd-1fea071c4d26"
|
|||
|
},
|
|||
|
"execution_count": 8,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"name": "stdout",
|
|||
|
"text": [
|
|||
|
"/content/yolov7\n",
|
|||
|
"Import onnx_graphsurgeon failure: No module named 'onnx_graphsurgeon'\n",
|
|||
|
"Namespace(batch_size=1, conf_thres=0.25, device='cpu', dynamic=False, dynamic_batch=False, end2end=False, fp16=False, grid=False, img_size=[640, 640], include_nms=False, int8=False, iou_thres=0.45, max_wh=None, simplify=False, topk_all=100, weights='./yolov7-tiny.pt')\n",
|
|||
|
"YOLOR 🚀 v0.1-101-g1b63720 torch 1.12.0+cu113 CPU\n",
|
|||
|
"\n",
|
|||
|
"Fusing layers... \n",
|
|||
|
"Model Summary: 200 layers, 6219709 parameters, 6219709 gradients\n",
|
|||
|
"\n",
|
|||
|
"Starting TorchScript export with torch 1.12.0+cu113...\n",
|
|||
|
"TorchScript export success, saved as ./yolov7-tiny.torchscript.pt\n",
|
|||
|
"scikit-learn version 1.0.2 is not supported. Minimum required version: 0.17. Maximum required version: 0.19.2. Disabling scikit-learn conversion API.\n",
|
|||
|
"TensorFlow version 2.8.2 has not been tested with coremltools. You may run into unexpected errors. TensorFlow 2.6.2 is the most recent version that has been tested.\n",
|
|||
|
"Keras version 2.8.0 has not been tested with coremltools. You may run into unexpected errors. Keras 2.6.0 is the most recent version that has been tested.\n",
|
|||
|
"Torch version 1.12.0+cu113 has not been tested with coremltools. You may run into unexpected errors. Torch 1.10.2 is the most recent version that has been tested.\n",
|
|||
|
"\n",
|
|||
|
"Starting CoreML export with coremltools 5.2.0...\n",
|
|||
|
"Tuple detected at graph output. This will be flattened in the converted model.\n",
|
|||
|
"Converting graph.\n",
|
|||
|
"Adding op 'model.0.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.0.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.1.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.1.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.2.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.2.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.3.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.3.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.4.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.4.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.5.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.5.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.7.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.7.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.9.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.9.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.10.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.10.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.11.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.11.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.12.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.12.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.14.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.14.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.16.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.16.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.17.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.17.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.18.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.18.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.19.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.19.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.21.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.21.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.23.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.23.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.24.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.24.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.25.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.25.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.26.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.26.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.28.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.28.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.29.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.29.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.30.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.30.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.35.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.35.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.37.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.37.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.38.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.38.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.40.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.40.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.42.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.42.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.43.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.43.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.44.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.44.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.45.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.45.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.47.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.47.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.48.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.48.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.50.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.50.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.52.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.52.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.53.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.53.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.54.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.54.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.55.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.55.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.57.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.57.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.58.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.58.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.60.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.60.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.61.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.61.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.62.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.62.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.63.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.63.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.65.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.65.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.66.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.66.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.68.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.68.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.69.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.69.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.70.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.70.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.71.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.71.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.73.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.73.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.74.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.74.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.75.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.75.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.76.conv.bias' of type const\n",
|
|||
|
"Adding op 'model.76.conv.weight' of type const\n",
|
|||
|
"Adding op 'model.77.m.0.bias' of type const\n",
|
|||
|
"Adding op 'model.77.m.0.weight' of type const\n",
|
|||
|
"Adding op 'model.77.m.1.bias' of type const\n",
|
|||
|
"Adding op 'model.77.m.1.weight' of type const\n",
|
|||
|
"Adding op 'model.77.m.2.bias' of type const\n",
|
|||
|
"Adding op 'model.77.m.2.weight' of type const\n",
|
|||
|
"Converting Frontend ==> MIL Ops: 0% 0/763 [00:00<?, ? ops/s]Converting op 114 : constant\n",
|
|||
|
"Adding op '114' of type const\n",
|
|||
|
"Converting op 115 : constant\n",
|
|||
|
"Adding op '115' of type const\n",
|
|||
|
"Converting op 116 : constant\n",
|
|||
|
"Adding op '116' of type const\n",
|
|||
|
"Converting op 117 : constant\n",
|
|||
|
"Adding op '117' of type const\n",
|
|||
|
"Converting op 118 : constant\n",
|
|||
|
"Adding op '118' of type const\n",
|
|||
|
"Converting op 119 : constant\n",
|
|||
|
"Adding op '119' of type const\n",
|
|||
|
"Converting op 123 : listconstruct\n",
|
|||
|
"Adding op '123' of type const\n",
|
|||
|
"Converting op 124 : listconstruct\n",
|
|||
|
"Adding op '124' of type const\n",
|
|||
|
"Converting op 125 : listconstruct\n",
|
|||
|
"Adding op '125' of type const\n",
|
|||
|
"Converting op 126 : listconstruct\n",
|
|||
|
"Adding op '126' of type const\n",
|
|||
|
"Converting op input.1 : _convolution\n",
|
|||
|
"Adding op 'input.1' of type conv\n",
|
|||
|
"Adding op 'input.1_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.1_pad_0' of type const\n",
|
|||
|
"Converting op input.3 : leaky_relu_\n",
|
|||
|
"Adding op 'input.3' of type leaky_relu\n",
|
|||
|
"Converting op 129 : constant\n",
|
|||
|
"Adding op '129' of type const\n",
|
|||
|
"Converting op 130 : constant\n",
|
|||
|
"Adding op '130' of type const\n",
|
|||
|
"Converting op 131 : constant\n",
|
|||
|
"Adding op '131' of type const\n",
|
|||
|
"Converting op 132 : constant\n",
|
|||
|
"Adding op '132' of type const\n",
|
|||
|
"Converting op 133 : constant\n",
|
|||
|
"Adding op '133' of type const\n",
|
|||
|
"Converting op 134 : constant\n",
|
|||
|
"Adding op '134' of type const\n",
|
|||
|
"Converting op 138 : listconstruct\n",
|
|||
|
"Adding op '138' of type const\n",
|
|||
|
"Converting op 139 : listconstruct\n",
|
|||
|
"Adding op '139' of type const\n",
|
|||
|
"Converting op 140 : listconstruct\n",
|
|||
|
"Adding op '140' of type const\n",
|
|||
|
"Converting op 141 : listconstruct\n",
|
|||
|
"Adding op '141' of type const\n",
|
|||
|
"Converting op input.5 : _convolution\n",
|
|||
|
"Adding op 'input.5' of type conv\n",
|
|||
|
"Adding op 'input.5_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.5_pad_0' of type const\n",
|
|||
|
"Converting op input.7 : leaky_relu_\n",
|
|||
|
"Adding op 'input.7' of type leaky_relu\n",
|
|||
|
"Converting op 144 : constant\n",
|
|||
|
"Adding op '144' of type const\n",
|
|||
|
"Converting op 145 : constant\n",
|
|||
|
"Adding op '145' of type const\n",
|
|||
|
"Converting op 146 : constant\n",
|
|||
|
"Adding op '146' of type const\n",
|
|||
|
"Converting op 147 : constant\n",
|
|||
|
"Adding op '147' of type const\n",
|
|||
|
"Converting op 148 : constant\n",
|
|||
|
"Adding op '148' of type const\n",
|
|||
|
"Converting op 152 : listconstruct\n",
|
|||
|
"Adding op '152' of type const\n",
|
|||
|
"Converting op 153 : listconstruct\n",
|
|||
|
"Adding op '153' of type const\n",
|
|||
|
"Converting op 154 : listconstruct\n",
|
|||
|
"Adding op '154' of type const\n",
|
|||
|
"Converting op 155 : listconstruct\n",
|
|||
|
"Adding op '155' of type const\n",
|
|||
|
"Converting op input.9 : _convolution\n",
|
|||
|
"Adding op 'input.9' of type conv\n",
|
|||
|
"Adding op 'input.9_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.9_pad_0' of type const\n",
|
|||
|
"Converting op 157 : leaky_relu_\n",
|
|||
|
"Adding op '157' of type leaky_relu\n",
|
|||
|
"Converting op 158 : constant\n",
|
|||
|
"Adding op '158' of type const\n",
|
|||
|
"Converting op 159 : constant\n",
|
|||
|
"Adding op '159' of type const\n",
|
|||
|
"Converting op 160 : constant\n",
|
|||
|
"Adding op '160' of type const\n",
|
|||
|
"Converting op 161 : constant\n",
|
|||
|
"Adding op '161' of type const\n",
|
|||
|
"Converting op 162 : constant\n",
|
|||
|
"Adding op '162' of type const\n",
|
|||
|
"Converting op 166 : listconstruct\n",
|
|||
|
"Adding op '166' of type const\n",
|
|||
|
"Converting op 167 : listconstruct\n",
|
|||
|
"Adding op '167' of type const\n",
|
|||
|
"Converting op 168 : listconstruct\n",
|
|||
|
"Adding op '168' of type const\n",
|
|||
|
"Converting op 169 : listconstruct\n",
|
|||
|
"Adding op '169' of type const\n",
|
|||
|
"Converting op input.11 : _convolution\n",
|
|||
|
"Adding op 'input.11' of type conv\n",
|
|||
|
"Adding op 'input.11_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.11_pad_0' of type const\n",
|
|||
|
"Converting op input.13 : leaky_relu_\n",
|
|||
|
"Adding op 'input.13' of type leaky_relu\n",
|
|||
|
"Converting op 172 : constant\n",
|
|||
|
"Adding op '172' of type const\n",
|
|||
|
"Converting op 173 : constant\n",
|
|||
|
"Adding op '173' of type const\n",
|
|||
|
"Converting op 174 : constant\n",
|
|||
|
"Adding op '174' of type const\n",
|
|||
|
"Converting op 175 : constant\n",
|
|||
|
"Adding op '175' of type const\n",
|
|||
|
"Converting op 176 : constant\n",
|
|||
|
"Adding op '176' of type const\n",
|
|||
|
"Converting op 180 : listconstruct\n",
|
|||
|
"Adding op '180' of type const\n",
|
|||
|
"Converting op 181 : listconstruct\n",
|
|||
|
"Adding op '181' of type const\n",
|
|||
|
"Converting op 182 : listconstruct\n",
|
|||
|
"Adding op '182' of type const\n",
|
|||
|
"Converting op 183 : listconstruct\n",
|
|||
|
"Adding op '183' of type const\n",
|
|||
|
"Converting op input.15 : _convolution\n",
|
|||
|
"Adding op 'input.15' of type conv\n",
|
|||
|
"Adding op 'input.15_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.15_pad_0' of type const\n",
|
|||
|
"Converting op input.17 : leaky_relu_\n",
|
|||
|
"Adding op 'input.17' of type leaky_relu\n",
|
|||
|
"Converting op 186 : constant\n",
|
|||
|
"Adding op '186' of type const\n",
|
|||
|
"Converting op 187 : constant\n",
|
|||
|
"Adding op '187' of type const\n",
|
|||
|
"Converting op 188 : constant\n",
|
|||
|
"Adding op '188' of type const\n",
|
|||
|
"Converting op 189 : constant\n",
|
|||
|
"Adding op '189' of type const\n",
|
|||
|
"Converting op 190 : constant\n",
|
|||
|
"Adding op '190' of type const\n",
|
|||
|
"Converting op 194 : listconstruct\n",
|
|||
|
"Adding op '194' of type const\n",
|
|||
|
"Converting op 195 : listconstruct\n",
|
|||
|
"Adding op '195' of type const\n",
|
|||
|
"Converting op 196 : listconstruct\n",
|
|||
|
"Adding op '196' of type const\n",
|
|||
|
"Converting op 197 : listconstruct\n",
|
|||
|
"Adding op '197' of type const\n",
|
|||
|
"Converting op input.19 : _convolution\n",
|
|||
|
"Adding op 'input.19' of type conv\n",
|
|||
|
"Adding op 'input.19_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.19_pad_0' of type const\n",
|
|||
|
"Converting op 199 : leaky_relu_\n",
|
|||
|
"Adding op '199' of type leaky_relu\n",
|
|||
|
"Converting op 200 : constant\n",
|
|||
|
"Adding op '200' of type const\n",
|
|||
|
"Converting op 201 : listconstruct\n",
|
|||
|
"Converting op input.21 : cat\n",
|
|||
|
"Adding op 'input.21' of type concat\n",
|
|||
|
"Adding op 'input.21_interleave_0' of type const\n",
|
|||
|
"Converting op 203 : constant\n",
|
|||
|
"Adding op '203' of type const\n",
|
|||
|
"Converting op 204 : constant\n",
|
|||
|
"Adding op '204' of type const\n",
|
|||
|
"Converting op 205 : constant\n",
|
|||
|
"Adding op '205' of type const\n",
|
|||
|
"Converting op 206 : constant\n",
|
|||
|
"Adding op '206' of type const\n",
|
|||
|
"Converting op 207 : constant\n",
|
|||
|
"Adding op '207' of type const\n",
|
|||
|
"Converting op 211 : listconstruct\n",
|
|||
|
"Adding op '211' of type const\n",
|
|||
|
"Converting op 212 : listconstruct\n",
|
|||
|
"Adding op '212' of type const\n",
|
|||
|
"Converting op 213 : listconstruct\n",
|
|||
|
"Adding op '213' of type const\n",
|
|||
|
"Converting op 214 : listconstruct\n",
|
|||
|
"Adding op '214' of type const\n",
|
|||
|
"Converting op input.23 : _convolution\n",
|
|||
|
"Adding op 'input.23' of type conv\n",
|
|||
|
"Adding op 'input.23_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.23_pad_0' of type const\n",
|
|||
|
"Converting op input.25 : leaky_relu_\n",
|
|||
|
"Adding op 'input.25' of type leaky_relu\n",
|
|||
|
"Converting op 217 : constant\n",
|
|||
|
"Adding op '217' of type const\n",
|
|||
|
"Converting op 218 : constant\n",
|
|||
|
"Adding op '218' of type const\n",
|
|||
|
"Converting op 219 : constant\n",
|
|||
|
"Adding op '219' of type const\n",
|
|||
|
"Converting op 220 : constant\n",
|
|||
|
"Adding op '220' of type const\n",
|
|||
|
"Converting op 221 : listconstruct\n",
|
|||
|
"Adding op '221' of type const\n",
|
|||
|
"Converting op 222 : listconstruct\n",
|
|||
|
"Adding op '222' of type const\n",
|
|||
|
"Converting op 223 : listconstruct\n",
|
|||
|
"Adding op '223' of type const\n",
|
|||
|
"Converting op 224 : listconstruct\n",
|
|||
|
"Adding op '224' of type const\n",
|
|||
|
"Converting op input.27 : max_pool2d\n",
|
|||
|
"Adding op 'input.27' of type max_pool\n",
|
|||
|
"Adding op 'input.27_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.27_pad_0' of type const\n",
|
|||
|
"Adding op 'input.27_ceil_mode_0' of type const\n",
|
|||
|
"Converting op 226 : constant\n",
|
|||
|
"Adding op '226' of type const\n",
|
|||
|
"Converting op 227 : constant\n",
|
|||
|
"Adding op '227' of type const\n",
|
|||
|
"Converting op 228 : constant\n",
|
|||
|
"Adding op '228' of type const\n",
|
|||
|
"Converting op 229 : constant\n",
|
|||
|
"Adding op '229' of type const\n",
|
|||
|
"Converting op 230 : constant\n",
|
|||
|
"Adding op '230' of type const\n",
|
|||
|
"Converting op 234 : listconstruct\n",
|
|||
|
"Adding op '234' of type const\n",
|
|||
|
"Converting op 235 : listconstruct\n",
|
|||
|
"Adding op '235' of type const\n",
|
|||
|
"Converting op 236 : listconstruct\n",
|
|||
|
"Adding op '236' of type const\n",
|
|||
|
"Converting op 237 : listconstruct\n",
|
|||
|
"Adding op '237' of type const\n",
|
|||
|
"Converting op input.29 : _convolution\n",
|
|||
|
"Adding op 'input.29' of type conv\n",
|
|||
|
"Adding op 'input.29_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.29_pad_0' of type const\n",
|
|||
|
"Converting op 239 : leaky_relu_\n",
|
|||
|
"Adding op '239' of type leaky_relu\n",
|
|||
|
"Converting op 240 : constant\n",
|
|||
|
"Adding op '240' of type const\n",
|
|||
|
"Converting op 241 : constant\n",
|
|||
|
"Adding op '241' of type const\n",
|
|||
|
"Converting op 242 : constant\n",
|
|||
|
"Adding op '242' of type const\n",
|
|||
|
"Converting op 243 : constant\n",
|
|||
|
"Adding op '243' of type const\n",
|
|||
|
"Converting op 244 : constant\n",
|
|||
|
"Adding op '244' of type const\n",
|
|||
|
"Converting op 248 : listconstruct\n",
|
|||
|
"Adding op '248' of type const\n",
|
|||
|
"Converting op 249 : listconstruct\n",
|
|||
|
"Adding op '249' of type const\n",
|
|||
|
"Converting op 250 : listconstruct\n",
|
|||
|
"Adding op '250' of type const\n",
|
|||
|
"Converting op 251 : listconstruct\n",
|
|||
|
"Adding op '251' of type const\n",
|
|||
|
"Converting op input.31 : _convolution\n",
|
|||
|
"Adding op 'input.31' of type conv\n",
|
|||
|
"Adding op 'input.31_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.31_pad_0' of type const\n",
|
|||
|
"Converting op input.33 : leaky_relu_\n",
|
|||
|
"Adding op 'input.33' of type leaky_relu\n",
|
|||
|
"Converting op 254 : constant\n",
|
|||
|
"Adding op '254' of type const\n",
|
|||
|
"Converting op 255 : constant\n",
|
|||
|
"Adding op '255' of type const\n",
|
|||
|
"Converting op 256 : constant\n",
|
|||
|
"Adding op '256' of type const\n",
|
|||
|
"Converting op 257 : constant\n",
|
|||
|
"Adding op '257' of type const\n",
|
|||
|
"Converting op 258 : constant\n",
|
|||
|
"Adding op '258' of type const\n",
|
|||
|
"Converting op 262 : listconstruct\n",
|
|||
|
"Adding op '262' of type const\n",
|
|||
|
"Converting op 263 : listconstruct\n",
|
|||
|
"Adding op '263' of type const\n",
|
|||
|
"Converting op 264 : listconstruct\n",
|
|||
|
"Adding op '264' of type const\n",
|
|||
|
"Converting op 265 : listconstruct\n",
|
|||
|
"Adding op '265' of type const\n",
|
|||
|
"Converting op input.35 : _convolution\n",
|
|||
|
"Adding op 'input.35' of type conv\n",
|
|||
|
"Adding op 'input.35_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.35_pad_0' of type const\n",
|
|||
|
"Converting op input.37 : leaky_relu_\n",
|
|||
|
"Adding op 'input.37' of type leaky_relu\n",
|
|||
|
"Converting op 268 : constant\n",
|
|||
|
"Adding op '268' of type const\n",
|
|||
|
"Converting op 269 : constant\n",
|
|||
|
"Adding op '269' of type const\n",
|
|||
|
"Converting op 270 : constant\n",
|
|||
|
"Adding op '270' of type const\n",
|
|||
|
"Converting op 271 : constant\n",
|
|||
|
"Adding op '271' of type const\n",
|
|||
|
"Converting op 272 : constant\n",
|
|||
|
"Adding op '272' of type const\n",
|
|||
|
"Converting op 276 : listconstruct\n",
|
|||
|
"Adding op '276' of type const\n",
|
|||
|
"Converting op 277 : listconstruct\n",
|
|||
|
"Adding op '277' of type const\n",
|
|||
|
"Converting op 278 : listconstruct\n",
|
|||
|
"Adding op '278' of type const\n",
|
|||
|
"Converting op 279 : listconstruct\n",
|
|||
|
"Adding op '279' of type const\n",
|
|||
|
"Converting op input.39 : _convolution\n",
|
|||
|
"Adding op 'input.39' of type conv\n",
|
|||
|
"Adding op 'input.39_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.39_pad_0' of type const\n",
|
|||
|
"Converting op 281 : leaky_relu_\n",
|
|||
|
"Adding op '281' of type leaky_relu\n",
|
|||
|
"Converting op 282 : constant\n",
|
|||
|
"Adding op '282' of type const\n",
|
|||
|
"Converting op 283 : listconstruct\n",
|
|||
|
"Converting op input.41 : cat\n",
|
|||
|
"Adding op 'input.41' of type concat\n",
|
|||
|
"Adding op 'input.41_interleave_0' of type const\n",
|
|||
|
"Converting op 285 : constant\n",
|
|||
|
"Adding op '285' of type const\n",
|
|||
|
"Converting op 286 : constant\n",
|
|||
|
"Adding op '286' of type const\n",
|
|||
|
"Converting op 287 : constant\n",
|
|||
|
"Adding op '287' of type const\n",
|
|||
|
"Converting op 288 : constant\n",
|
|||
|
"Adding op '288' of type const\n",
|
|||
|
"Converting op 289 : constant\n",
|
|||
|
"Adding op '289' of type const\n",
|
|||
|
"Converting op 293 : listconstruct\n",
|
|||
|
"Adding op '293' of type const\n",
|
|||
|
"Converting op 294 : listconstruct\n",
|
|||
|
"Adding op '294' of type const\n",
|
|||
|
"Converting op 295 : listconstruct\n",
|
|||
|
"Adding op '295' of type const\n",
|
|||
|
"Converting op 296 : listconstruct\n",
|
|||
|
"Adding op '296' of type const\n",
|
|||
|
"Converting op input.43 : _convolution\n",
|
|||
|
"Adding op 'input.43' of type conv\n",
|
|||
|
"Adding op 'input.43_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.43_pad_0' of type const\n",
|
|||
|
"Converting op input.45 : leaky_relu_\n",
|
|||
|
"Adding op 'input.45' of type leaky_relu\n",
|
|||
|
"Converting op 299 : constant\n",
|
|||
|
"Adding op '299' of type const\n",
|
|||
|
"Converting op 300 : constant\n",
|
|||
|
"Adding op '300' of type const\n",
|
|||
|
"Converting op 301 : constant\n",
|
|||
|
"Adding op '301' of type const\n",
|
|||
|
"Converting op 302 : constant\n",
|
|||
|
"Adding op '302' of type const\n",
|
|||
|
"Converting op 303 : listconstruct\n",
|
|||
|
"Adding op '303' of type const\n",
|
|||
|
"Converting op 304 : listconstruct\n",
|
|||
|
"Adding op '304' of type const\n",
|
|||
|
"Converting op 305 : listconstruct\n",
|
|||
|
"Adding op '305' of type const\n",
|
|||
|
"Converting op 306 : listconstruct\n",
|
|||
|
"Adding op '306' of type const\n",
|
|||
|
"Converting op input.47 : max_pool2d\n",
|
|||
|
"Adding op 'input.47' of type max_pool\n",
|
|||
|
"Adding op 'input.47_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.47_pad_0' of type const\n",
|
|||
|
"Adding op 'input.47_ceil_mode_0' of type const\n",
|
|||
|
"Converting op 308 : constant\n",
|
|||
|
"Adding op '308' of type const\n",
|
|||
|
"Converting op 309 : constant\n",
|
|||
|
"Adding op '309' of type const\n",
|
|||
|
"Converting op 310 : constant\n",
|
|||
|
"Adding op '310' of type const\n",
|
|||
|
"Converting op 311 : constant\n",
|
|||
|
"Adding op '311' of type const\n",
|
|||
|
"Converting op 312 : constant\n",
|
|||
|
"Adding op '312' of type const\n",
|
|||
|
"Converting op 316 : listconstruct\n",
|
|||
|
"Adding op '316' of type const\n",
|
|||
|
"Converting op 317 : listconstruct\n",
|
|||
|
"Adding op '317' of type const\n",
|
|||
|
"Converting op 318 : listconstruct\n",
|
|||
|
"Adding op '318' of type const\n",
|
|||
|
"Converting op 319 : listconstruct\n",
|
|||
|
"Adding op '319' of type const\n",
|
|||
|
"Converting op input.49 : _convolution\n",
|
|||
|
"Adding op 'input.49' of type conv\n",
|
|||
|
"Adding op 'input.49_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.49_pad_0' of type const\n",
|
|||
|
"Converting op 321 : leaky_relu_\n",
|
|||
|
"Adding op '321' of type leaky_relu\n",
|
|||
|
"Converting op 322 : constant\n",
|
|||
|
"Adding op '322' of type const\n",
|
|||
|
"Converting op 323 : constant\n",
|
|||
|
"Adding op '323' of type const\n",
|
|||
|
"Converting op 324 : constant\n",
|
|||
|
"Adding op '324' of type const\n",
|
|||
|
"Converting op 325 : constant\n",
|
|||
|
"Adding op '325' of type const\n",
|
|||
|
"Converting op 326 : constant\n",
|
|||
|
"Adding op '326' of type const\n",
|
|||
|
"Converting op 330 : listconstruct\n",
|
|||
|
"Adding op '330' of type const\n",
|
|||
|
"Converting op 331 : listconstruct\n",
|
|||
|
"Adding op '331' of type const\n",
|
|||
|
"Converting op 332 : listconstruct\n",
|
|||
|
"Adding op '332' of type const\n",
|
|||
|
"Converting op 333 : listconstruct\n",
|
|||
|
"Adding op '333' of type const\n",
|
|||
|
"Converting op input.51 : _convolution\n",
|
|||
|
"Adding op 'input.51' of type conv\n",
|
|||
|
"Adding op 'input.51_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.51_pad_0' of type const\n",
|
|||
|
"Converting op input.53 : leaky_relu_\n",
|
|||
|
"Adding op 'input.53' of type leaky_relu\n",
|
|||
|
"Converting op 336 : constant\n",
|
|||
|
"Adding op '336' of type const\n",
|
|||
|
"Converting op 337 : constant\n",
|
|||
|
"Adding op '337' of type const\n",
|
|||
|
"Converting op 338 : constant\n",
|
|||
|
"Adding op '338' of type const\n",
|
|||
|
"Converting op 339 : constant\n",
|
|||
|
"Adding op '339' of type const\n",
|
|||
|
"Converting op 340 : constant\n",
|
|||
|
"Adding op '340' of type const\n",
|
|||
|
"Converting op 344 : listconstruct\n",
|
|||
|
"Adding op '344' of type const\n",
|
|||
|
"Converting op 345 : listconstruct\n",
|
|||
|
"Adding op '345' of type const\n",
|
|||
|
"Converting op 346 : listconstruct\n",
|
|||
|
"Adding op '346' of type const\n",
|
|||
|
"Converting Frontend ==> MIL Ops: 25% 188/763 [00:00<00:00, 1870.72 ops/s]Converting op 347 : listconstruct\n",
|
|||
|
"Adding op '347' of type const\n",
|
|||
|
"Converting op input.55 : _convolution\n",
|
|||
|
"Adding op 'input.55' of type conv\n",
|
|||
|
"Adding op 'input.55_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.55_pad_0' of type const\n",
|
|||
|
"Converting op input.57 : leaky_relu_\n",
|
|||
|
"Adding op 'input.57' of type leaky_relu\n",
|
|||
|
"Converting op 350 : constant\n",
|
|||
|
"Adding op '350' of type const\n",
|
|||
|
"Converting op 351 : constant\n",
|
|||
|
"Adding op '351' of type const\n",
|
|||
|
"Converting op 352 : constant\n",
|
|||
|
"Adding op '352' of type const\n",
|
|||
|
"Converting op 353 : constant\n",
|
|||
|
"Adding op '353' of type const\n",
|
|||
|
"Converting op 354 : constant\n",
|
|||
|
"Adding op '354' of type const\n",
|
|||
|
"Converting op 358 : listconstruct\n",
|
|||
|
"Adding op '358' of type const\n",
|
|||
|
"Converting op 359 : listconstruct\n",
|
|||
|
"Adding op '359' of type const\n",
|
|||
|
"Converting op 360 : listconstruct\n",
|
|||
|
"Adding op '360' of type const\n",
|
|||
|
"Converting op 361 : listconstruct\n",
|
|||
|
"Adding op '361' of type const\n",
|
|||
|
"Converting op input.59 : _convolution\n",
|
|||
|
"Adding op 'input.59' of type conv\n",
|
|||
|
"Adding op 'input.59_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.59_pad_0' of type const\n",
|
|||
|
"Converting op 363 : leaky_relu_\n",
|
|||
|
"Adding op '363' of type leaky_relu\n",
|
|||
|
"Converting op 364 : constant\n",
|
|||
|
"Adding op '364' of type const\n",
|
|||
|
"Converting op 365 : listconstruct\n",
|
|||
|
"Converting op input.61 : cat\n",
|
|||
|
"Adding op 'input.61' of type concat\n",
|
|||
|
"Adding op 'input.61_interleave_0' of type const\n",
|
|||
|
"Converting op 367 : constant\n",
|
|||
|
"Adding op '367' of type const\n",
|
|||
|
"Converting op 368 : constant\n",
|
|||
|
"Adding op '368' of type const\n",
|
|||
|
"Converting op 369 : constant\n",
|
|||
|
"Adding op '369' of type const\n",
|
|||
|
"Converting op 370 : constant\n",
|
|||
|
"Adding op '370' of type const\n",
|
|||
|
"Converting op 371 : constant\n",
|
|||
|
"Adding op '371' of type const\n",
|
|||
|
"Converting op 375 : listconstruct\n",
|
|||
|
"Adding op '375' of type const\n",
|
|||
|
"Converting op 376 : listconstruct\n",
|
|||
|
"Adding op '376' of type const\n",
|
|||
|
"Converting op 377 : listconstruct\n",
|
|||
|
"Adding op '377' of type const\n",
|
|||
|
"Converting op 378 : listconstruct\n",
|
|||
|
"Adding op '378' of type const\n",
|
|||
|
"Converting op input.63 : _convolution\n",
|
|||
|
"Adding op 'input.63' of type conv\n",
|
|||
|
"Adding op 'input.63_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.63_pad_0' of type const\n",
|
|||
|
"Converting op input.65 : leaky_relu_\n",
|
|||
|
"Adding op 'input.65' of type leaky_relu\n",
|
|||
|
"Converting op 381 : constant\n",
|
|||
|
"Adding op '381' of type const\n",
|
|||
|
"Converting op 382 : constant\n",
|
|||
|
"Adding op '382' of type const\n",
|
|||
|
"Converting op 383 : constant\n",
|
|||
|
"Adding op '383' of type const\n",
|
|||
|
"Converting op 384 : constant\n",
|
|||
|
"Adding op '384' of type const\n",
|
|||
|
"Converting op 385 : listconstruct\n",
|
|||
|
"Adding op '385' of type const\n",
|
|||
|
"Converting op 386 : listconstruct\n",
|
|||
|
"Adding op '386' of type const\n",
|
|||
|
"Converting op 387 : listconstruct\n",
|
|||
|
"Adding op '387' of type const\n",
|
|||
|
"Converting op 388 : listconstruct\n",
|
|||
|
"Adding op '388' of type const\n",
|
|||
|
"Converting op input.67 : max_pool2d\n",
|
|||
|
"Adding op 'input.67' of type max_pool\n",
|
|||
|
"Adding op 'input.67_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.67_pad_0' of type const\n",
|
|||
|
"Adding op 'input.67_ceil_mode_0' of type const\n",
|
|||
|
"Converting op 390 : constant\n",
|
|||
|
"Adding op '390' of type const\n",
|
|||
|
"Converting op 391 : constant\n",
|
|||
|
"Adding op '391' of type const\n",
|
|||
|
"Converting op 392 : constant\n",
|
|||
|
"Adding op '392' of type const\n",
|
|||
|
"Converting op 393 : constant\n",
|
|||
|
"Adding op '393' of type const\n",
|
|||
|
"Converting op 394 : constant\n",
|
|||
|
"Adding op '394' of type const\n",
|
|||
|
"Converting op 398 : listconstruct\n",
|
|||
|
"Adding op '398' of type const\n",
|
|||
|
"Converting op 399 : listconstruct\n",
|
|||
|
"Adding op '399' of type const\n",
|
|||
|
"Converting op 400 : listconstruct\n",
|
|||
|
"Adding op '400' of type const\n",
|
|||
|
"Converting op 401 : listconstruct\n",
|
|||
|
"Adding op '401' of type const\n",
|
|||
|
"Converting op input.69 : _convolution\n",
|
|||
|
"Adding op 'input.69' of type conv\n",
|
|||
|
"Adding op 'input.69_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.69_pad_0' of type const\n",
|
|||
|
"Converting op 403 : leaky_relu_\n",
|
|||
|
"Adding op '403' of type leaky_relu\n",
|
|||
|
"Converting op 404 : constant\n",
|
|||
|
"Adding op '404' of type const\n",
|
|||
|
"Converting op 405 : constant\n",
|
|||
|
"Adding op '405' of type const\n",
|
|||
|
"Converting op 406 : constant\n",
|
|||
|
"Adding op '406' of type const\n",
|
|||
|
"Converting op 407 : constant\n",
|
|||
|
"Adding op '407' of type const\n",
|
|||
|
"Converting op 408 : constant\n",
|
|||
|
"Adding op '408' of type const\n",
|
|||
|
"Converting op 412 : listconstruct\n",
|
|||
|
"Adding op '412' of type const\n",
|
|||
|
"Converting op 413 : listconstruct\n",
|
|||
|
"Adding op '413' of type const\n",
|
|||
|
"Converting op 414 : listconstruct\n",
|
|||
|
"Adding op '414' of type const\n",
|
|||
|
"Converting op 415 : listconstruct\n",
|
|||
|
"Adding op '415' of type const\n",
|
|||
|
"Converting op input.71 : _convolution\n",
|
|||
|
"Adding op 'input.71' of type conv\n",
|
|||
|
"Adding op 'input.71_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.71_pad_0' of type const\n",
|
|||
|
"Converting op input.73 : leaky_relu_\n",
|
|||
|
"Adding op 'input.73' of type leaky_relu\n",
|
|||
|
"Converting op 418 : constant\n",
|
|||
|
"Adding op '418' of type const\n",
|
|||
|
"Converting op 419 : constant\n",
|
|||
|
"Adding op '419' of type const\n",
|
|||
|
"Converting op 420 : constant\n",
|
|||
|
"Adding op '420' of type const\n",
|
|||
|
"Converting op 421 : constant\n",
|
|||
|
"Adding op '421' of type const\n",
|
|||
|
"Converting op 422 : constant\n",
|
|||
|
"Adding op '422' of type const\n",
|
|||
|
"Converting op 426 : listconstruct\n",
|
|||
|
"Adding op '426' of type const\n",
|
|||
|
"Converting op 427 : listconstruct\n",
|
|||
|
"Adding op '427' of type const\n",
|
|||
|
"Converting op 428 : listconstruct\n",
|
|||
|
"Adding op '428' of type const\n",
|
|||
|
"Converting op 429 : listconstruct\n",
|
|||
|
"Adding op '429' of type const\n",
|
|||
|
"Converting op input.75 : _convolution\n",
|
|||
|
"Adding op 'input.75' of type conv\n",
|
|||
|
"Adding op 'input.75_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.75_pad_0' of type const\n",
|
|||
|
"Converting op input.77 : leaky_relu_\n",
|
|||
|
"Adding op 'input.77' of type leaky_relu\n",
|
|||
|
"Converting op 432 : constant\n",
|
|||
|
"Adding op '432' of type const\n",
|
|||
|
"Converting op 433 : constant\n",
|
|||
|
"Adding op '433' of type const\n",
|
|||
|
"Converting op 434 : constant\n",
|
|||
|
"Adding op '434' of type const\n",
|
|||
|
"Converting op 435 : constant\n",
|
|||
|
"Adding op '435' of type const\n",
|
|||
|
"Converting op 436 : constant\n",
|
|||
|
"Adding op '436' of type const\n",
|
|||
|
"Converting op 440 : listconstruct\n",
|
|||
|
"Adding op '440' of type const\n",
|
|||
|
"Converting op 441 : listconstruct\n",
|
|||
|
"Adding op '441' of type const\n",
|
|||
|
"Converting op 442 : listconstruct\n",
|
|||
|
"Adding op '442' of type const\n",
|
|||
|
"Converting op 443 : listconstruct\n",
|
|||
|
"Adding op '443' of type const\n",
|
|||
|
"Converting op input.79 : _convolution\n",
|
|||
|
"Adding op 'input.79' of type conv\n",
|
|||
|
"Adding op 'input.79_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.79_pad_0' of type const\n",
|
|||
|
"Converting op 445 : leaky_relu_\n",
|
|||
|
"Adding op '445' of type leaky_relu\n",
|
|||
|
"Converting op 446 : constant\n",
|
|||
|
"Adding op '446' of type const\n",
|
|||
|
"Converting op 447 : listconstruct\n",
|
|||
|
"Converting op input.81 : cat\n",
|
|||
|
"Adding op 'input.81' of type concat\n",
|
|||
|
"Adding op 'input.81_interleave_0' of type const\n",
|
|||
|
"Converting op 449 : constant\n",
|
|||
|
"Adding op '449' of type const\n",
|
|||
|
"Converting op 450 : constant\n",
|
|||
|
"Adding op '450' of type const\n",
|
|||
|
"Converting op 451 : constant\n",
|
|||
|
"Adding op '451' of type const\n",
|
|||
|
"Converting op 452 : constant\n",
|
|||
|
"Adding op '452' of type const\n",
|
|||
|
"Converting op 453 : constant\n",
|
|||
|
"Adding op '453' of type const\n",
|
|||
|
"Converting op 457 : listconstruct\n",
|
|||
|
"Adding op '457' of type const\n",
|
|||
|
"Converting op 458 : listconstruct\n",
|
|||
|
"Adding op '458' of type const\n",
|
|||
|
"Converting op 459 : listconstruct\n",
|
|||
|
"Adding op '459' of type const\n",
|
|||
|
"Converting op 460 : listconstruct\n",
|
|||
|
"Adding op '460' of type const\n",
|
|||
|
"Converting op input.83 : _convolution\n",
|
|||
|
"Adding op 'input.83' of type conv\n",
|
|||
|
"Adding op 'input.83_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.83_pad_0' of type const\n",
|
|||
|
"Converting op input.85 : leaky_relu_\n",
|
|||
|
"Adding op 'input.85' of type leaky_relu\n",
|
|||
|
"Converting op 463 : constant\n",
|
|||
|
"Adding op '463' of type const\n",
|
|||
|
"Converting op 464 : constant\n",
|
|||
|
"Adding op '464' of type const\n",
|
|||
|
"Converting op 465 : constant\n",
|
|||
|
"Adding op '465' of type const\n",
|
|||
|
"Converting op 466 : constant\n",
|
|||
|
"Adding op '466' of type const\n",
|
|||
|
"Converting op 467 : constant\n",
|
|||
|
"Adding op '467' of type const\n",
|
|||
|
"Converting op 471 : listconstruct\n",
|
|||
|
"Adding op '471' of type const\n",
|
|||
|
"Converting op 472 : listconstruct\n",
|
|||
|
"Adding op '472' of type const\n",
|
|||
|
"Converting op 473 : listconstruct\n",
|
|||
|
"Adding op '473' of type const\n",
|
|||
|
"Converting op 474 : listconstruct\n",
|
|||
|
"Adding op '474' of type const\n",
|
|||
|
"Converting op input.87 : _convolution\n",
|
|||
|
"Adding op 'input.87' of type conv\n",
|
|||
|
"Adding op 'input.87_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.87_pad_0' of type const\n",
|
|||
|
"Converting op 476 : leaky_relu_\n",
|
|||
|
"Adding op '476' of type leaky_relu\n",
|
|||
|
"Converting op 477 : constant\n",
|
|||
|
"Adding op '477' of type const\n",
|
|||
|
"Converting op 478 : constant\n",
|
|||
|
"Adding op '478' of type const\n",
|
|||
|
"Converting op 479 : constant\n",
|
|||
|
"Adding op '479' of type const\n",
|
|||
|
"Converting op 480 : constant\n",
|
|||
|
"Adding op '480' of type const\n",
|
|||
|
"Converting op 481 : constant\n",
|
|||
|
"Adding op '481' of type const\n",
|
|||
|
"Converting op 485 : listconstruct\n",
|
|||
|
"Adding op '485' of type const\n",
|
|||
|
"Converting op 486 : listconstruct\n",
|
|||
|
"Adding op '486' of type const\n",
|
|||
|
"Converting op 487 : listconstruct\n",
|
|||
|
"Adding op '487' of type const\n",
|
|||
|
"Converting op 488 : listconstruct\n",
|
|||
|
"Adding op '488' of type const\n",
|
|||
|
"Converting op input.89 : _convolution\n",
|
|||
|
"Adding op 'input.89' of type conv\n",
|
|||
|
"Adding op 'input.89_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.89_pad_0' of type const\n",
|
|||
|
"Converting op input.91 : leaky_relu_\n",
|
|||
|
"Adding op 'input.91' of type leaky_relu\n",
|
|||
|
"Converting op 491 : constant\n",
|
|||
|
"Adding op '491' of type const\n",
|
|||
|
"Converting op 492 : constant\n",
|
|||
|
"Adding op '492' of type const\n",
|
|||
|
"Converting op 493 : constant\n",
|
|||
|
"Adding op '493' of type const\n",
|
|||
|
"Converting op 494 : constant\n",
|
|||
|
"Adding op '494' of type const\n",
|
|||
|
"Converting op 495 : listconstruct\n",
|
|||
|
"Adding op '495' of type const\n",
|
|||
|
"Converting op 496 : listconstruct\n",
|
|||
|
"Adding op '496' of type const\n",
|
|||
|
"Converting op 497 : listconstruct\n",
|
|||
|
"Adding op '497' of type const\n",
|
|||
|
"Converting op 498 : listconstruct\n",
|
|||
|
"Adding op '498' of type const\n",
|
|||
|
"Converting op 499 : max_pool2d\n",
|
|||
|
"Adding op '499' of type max_pool\n",
|
|||
|
"Adding op '499_pad_type_0' of type const\n",
|
|||
|
"Adding op '499_pad_0' of type const\n",
|
|||
|
"Adding op '499_ceil_mode_0' of type const\n",
|
|||
|
"Converting op 500 : constant\n",
|
|||
|
"Adding op '500' of type const\n",
|
|||
|
"Converting op 501 : constant\n",
|
|||
|
"Adding op '501' of type const\n",
|
|||
|
"Converting op 502 : constant\n",
|
|||
|
"Adding op '502' of type const\n",
|
|||
|
"Converting op 503 : constant\n",
|
|||
|
"Adding op '503' of type const\n",
|
|||
|
"Converting op 504 : listconstruct\n",
|
|||
|
"Adding op '504' of type const\n",
|
|||
|
"Converting op 505 : listconstruct\n",
|
|||
|
"Adding op '505' of type const\n",
|
|||
|
"Converting op 506 : listconstruct\n",
|
|||
|
"Adding op '506' of type const\n",
|
|||
|
"Converting op 507 : listconstruct\n",
|
|||
|
"Adding op '507' of type const\n",
|
|||
|
"Converting op 508 : max_pool2d\n",
|
|||
|
"Adding op '508' of type max_pool\n",
|
|||
|
"Adding op '508_pad_type_0' of type const\n",
|
|||
|
"Adding op '508_pad_0' of type const\n",
|
|||
|
"Adding op '508_ceil_mode_0' of type const\n",
|
|||
|
"Converting op 509 : constant\n",
|
|||
|
"Adding op '509' of type const\n",
|
|||
|
"Converting op 510 : constant\n",
|
|||
|
"Adding op '510' of type const\n",
|
|||
|
"Converting op 511 : constant\n",
|
|||
|
"Adding op '511' of type const\n",
|
|||
|
"Converting op 512 : constant\n",
|
|||
|
"Adding op '512' of type const\n",
|
|||
|
"Converting op 513 : listconstruct\n",
|
|||
|
"Adding op '513' of type const\n",
|
|||
|
"Converting op 514 : listconstruct\n",
|
|||
|
"Adding op '514' of type const\n",
|
|||
|
"Converting op 515 : listconstruct\n",
|
|||
|
"Adding op '515' of type const\n",
|
|||
|
"Converting op 516 : listconstruct\n",
|
|||
|
"Adding op '516' of type const\n",
|
|||
|
"Converting op 517 : max_pool2d\n",
|
|||
|
"Adding op '517' of type max_pool\n",
|
|||
|
"Adding op '517_pad_type_0' of type const\n",
|
|||
|
"Adding op '517_pad_0' of type const\n",
|
|||
|
"Adding op '517_ceil_mode_0' of type const\n",
|
|||
|
"Converting op 518 : constant\n",
|
|||
|
"Adding op '518' of type const\n",
|
|||
|
"Converting op 519 : listconstruct\n",
|
|||
|
"Converting op input.93 : cat\n",
|
|||
|
"Adding op 'input.93' of type concat\n",
|
|||
|
"Adding op 'input.93_interleave_0' of type const\n",
|
|||
|
"Converting op 521 : constant\n",
|
|||
|
"Adding op '521' of type const\n",
|
|||
|
"Converting op 522 : constant\n",
|
|||
|
"Adding op '522' of type const\n",
|
|||
|
"Converting op 523 : constant\n",
|
|||
|
"Adding op '523' of type const\n",
|
|||
|
"Converting op 524 : constant\n",
|
|||
|
"Adding op '524' of type const\n",
|
|||
|
"Converting op 525 : constant\n",
|
|||
|
"Adding op '525' of type const\n",
|
|||
|
"Converting op 529 : listconstruct\n",
|
|||
|
"Adding op '529' of type const\n",
|
|||
|
"Converting op 530 : listconstruct\n",
|
|||
|
"Adding op '530' of type const\n",
|
|||
|
"Converting op 531 : listconstruct\n",
|
|||
|
"Adding op '531' of type const\n",
|
|||
|
"Converting op 532 : listconstruct\n",
|
|||
|
"Adding op '532' of type const\n",
|
|||
|
"Converting op input.95 : _convolution\n",
|
|||
|
"Adding op 'input.95' of type conv\n",
|
|||
|
"Adding op 'input.95_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.95_pad_0' of type const\n",
|
|||
|
"Converting op 534 : leaky_relu_\n",
|
|||
|
"Adding op '534' of type leaky_relu\n",
|
|||
|
"Converting op 535 : constant\n",
|
|||
|
"Adding op '535' of type const\n",
|
|||
|
"Converting op 536 : listconstruct\n",
|
|||
|
"Converting op input.97 : cat\n",
|
|||
|
"Adding op 'input.97' of type concat\n",
|
|||
|
"Adding op 'input.97_interleave_0' of type const\n",
|
|||
|
"Converting op 538 : constant\n",
|
|||
|
"Adding op '538' of type const\n",
|
|||
|
"Converting op 539 : constant\n",
|
|||
|
"Adding op '539' of type const\n",
|
|||
|
"Converting op 540 : constant\n",
|
|||
|
"Adding op '540' of type const\n",
|
|||
|
"Converting op 541 : constant\n",
|
|||
|
"Adding op '541' of type const\n",
|
|||
|
"Converting op 542 : constant\n",
|
|||
|
"Adding op '542' of type const\n",
|
|||
|
"Converting op 546 : listconstruct\n",
|
|||
|
"Adding op '546' of type const\n",
|
|||
|
"Converting op 547 : listconstruct\n",
|
|||
|
"Adding op '547' of type const\n",
|
|||
|
"Converting op 548 : listconstruct\n",
|
|||
|
"Adding op '548' of type const\n",
|
|||
|
"Converting op 549 : listconstruct\n",
|
|||
|
"Adding op '549' of type const\n",
|
|||
|
"Converting op input.99 : _convolution\n",
|
|||
|
"Adding op 'input.99' of type conv\n",
|
|||
|
"Adding op 'input.99_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.99_pad_0' of type const\n",
|
|||
|
"Converting op input.101 : leaky_relu_\n",
|
|||
|
"Adding op 'input.101' of type leaky_relu\n",
|
|||
|
"Converting op 552 : constant\n",
|
|||
|
"Adding op '552' of type const\n",
|
|||
|
"Converting op 553 : constant\n",
|
|||
|
"Adding op '553' of type const\n",
|
|||
|
"Converting op 554 : constant\n",
|
|||
|
"Adding op '554' of type const\n",
|
|||
|
"Converting op 555 : constant\n",
|
|||
|
"Adding op '555' of type const\n",
|
|||
|
"Converting op 556 : constant\n",
|
|||
|
"Adding op '556' of type const\n",
|
|||
|
"Converting op 560 : listconstruct\n",
|
|||
|
"Adding op '560' of type const\n",
|
|||
|
"Converting op 561 : listconstruct\n",
|
|||
|
"Adding op '561' of type const\n",
|
|||
|
"Converting op 562 : listconstruct\n",
|
|||
|
"Adding op '562' of type const\n",
|
|||
|
"Converting op 563 : listconstruct\n",
|
|||
|
"Adding op '563' of type const\n",
|
|||
|
"Converting op input.103 : _convolution\n",
|
|||
|
"Adding op 'input.103' of type conv\n",
|
|||
|
"Adding op 'input.103_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.103_pad_0' of type const\n",
|
|||
|
"Converting op input.105 : leaky_relu_\n",
|
|||
|
"Adding op 'input.105' of type leaky_relu\n",
|
|||
|
"Converting op 566 : constant\n",
|
|||
|
"Adding op '566' of type const\n",
|
|||
|
"Converting op 567 : constant\n",
|
|||
|
"Converting op 568 : listconstruct\n",
|
|||
|
"Adding op '568' of type const\n",
|
|||
|
"Converting op 569 : upsample_nearest2d\n",
|
|||
|
"Adding op '569' of type upsample_nearest_neighbor\n",
|
|||
|
"Adding op '569_scale_factor_height_0' of type const\n",
|
|||
|
"Adding op '569_scale_factor_width_0' of type const\n",
|
|||
|
"Converting op 570 : constant\n",
|
|||
|
"Adding op '570' of type const\n",
|
|||
|
"Converting Frontend ==> MIL Ops: 49% 376/763 [00:00<00:00, 1604.48 ops/s]Converting op 571 : constant\n",
|
|||
|
"Adding op '571' of type const\n",
|
|||
|
"Converting op 572 : constant\n",
|
|||
|
"Adding op '572' of type const\n",
|
|||
|
"Converting op 573 : constant\n",
|
|||
|
"Adding op '573' of type const\n",
|
|||
|
"Converting op 574 : constant\n",
|
|||
|
"Adding op '574' of type const\n",
|
|||
|
"Converting op 578 : listconstruct\n",
|
|||
|
"Adding op '578' of type const\n",
|
|||
|
"Converting op 579 : listconstruct\n",
|
|||
|
"Adding op '579' of type const\n",
|
|||
|
"Converting op 580 : listconstruct\n",
|
|||
|
"Adding op '580' of type const\n",
|
|||
|
"Converting op 581 : listconstruct\n",
|
|||
|
"Adding op '581' of type const\n",
|
|||
|
"Converting op input.107 : _convolution\n",
|
|||
|
"Adding op 'input.107' of type conv\n",
|
|||
|
"Adding op 'input.107_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.107_pad_0' of type const\n",
|
|||
|
"Converting op 583 : leaky_relu_\n",
|
|||
|
"Adding op '583' of type leaky_relu\n",
|
|||
|
"Converting op 584 : constant\n",
|
|||
|
"Adding op '584' of type const\n",
|
|||
|
"Converting op 585 : listconstruct\n",
|
|||
|
"Converting op input.109 : cat\n",
|
|||
|
"Adding op 'input.109' of type concat\n",
|
|||
|
"Adding op 'input.109_interleave_0' of type const\n",
|
|||
|
"Converting op 587 : constant\n",
|
|||
|
"Adding op '587' of type const\n",
|
|||
|
"Converting op 588 : constant\n",
|
|||
|
"Adding op '588' of type const\n",
|
|||
|
"Converting op 589 : constant\n",
|
|||
|
"Adding op '589' of type const\n",
|
|||
|
"Converting op 590 : constant\n",
|
|||
|
"Adding op '590' of type const\n",
|
|||
|
"Converting op 591 : constant\n",
|
|||
|
"Adding op '591' of type const\n",
|
|||
|
"Converting op 595 : listconstruct\n",
|
|||
|
"Adding op '595' of type const\n",
|
|||
|
"Converting op 596 : listconstruct\n",
|
|||
|
"Adding op '596' of type const\n",
|
|||
|
"Converting op 597 : listconstruct\n",
|
|||
|
"Adding op '597' of type const\n",
|
|||
|
"Converting op 598 : listconstruct\n",
|
|||
|
"Adding op '598' of type const\n",
|
|||
|
"Converting op input.111 : _convolution\n",
|
|||
|
"Adding op 'input.111' of type conv\n",
|
|||
|
"Adding op 'input.111_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.111_pad_0' of type const\n",
|
|||
|
"Converting op 600 : leaky_relu_\n",
|
|||
|
"Adding op '600' of type leaky_relu\n",
|
|||
|
"Converting op 601 : constant\n",
|
|||
|
"Adding op '601' of type const\n",
|
|||
|
"Converting op 602 : constant\n",
|
|||
|
"Adding op '602' of type const\n",
|
|||
|
"Converting op 603 : constant\n",
|
|||
|
"Adding op '603' of type const\n",
|
|||
|
"Converting op 604 : constant\n",
|
|||
|
"Adding op '604' of type const\n",
|
|||
|
"Converting op 605 : constant\n",
|
|||
|
"Adding op '605' of type const\n",
|
|||
|
"Converting op 609 : listconstruct\n",
|
|||
|
"Adding op '609' of type const\n",
|
|||
|
"Converting op 610 : listconstruct\n",
|
|||
|
"Adding op '610' of type const\n",
|
|||
|
"Converting op 611 : listconstruct\n",
|
|||
|
"Adding op '611' of type const\n",
|
|||
|
"Converting op 612 : listconstruct\n",
|
|||
|
"Adding op '612' of type const\n",
|
|||
|
"Converting op input.113 : _convolution\n",
|
|||
|
"Adding op 'input.113' of type conv\n",
|
|||
|
"Adding op 'input.113_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.113_pad_0' of type const\n",
|
|||
|
"Converting op input.115 : leaky_relu_\n",
|
|||
|
"Adding op 'input.115' of type leaky_relu\n",
|
|||
|
"Converting op 615 : constant\n",
|
|||
|
"Adding op '615' of type const\n",
|
|||
|
"Converting op 616 : constant\n",
|
|||
|
"Adding op '616' of type const\n",
|
|||
|
"Converting op 617 : constant\n",
|
|||
|
"Adding op '617' of type const\n",
|
|||
|
"Converting op 618 : constant\n",
|
|||
|
"Adding op '618' of type const\n",
|
|||
|
"Converting op 619 : constant\n",
|
|||
|
"Adding op '619' of type const\n",
|
|||
|
"Converting op 623 : listconstruct\n",
|
|||
|
"Adding op '623' of type const\n",
|
|||
|
"Converting op 624 : listconstruct\n",
|
|||
|
"Adding op '624' of type const\n",
|
|||
|
"Converting op 625 : listconstruct\n",
|
|||
|
"Adding op '625' of type const\n",
|
|||
|
"Converting op 626 : listconstruct\n",
|
|||
|
"Adding op '626' of type const\n",
|
|||
|
"Converting op input.117 : _convolution\n",
|
|||
|
"Adding op 'input.117' of type conv\n",
|
|||
|
"Adding op 'input.117_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.117_pad_0' of type const\n",
|
|||
|
"Converting op input.119 : leaky_relu_\n",
|
|||
|
"Adding op 'input.119' of type leaky_relu\n",
|
|||
|
"Converting op 629 : constant\n",
|
|||
|
"Adding op '629' of type const\n",
|
|||
|
"Converting op 630 : constant\n",
|
|||
|
"Adding op '630' of type const\n",
|
|||
|
"Converting op 631 : constant\n",
|
|||
|
"Adding op '631' of type const\n",
|
|||
|
"Converting op 632 : constant\n",
|
|||
|
"Adding op '632' of type const\n",
|
|||
|
"Converting op 633 : constant\n",
|
|||
|
"Adding op '633' of type const\n",
|
|||
|
"Converting op 637 : listconstruct\n",
|
|||
|
"Adding op '637' of type const\n",
|
|||
|
"Converting op 638 : listconstruct\n",
|
|||
|
"Adding op '638' of type const\n",
|
|||
|
"Converting op 639 : listconstruct\n",
|
|||
|
"Adding op '639' of type const\n",
|
|||
|
"Converting op 640 : listconstruct\n",
|
|||
|
"Adding op '640' of type const\n",
|
|||
|
"Converting op input.121 : _convolution\n",
|
|||
|
"Adding op 'input.121' of type conv\n",
|
|||
|
"Adding op 'input.121_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.121_pad_0' of type const\n",
|
|||
|
"Converting op 642 : leaky_relu_\n",
|
|||
|
"Adding op '642' of type leaky_relu\n",
|
|||
|
"Converting op 643 : constant\n",
|
|||
|
"Adding op '643' of type const\n",
|
|||
|
"Converting op 644 : listconstruct\n",
|
|||
|
"Converting op input.123 : cat\n",
|
|||
|
"Adding op 'input.123' of type concat\n",
|
|||
|
"Adding op 'input.123_interleave_0' of type const\n",
|
|||
|
"Converting op 646 : constant\n",
|
|||
|
"Adding op '646' of type const\n",
|
|||
|
"Converting op 647 : constant\n",
|
|||
|
"Adding op '647' of type const\n",
|
|||
|
"Converting op 648 : constant\n",
|
|||
|
"Adding op '648' of type const\n",
|
|||
|
"Converting op 649 : constant\n",
|
|||
|
"Adding op '649' of type const\n",
|
|||
|
"Converting op 650 : constant\n",
|
|||
|
"Adding op '650' of type const\n",
|
|||
|
"Converting op 654 : listconstruct\n",
|
|||
|
"Adding op '654' of type const\n",
|
|||
|
"Converting op 655 : listconstruct\n",
|
|||
|
"Adding op '655' of type const\n",
|
|||
|
"Converting op 656 : listconstruct\n",
|
|||
|
"Adding op '656' of type const\n",
|
|||
|
"Converting op 657 : listconstruct\n",
|
|||
|
"Adding op '657' of type const\n",
|
|||
|
"Converting op input.125 : _convolution\n",
|
|||
|
"Adding op 'input.125' of type conv\n",
|
|||
|
"Adding op 'input.125_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.125_pad_0' of type const\n",
|
|||
|
"Converting op input.127 : leaky_relu_\n",
|
|||
|
"Adding op 'input.127' of type leaky_relu\n",
|
|||
|
"Converting op 660 : constant\n",
|
|||
|
"Adding op '660' of type const\n",
|
|||
|
"Converting op 661 : constant\n",
|
|||
|
"Adding op '661' of type const\n",
|
|||
|
"Converting op 662 : constant\n",
|
|||
|
"Adding op '662' of type const\n",
|
|||
|
"Converting op 663 : constant\n",
|
|||
|
"Adding op '663' of type const\n",
|
|||
|
"Converting op 664 : constant\n",
|
|||
|
"Adding op '664' of type const\n",
|
|||
|
"Converting op 668 : listconstruct\n",
|
|||
|
"Adding op '668' of type const\n",
|
|||
|
"Converting op 669 : listconstruct\n",
|
|||
|
"Adding op '669' of type const\n",
|
|||
|
"Converting op 670 : listconstruct\n",
|
|||
|
"Adding op '670' of type const\n",
|
|||
|
"Converting op 671 : listconstruct\n",
|
|||
|
"Adding op '671' of type const\n",
|
|||
|
"Converting op input.129 : _convolution\n",
|
|||
|
"Adding op 'input.129' of type conv\n",
|
|||
|
"Adding op 'input.129_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.129_pad_0' of type const\n",
|
|||
|
"Converting op input.131 : leaky_relu_\n",
|
|||
|
"Adding op 'input.131' of type leaky_relu\n",
|
|||
|
"Converting op 674 : constant\n",
|
|||
|
"Adding op '674' of type const\n",
|
|||
|
"Converting op 675 : constant\n",
|
|||
|
"Converting op 676 : listconstruct\n",
|
|||
|
"Adding op '676' of type const\n",
|
|||
|
"Converting op 677 : upsample_nearest2d\n",
|
|||
|
"Adding op '677' of type upsample_nearest_neighbor\n",
|
|||
|
"Adding op '677_scale_factor_height_0' of type const\n",
|
|||
|
"Adding op '677_scale_factor_width_0' of type const\n",
|
|||
|
"Converting op 678 : constant\n",
|
|||
|
"Adding op '678' of type const\n",
|
|||
|
"Converting op 679 : constant\n",
|
|||
|
"Adding op '679' of type const\n",
|
|||
|
"Converting op 680 : constant\n",
|
|||
|
"Adding op '680' of type const\n",
|
|||
|
"Converting op 681 : constant\n",
|
|||
|
"Adding op '681' of type const\n",
|
|||
|
"Converting op 682 : constant\n",
|
|||
|
"Adding op '682' of type const\n",
|
|||
|
"Converting op 686 : listconstruct\n",
|
|||
|
"Adding op '686' of type const\n",
|
|||
|
"Converting op 687 : listconstruct\n",
|
|||
|
"Adding op '687' of type const\n",
|
|||
|
"Converting op 688 : listconstruct\n",
|
|||
|
"Adding op '688' of type const\n",
|
|||
|
"Converting op 689 : listconstruct\n",
|
|||
|
"Adding op '689' of type const\n",
|
|||
|
"Converting op input.133 : _convolution\n",
|
|||
|
"Adding op 'input.133' of type conv\n",
|
|||
|
"Adding op 'input.133_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.133_pad_0' of type const\n",
|
|||
|
"Converting op 691 : leaky_relu_\n",
|
|||
|
"Adding op '691' of type leaky_relu\n",
|
|||
|
"Converting op 692 : constant\n",
|
|||
|
"Adding op '692' of type const\n",
|
|||
|
"Converting op 693 : listconstruct\n",
|
|||
|
"Converting op input.135 : cat\n",
|
|||
|
"Adding op 'input.135' of type concat\n",
|
|||
|
"Adding op 'input.135_interleave_0' of type const\n",
|
|||
|
"Converting op 695 : constant\n",
|
|||
|
"Adding op '695' of type const\n",
|
|||
|
"Converting op 696 : constant\n",
|
|||
|
"Adding op '696' of type const\n",
|
|||
|
"Converting op 697 : constant\n",
|
|||
|
"Adding op '697' of type const\n",
|
|||
|
"Converting op 698 : constant\n",
|
|||
|
"Adding op '698' of type const\n",
|
|||
|
"Converting op 699 : constant\n",
|
|||
|
"Adding op '699' of type const\n",
|
|||
|
"Converting op 703 : listconstruct\n",
|
|||
|
"Adding op '703' of type const\n",
|
|||
|
"Converting op 704 : listconstruct\n",
|
|||
|
"Adding op '704' of type const\n",
|
|||
|
"Converting op 705 : listconstruct\n",
|
|||
|
"Adding op '705' of type const\n",
|
|||
|
"Converting op 706 : listconstruct\n",
|
|||
|
"Adding op '706' of type const\n",
|
|||
|
"Converting op input.137 : _convolution\n",
|
|||
|
"Adding op 'input.137' of type conv\n",
|
|||
|
"Adding op 'input.137_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.137_pad_0' of type const\n",
|
|||
|
"Converting op 708 : leaky_relu_\n",
|
|||
|
"Adding op '708' of type leaky_relu\n",
|
|||
|
"Converting op 709 : constant\n",
|
|||
|
"Adding op '709' of type const\n",
|
|||
|
"Converting op 710 : constant\n",
|
|||
|
"Adding op '710' of type const\n",
|
|||
|
"Converting op 711 : constant\n",
|
|||
|
"Adding op '711' of type const\n",
|
|||
|
"Converting op 712 : constant\n",
|
|||
|
"Adding op '712' of type const\n",
|
|||
|
"Converting op 713 : constant\n",
|
|||
|
"Adding op '713' of type const\n",
|
|||
|
"Converting op 717 : listconstruct\n",
|
|||
|
"Adding op '717' of type const\n",
|
|||
|
"Converting op 718 : listconstruct\n",
|
|||
|
"Adding op '718' of type const\n",
|
|||
|
"Converting op 719 : listconstruct\n",
|
|||
|
"Adding op '719' of type const\n",
|
|||
|
"Converting op 720 : listconstruct\n",
|
|||
|
"Adding op '720' of type const\n",
|
|||
|
"Converting op input.139 : _convolution\n",
|
|||
|
"Adding op 'input.139' of type conv\n",
|
|||
|
"Adding op 'input.139_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.139_pad_0' of type const\n",
|
|||
|
"Converting op input.141 : leaky_relu_\n",
|
|||
|
"Adding op 'input.141' of type leaky_relu\n",
|
|||
|
"Converting op 723 : constant\n",
|
|||
|
"Adding op '723' of type const\n",
|
|||
|
"Converting op 724 : constant\n",
|
|||
|
"Adding op '724' of type const\n",
|
|||
|
"Converting op 725 : constant\n",
|
|||
|
"Adding op '725' of type const\n",
|
|||
|
"Converting op 726 : constant\n",
|
|||
|
"Adding op '726' of type const\n",
|
|||
|
"Converting op 727 : constant\n",
|
|||
|
"Adding op '727' of type const\n",
|
|||
|
"Converting op 731 : listconstruct\n",
|
|||
|
"Adding op '731' of type const\n",
|
|||
|
"Converting op 732 : listconstruct\n",
|
|||
|
"Adding op '732' of type const\n",
|
|||
|
"Converting op 733 : listconstruct\n",
|
|||
|
"Adding op '733' of type const\n",
|
|||
|
"Converting op 734 : listconstruct\n",
|
|||
|
"Adding op '734' of type const\n",
|
|||
|
"Converting op input.143 : _convolution\n",
|
|||
|
"Adding op 'input.143' of type conv\n",
|
|||
|
"Adding op 'input.143_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.143_pad_0' of type const\n",
|
|||
|
"Converting op input.145 : leaky_relu_\n",
|
|||
|
"Adding op 'input.145' of type leaky_relu\n",
|
|||
|
"Converting op 737 : constant\n",
|
|||
|
"Adding op '737' of type const\n",
|
|||
|
"Converting op 738 : constant\n",
|
|||
|
"Adding op '738' of type const\n",
|
|||
|
"Converting op 739 : constant\n",
|
|||
|
"Adding op '739' of type const\n",
|
|||
|
"Converting op 740 : constant\n",
|
|||
|
"Adding op '740' of type const\n",
|
|||
|
"Converting op 741 : constant\n",
|
|||
|
"Adding op '741' of type const\n",
|
|||
|
"Converting op 745 : listconstruct\n",
|
|||
|
"Adding op '745' of type const\n",
|
|||
|
"Converting op 746 : listconstruct\n",
|
|||
|
"Adding op '746' of type const\n",
|
|||
|
"Converting op 747 : listconstruct\n",
|
|||
|
"Adding op '747' of type const\n",
|
|||
|
"Converting op 748 : listconstruct\n",
|
|||
|
"Adding op '748' of type const\n",
|
|||
|
"Converting op input.147 : _convolution\n",
|
|||
|
"Adding op 'input.147' of type conv\n",
|
|||
|
"Adding op 'input.147_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.147_pad_0' of type const\n",
|
|||
|
"Converting op 750 : leaky_relu_\n",
|
|||
|
"Adding op '750' of type leaky_relu\n",
|
|||
|
"Converting op 751 : constant\n",
|
|||
|
"Adding op '751' of type const\n",
|
|||
|
"Converting op 752 : listconstruct\n",
|
|||
|
"Converting op input.149 : cat\n",
|
|||
|
"Adding op 'input.149' of type concat\n",
|
|||
|
"Adding op 'input.149_interleave_0' of type const\n",
|
|||
|
"Converting op 754 : constant\n",
|
|||
|
"Adding op '754' of type const\n",
|
|||
|
"Converting op 755 : constant\n",
|
|||
|
"Adding op '755' of type const\n",
|
|||
|
"Converting op 756 : constant\n",
|
|||
|
"Adding op '756' of type const\n",
|
|||
|
"Converting op 757 : constant\n",
|
|||
|
"Adding op '757' of type const\n",
|
|||
|
"Converting op 758 : constant\n",
|
|||
|
"Adding op '758' of type const\n",
|
|||
|
"Converting op 762 : listconstruct\n",
|
|||
|
"Adding op '762' of type const\n",
|
|||
|
"Converting op 763 : listconstruct\n",
|
|||
|
"Adding op '763' of type const\n",
|
|||
|
"Converting op 764 : listconstruct\n",
|
|||
|
"Adding op '764' of type const\n",
|
|||
|
"Converting op 765 : listconstruct\n",
|
|||
|
"Adding op '765' of type const\n",
|
|||
|
"Converting op input.151 : _convolution\n",
|
|||
|
"Adding op 'input.151' of type conv\n",
|
|||
|
"Adding op 'input.151_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.151_pad_0' of type const\n",
|
|||
|
"Converting op input.153 : leaky_relu_\n",
|
|||
|
"Adding op 'input.153' of type leaky_relu\n",
|
|||
|
"Converting op 768 : constant\n",
|
|||
|
"Adding op '768' of type const\n",
|
|||
|
"Converting op 769 : constant\n",
|
|||
|
"Adding op '769' of type const\n",
|
|||
|
"Converting op 770 : constant\n",
|
|||
|
"Adding op '770' of type const\n",
|
|||
|
"Converting op 771 : constant\n",
|
|||
|
"Adding op '771' of type const\n",
|
|||
|
"Converting op 772 : constant\n",
|
|||
|
"Adding op '772' of type const\n",
|
|||
|
"Converting Frontend ==> MIL Ops: 71% 539/763 [00:00<00:00, 1365.08 ops/s]Converting op 773 : constant\n",
|
|||
|
"Adding op '773' of type const\n",
|
|||
|
"Converting op 777 : listconstruct\n",
|
|||
|
"Adding op '777' of type const\n",
|
|||
|
"Converting op 778 : listconstruct\n",
|
|||
|
"Adding op '778' of type const\n",
|
|||
|
"Converting op 779 : listconstruct\n",
|
|||
|
"Adding op '779' of type const\n",
|
|||
|
"Converting op 780 : listconstruct\n",
|
|||
|
"Adding op '780' of type const\n",
|
|||
|
"Converting op input.155 : _convolution\n",
|
|||
|
"Adding op 'input.155' of type conv\n",
|
|||
|
"Adding op 'input.155_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.155_pad_0' of type const\n",
|
|||
|
"Converting op 782 : leaky_relu_\n",
|
|||
|
"Adding op '782' of type leaky_relu\n",
|
|||
|
"Converting op 783 : constant\n",
|
|||
|
"Adding op '783' of type const\n",
|
|||
|
"Converting op 784 : listconstruct\n",
|
|||
|
"Converting op input.157 : cat\n",
|
|||
|
"Adding op 'input.157' of type concat\n",
|
|||
|
"Adding op 'input.157_interleave_0' of type const\n",
|
|||
|
"Converting op 786 : constant\n",
|
|||
|
"Adding op '786' of type const\n",
|
|||
|
"Converting op 787 : constant\n",
|
|||
|
"Adding op '787' of type const\n",
|
|||
|
"Converting op 788 : constant\n",
|
|||
|
"Adding op '788' of type const\n",
|
|||
|
"Converting op 789 : constant\n",
|
|||
|
"Adding op '789' of type const\n",
|
|||
|
"Converting op 790 : constant\n",
|
|||
|
"Adding op '790' of type const\n",
|
|||
|
"Converting op 794 : listconstruct\n",
|
|||
|
"Adding op '794' of type const\n",
|
|||
|
"Converting op 795 : listconstruct\n",
|
|||
|
"Adding op '795' of type const\n",
|
|||
|
"Converting op 796 : listconstruct\n",
|
|||
|
"Adding op '796' of type const\n",
|
|||
|
"Converting op 797 : listconstruct\n",
|
|||
|
"Adding op '797' of type const\n",
|
|||
|
"Converting op input.159 : _convolution\n",
|
|||
|
"Adding op 'input.159' of type conv\n",
|
|||
|
"Adding op 'input.159_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.159_pad_0' of type const\n",
|
|||
|
"Converting op 799 : leaky_relu_\n",
|
|||
|
"Adding op '799' of type leaky_relu\n",
|
|||
|
"Converting op 800 : constant\n",
|
|||
|
"Adding op '800' of type const\n",
|
|||
|
"Converting op 801 : constant\n",
|
|||
|
"Adding op '801' of type const\n",
|
|||
|
"Converting op 802 : constant\n",
|
|||
|
"Adding op '802' of type const\n",
|
|||
|
"Converting op 803 : constant\n",
|
|||
|
"Adding op '803' of type const\n",
|
|||
|
"Converting op 804 : constant\n",
|
|||
|
"Adding op '804' of type const\n",
|
|||
|
"Converting op 808 : listconstruct\n",
|
|||
|
"Adding op '808' of type const\n",
|
|||
|
"Converting op 809 : listconstruct\n",
|
|||
|
"Adding op '809' of type const\n",
|
|||
|
"Converting op 810 : listconstruct\n",
|
|||
|
"Adding op '810' of type const\n",
|
|||
|
"Converting op 811 : listconstruct\n",
|
|||
|
"Adding op '811' of type const\n",
|
|||
|
"Converting op input.161 : _convolution\n",
|
|||
|
"Adding op 'input.161' of type conv\n",
|
|||
|
"Adding op 'input.161_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.161_pad_0' of type const\n",
|
|||
|
"Converting op input.163 : leaky_relu_\n",
|
|||
|
"Adding op 'input.163' of type leaky_relu\n",
|
|||
|
"Converting op 814 : constant\n",
|
|||
|
"Adding op '814' of type const\n",
|
|||
|
"Converting op 815 : constant\n",
|
|||
|
"Adding op '815' of type const\n",
|
|||
|
"Converting op 816 : constant\n",
|
|||
|
"Adding op '816' of type const\n",
|
|||
|
"Converting op 817 : constant\n",
|
|||
|
"Adding op '817' of type const\n",
|
|||
|
"Converting op 818 : constant\n",
|
|||
|
"Adding op '818' of type const\n",
|
|||
|
"Converting op 822 : listconstruct\n",
|
|||
|
"Adding op '822' of type const\n",
|
|||
|
"Converting op 823 : listconstruct\n",
|
|||
|
"Adding op '823' of type const\n",
|
|||
|
"Converting op 824 : listconstruct\n",
|
|||
|
"Adding op '824' of type const\n",
|
|||
|
"Converting op 825 : listconstruct\n",
|
|||
|
"Adding op '825' of type const\n",
|
|||
|
"Converting op input.165 : _convolution\n",
|
|||
|
"Adding op 'input.165' of type conv\n",
|
|||
|
"Adding op 'input.165_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.165_pad_0' of type const\n",
|
|||
|
"Converting op input.167 : leaky_relu_\n",
|
|||
|
"Adding op 'input.167' of type leaky_relu\n",
|
|||
|
"Converting op 828 : constant\n",
|
|||
|
"Adding op '828' of type const\n",
|
|||
|
"Converting op 829 : constant\n",
|
|||
|
"Adding op '829' of type const\n",
|
|||
|
"Converting op 830 : constant\n",
|
|||
|
"Adding op '830' of type const\n",
|
|||
|
"Converting op 831 : constant\n",
|
|||
|
"Adding op '831' of type const\n",
|
|||
|
"Converting op 832 : constant\n",
|
|||
|
"Adding op '832' of type const\n",
|
|||
|
"Converting op 836 : listconstruct\n",
|
|||
|
"Adding op '836' of type const\n",
|
|||
|
"Converting op 837 : listconstruct\n",
|
|||
|
"Adding op '837' of type const\n",
|
|||
|
"Converting op 838 : listconstruct\n",
|
|||
|
"Adding op '838' of type const\n",
|
|||
|
"Converting op 839 : listconstruct\n",
|
|||
|
"Adding op '839' of type const\n",
|
|||
|
"Converting op input.169 : _convolution\n",
|
|||
|
"Adding op 'input.169' of type conv\n",
|
|||
|
"Adding op 'input.169_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.169_pad_0' of type const\n",
|
|||
|
"Converting op 841 : leaky_relu_\n",
|
|||
|
"Adding op '841' of type leaky_relu\n",
|
|||
|
"Converting op 842 : constant\n",
|
|||
|
"Adding op '842' of type const\n",
|
|||
|
"Converting op 843 : listconstruct\n",
|
|||
|
"Converting op input.171 : cat\n",
|
|||
|
"Adding op 'input.171' of type concat\n",
|
|||
|
"Adding op 'input.171_interleave_0' of type const\n",
|
|||
|
"Converting op 845 : constant\n",
|
|||
|
"Adding op '845' of type const\n",
|
|||
|
"Converting op 846 : constant\n",
|
|||
|
"Adding op '846' of type const\n",
|
|||
|
"Converting op 847 : constant\n",
|
|||
|
"Adding op '847' of type const\n",
|
|||
|
"Converting op 848 : constant\n",
|
|||
|
"Adding op '848' of type const\n",
|
|||
|
"Converting op 849 : constant\n",
|
|||
|
"Adding op '849' of type const\n",
|
|||
|
"Converting op 853 : listconstruct\n",
|
|||
|
"Adding op '853' of type const\n",
|
|||
|
"Converting op 854 : listconstruct\n",
|
|||
|
"Adding op '854' of type const\n",
|
|||
|
"Converting op 855 : listconstruct\n",
|
|||
|
"Adding op '855' of type const\n",
|
|||
|
"Converting op 856 : listconstruct\n",
|
|||
|
"Adding op '856' of type const\n",
|
|||
|
"Converting op input.173 : _convolution\n",
|
|||
|
"Adding op 'input.173' of type conv\n",
|
|||
|
"Adding op 'input.173_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.173_pad_0' of type const\n",
|
|||
|
"Converting op input.175 : leaky_relu_\n",
|
|||
|
"Adding op 'input.175' of type leaky_relu\n",
|
|||
|
"Converting op 859 : constant\n",
|
|||
|
"Adding op '859' of type const\n",
|
|||
|
"Converting op 860 : constant\n",
|
|||
|
"Adding op '860' of type const\n",
|
|||
|
"Converting op 861 : constant\n",
|
|||
|
"Adding op '861' of type const\n",
|
|||
|
"Converting op 862 : constant\n",
|
|||
|
"Adding op '862' of type const\n",
|
|||
|
"Converting op 863 : constant\n",
|
|||
|
"Adding op '863' of type const\n",
|
|||
|
"Converting op 864 : constant\n",
|
|||
|
"Adding op '864' of type const\n",
|
|||
|
"Converting op 868 : listconstruct\n",
|
|||
|
"Adding op '868' of type const\n",
|
|||
|
"Converting op 869 : listconstruct\n",
|
|||
|
"Adding op '869' of type const\n",
|
|||
|
"Converting op 870 : listconstruct\n",
|
|||
|
"Adding op '870' of type const\n",
|
|||
|
"Converting op 871 : listconstruct\n",
|
|||
|
"Adding op '871' of type const\n",
|
|||
|
"Converting op input.177 : _convolution\n",
|
|||
|
"Adding op 'input.177' of type conv\n",
|
|||
|
"Adding op 'input.177_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.177_pad_0' of type const\n",
|
|||
|
"Converting op 873 : leaky_relu_\n",
|
|||
|
"Adding op '873' of type leaky_relu\n",
|
|||
|
"Converting op 874 : constant\n",
|
|||
|
"Adding op '874' of type const\n",
|
|||
|
"Converting op 875 : listconstruct\n",
|
|||
|
"Converting op input.179 : cat\n",
|
|||
|
"Adding op 'input.179' of type concat\n",
|
|||
|
"Adding op 'input.179_interleave_0' of type const\n",
|
|||
|
"Converting op 877 : constant\n",
|
|||
|
"Adding op '877' of type const\n",
|
|||
|
"Converting op 878 : constant\n",
|
|||
|
"Adding op '878' of type const\n",
|
|||
|
"Converting op 879 : constant\n",
|
|||
|
"Adding op '879' of type const\n",
|
|||
|
"Converting op 880 : constant\n",
|
|||
|
"Adding op '880' of type const\n",
|
|||
|
"Converting op 881 : constant\n",
|
|||
|
"Adding op '881' of type const\n",
|
|||
|
"Converting op 885 : listconstruct\n",
|
|||
|
"Adding op '885' of type const\n",
|
|||
|
"Converting op 886 : listconstruct\n",
|
|||
|
"Adding op '886' of type const\n",
|
|||
|
"Converting op 887 : listconstruct\n",
|
|||
|
"Adding op '887' of type const\n",
|
|||
|
"Converting op 888 : listconstruct\n",
|
|||
|
"Adding op '888' of type const\n",
|
|||
|
"Converting op input.181 : _convolution\n",
|
|||
|
"Adding op 'input.181' of type conv\n",
|
|||
|
"Adding op 'input.181_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.181_pad_0' of type const\n",
|
|||
|
"Converting op 890 : leaky_relu_\n",
|
|||
|
"Adding op '890' of type leaky_relu\n",
|
|||
|
"Converting op 891 : constant\n",
|
|||
|
"Adding op '891' of type const\n",
|
|||
|
"Converting op 892 : constant\n",
|
|||
|
"Adding op '892' of type const\n",
|
|||
|
"Converting op 893 : constant\n",
|
|||
|
"Adding op '893' of type const\n",
|
|||
|
"Converting op 894 : constant\n",
|
|||
|
"Adding op '894' of type const\n",
|
|||
|
"Converting op 895 : constant\n",
|
|||
|
"Adding op '895' of type const\n",
|
|||
|
"Converting op 899 : listconstruct\n",
|
|||
|
"Adding op '899' of type const\n",
|
|||
|
"Converting op 900 : listconstruct\n",
|
|||
|
"Adding op '900' of type const\n",
|
|||
|
"Converting op 901 : listconstruct\n",
|
|||
|
"Adding op '901' of type const\n",
|
|||
|
"Converting op 902 : listconstruct\n",
|
|||
|
"Adding op '902' of type const\n",
|
|||
|
"Converting op input.183 : _convolution\n",
|
|||
|
"Adding op 'input.183' of type conv\n",
|
|||
|
"Adding op 'input.183_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.183_pad_0' of type const\n",
|
|||
|
"Converting op input.185 : leaky_relu_\n",
|
|||
|
"Adding op 'input.185' of type leaky_relu\n",
|
|||
|
"Converting op 905 : constant\n",
|
|||
|
"Adding op '905' of type const\n",
|
|||
|
"Converting op 906 : constant\n",
|
|||
|
"Adding op '906' of type const\n",
|
|||
|
"Converting op 907 : constant\n",
|
|||
|
"Adding op '907' of type const\n",
|
|||
|
"Converting op 908 : constant\n",
|
|||
|
"Adding op '908' of type const\n",
|
|||
|
"Converting op 909 : constant\n",
|
|||
|
"Adding op '909' of type const\n",
|
|||
|
"Converting op 913 : listconstruct\n",
|
|||
|
"Adding op '913' of type const\n",
|
|||
|
"Converting op 914 : listconstruct\n",
|
|||
|
"Adding op '914' of type const\n",
|
|||
|
"Converting op 915 : listconstruct\n",
|
|||
|
"Adding op '915' of type const\n",
|
|||
|
"Converting op 916 : listconstruct\n",
|
|||
|
"Adding op '916' of type const\n",
|
|||
|
"Converting op input.187 : _convolution\n",
|
|||
|
"Adding op 'input.187' of type conv\n",
|
|||
|
"Adding op 'input.187_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.187_pad_0' of type const\n",
|
|||
|
"Converting op input.189 : leaky_relu_\n",
|
|||
|
"Adding op 'input.189' of type leaky_relu\n",
|
|||
|
"Converting op 919 : constant\n",
|
|||
|
"Adding op '919' of type const\n",
|
|||
|
"Converting op 920 : constant\n",
|
|||
|
"Adding op '920' of type const\n",
|
|||
|
"Converting op 921 : constant\n",
|
|||
|
"Adding op '921' of type const\n",
|
|||
|
"Converting op 922 : constant\n",
|
|||
|
"Adding op '922' of type const\n",
|
|||
|
"Converting op 923 : constant\n",
|
|||
|
"Adding op '923' of type const\n",
|
|||
|
"Converting op 927 : listconstruct\n",
|
|||
|
"Adding op '927' of type const\n",
|
|||
|
"Converting op 928 : listconstruct\n",
|
|||
|
"Adding op '928' of type const\n",
|
|||
|
"Converting op 929 : listconstruct\n",
|
|||
|
"Adding op '929' of type const\n",
|
|||
|
"Converting op 930 : listconstruct\n",
|
|||
|
"Adding op '930' of type const\n",
|
|||
|
"Converting op input.191 : _convolution\n",
|
|||
|
"Adding op 'input.191' of type conv\n",
|
|||
|
"Adding op 'input.191_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.191_pad_0' of type const\n",
|
|||
|
"Converting op 932 : leaky_relu_\n",
|
|||
|
"Adding op '932' of type leaky_relu\n",
|
|||
|
"Converting op 933 : constant\n",
|
|||
|
"Adding op '933' of type const\n",
|
|||
|
"Converting op 934 : listconstruct\n",
|
|||
|
"Converting op input.193 : cat\n",
|
|||
|
"Adding op 'input.193' of type concat\n",
|
|||
|
"Adding op 'input.193_interleave_0' of type const\n",
|
|||
|
"Converting op 936 : constant\n",
|
|||
|
"Adding op '936' of type const\n",
|
|||
|
"Converting op 937 : constant\n",
|
|||
|
"Adding op '937' of type const\n",
|
|||
|
"Converting op 938 : constant\n",
|
|||
|
"Adding op '938' of type const\n",
|
|||
|
"Converting op 939 : constant\n",
|
|||
|
"Adding op '939' of type const\n",
|
|||
|
"Converting op 940 : constant\n",
|
|||
|
"Adding op '940' of type const\n",
|
|||
|
"Converting op 944 : listconstruct\n",
|
|||
|
"Adding op '944' of type const\n",
|
|||
|
"Converting op 945 : listconstruct\n",
|
|||
|
"Adding op '945' of type const\n",
|
|||
|
"Converting op 946 : listconstruct\n",
|
|||
|
"Adding op '946' of type const\n",
|
|||
|
"Converting op 947 : listconstruct\n",
|
|||
|
"Adding op '947' of type const\n",
|
|||
|
"Converting op input.195 : _convolution\n",
|
|||
|
"Adding op 'input.195' of type conv\n",
|
|||
|
"Adding op 'input.195_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.195_pad_0' of type const\n",
|
|||
|
"Converting op input.201 : leaky_relu_\n",
|
|||
|
"Adding op 'input.201' of type leaky_relu\n",
|
|||
|
"Converting Frontend ==> MIL Ops: 89% 680/763 [00:00<00:00, 1211.57 ops/s]Converting op 950 : constant\n",
|
|||
|
"Adding op '950' of type const\n",
|
|||
|
"Converting op 951 : constant\n",
|
|||
|
"Adding op '951' of type const\n",
|
|||
|
"Converting op 952 : constant\n",
|
|||
|
"Adding op '952' of type const\n",
|
|||
|
"Converting op 953 : constant\n",
|
|||
|
"Adding op '953' of type const\n",
|
|||
|
"Converting op 954 : constant\n",
|
|||
|
"Adding op '954' of type const\n",
|
|||
|
"Converting op 958 : listconstruct\n",
|
|||
|
"Adding op '958' of type const\n",
|
|||
|
"Converting op 959 : listconstruct\n",
|
|||
|
"Adding op '959' of type const\n",
|
|||
|
"Converting op 960 : listconstruct\n",
|
|||
|
"Adding op '960' of type const\n",
|
|||
|
"Converting op 961 : listconstruct\n",
|
|||
|
"Adding op '961' of type const\n",
|
|||
|
"Converting op input.197 : _convolution\n",
|
|||
|
"Adding op 'input.197' of type conv\n",
|
|||
|
"Adding op 'input.197_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.197_pad_0' of type const\n",
|
|||
|
"Converting op input.205 : leaky_relu_\n",
|
|||
|
"Adding op 'input.205' of type leaky_relu\n",
|
|||
|
"Converting op 964 : constant\n",
|
|||
|
"Adding op '964' of type const\n",
|
|||
|
"Converting op 965 : constant\n",
|
|||
|
"Adding op '965' of type const\n",
|
|||
|
"Converting op 966 : constant\n",
|
|||
|
"Adding op '966' of type const\n",
|
|||
|
"Converting op 967 : constant\n",
|
|||
|
"Adding op '967' of type const\n",
|
|||
|
"Converting op 968 : constant\n",
|
|||
|
"Adding op '968' of type const\n",
|
|||
|
"Converting op 972 : listconstruct\n",
|
|||
|
"Adding op '972' of type const\n",
|
|||
|
"Converting op 973 : listconstruct\n",
|
|||
|
"Adding op '973' of type const\n",
|
|||
|
"Converting op 974 : listconstruct\n",
|
|||
|
"Adding op '974' of type const\n",
|
|||
|
"Converting op 975 : listconstruct\n",
|
|||
|
"Adding op '975' of type const\n",
|
|||
|
"Converting op input.199 : _convolution\n",
|
|||
|
"Adding op 'input.199' of type conv\n",
|
|||
|
"Adding op 'input.199_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.199_pad_0' of type const\n",
|
|||
|
"Converting op input.207 : leaky_relu_\n",
|
|||
|
"Adding op 'input.207' of type leaky_relu\n",
|
|||
|
"Converting op 978 : constant\n",
|
|||
|
"Adding op '978' of type const\n",
|
|||
|
"Converting op 979 : constant\n",
|
|||
|
"Adding op '979' of type const\n",
|
|||
|
"Converting op 980 : constant\n",
|
|||
|
"Adding op '980' of type const\n",
|
|||
|
"Converting op 981 : constant\n",
|
|||
|
"Adding op '981' of type const\n",
|
|||
|
"Converting op 982 : constant\n",
|
|||
|
"Adding op '982' of type const\n",
|
|||
|
"Converting op 986 : listconstruct\n",
|
|||
|
"Adding op '986' of type const\n",
|
|||
|
"Converting op 987 : listconstruct\n",
|
|||
|
"Adding op '987' of type const\n",
|
|||
|
"Converting op 988 : listconstruct\n",
|
|||
|
"Adding op '988' of type const\n",
|
|||
|
"Converting op 989 : listconstruct\n",
|
|||
|
"Adding op '989' of type const\n",
|
|||
|
"Converting op input.203 : _convolution\n",
|
|||
|
"Adding op 'input.203' of type conv\n",
|
|||
|
"Adding op 'input.203_pad_type_0' of type const\n",
|
|||
|
"Adding op 'input.203_pad_0' of type const\n",
|
|||
|
"Converting op input : leaky_relu_\n",
|
|||
|
"Adding op 'input' of type leaky_relu\n",
|
|||
|
"Converting op 992 : constant\n",
|
|||
|
"Adding op '992' of type const\n",
|
|||
|
"Converting op 993 : constant\n",
|
|||
|
"Adding op '993' of type const\n",
|
|||
|
"Converting op 994 : constant\n",
|
|||
|
"Adding op '994' of type const\n",
|
|||
|
"Converting op 995 : constant\n",
|
|||
|
"Adding op '995' of type const\n",
|
|||
|
"Converting op 996 : constant\n",
|
|||
|
"Adding op '996' of type const\n",
|
|||
|
"Converting op 997 : constant\n",
|
|||
|
"Adding op '997' of type const\n",
|
|||
|
"Converting op 998 : constant\n",
|
|||
|
"Adding op '998' of type const\n",
|
|||
|
"Converting op 999 : constant\n",
|
|||
|
"Adding op '999' of type const\n",
|
|||
|
"Converting op 1008 : listconstruct\n",
|
|||
|
"Adding op '1008' of type const\n",
|
|||
|
"Converting op 1009 : listconstruct\n",
|
|||
|
"Adding op '1009' of type const\n",
|
|||
|
"Converting op 1010 : listconstruct\n",
|
|||
|
"Adding op '1010' of type const\n",
|
|||
|
"Converting op 1011 : listconstruct\n",
|
|||
|
"Adding op '1011' of type const\n",
|
|||
|
"Converting op 1012 : _convolution\n",
|
|||
|
"Adding op '1012' of type conv\n",
|
|||
|
"Adding op '1012_pad_type_0' of type const\n",
|
|||
|
"Adding op '1012_pad_0' of type const\n",
|
|||
|
"Converting op 1013 : size\n",
|
|||
|
"Adding op '1013_shape' of type shape\n",
|
|||
|
"Adding op 'const_0' of type const\n",
|
|||
|
"Converting op 1014 : size\n",
|
|||
|
"Adding op '1014_shape' of type shape\n",
|
|||
|
"Adding op 'const_1' of type const\n",
|
|||
|
"Converting op 1015 : size\n",
|
|||
|
"Adding op '1015_shape' of type shape\n",
|
|||
|
"Adding op 'const_2' of type const\n",
|
|||
|
"Converting op 1016 : listconstruct\n",
|
|||
|
"Adding op '1016' of type const\n",
|
|||
|
"Converting op 1017 : view\n",
|
|||
|
"Adding op 'cast_0' of type cast\n",
|
|||
|
"Adding op 'cast_0_dtype_0' of type const\n",
|
|||
|
"Adding op '1017' of type reshape\n",
|
|||
|
"Converting op 1018 : listconstruct\n",
|
|||
|
"Adding op '1018' of type const\n",
|
|||
|
"Converting op 1019 : permute\n",
|
|||
|
"Adding op '1019' of type transpose\n",
|
|||
|
"Converting op 1020 : contiguous\n",
|
|||
|
"Setting pytorch op: %1020 = contiguous[](%1019, %997) to no-op.\n",
|
|||
|
"Converting op 1023 : listconstruct\n",
|
|||
|
"Adding op '1023' of type const\n",
|
|||
|
"Converting op 1024 : listconstruct\n",
|
|||
|
"Adding op '1024' of type const\n",
|
|||
|
"Converting op 1025 : listconstruct\n",
|
|||
|
"Adding op '1025' of type const\n",
|
|||
|
"Converting op 1026 : listconstruct\n",
|
|||
|
"Adding op '1026' of type const\n",
|
|||
|
"Converting op 1027 : _convolution\n",
|
|||
|
"Adding op '1027' of type conv\n",
|
|||
|
"Adding op '1027_pad_type_0' of type const\n",
|
|||
|
"Adding op '1027_pad_0' of type const\n",
|
|||
|
"Converting op 1028 : size\n",
|
|||
|
"Adding op '1028_shape' of type shape\n",
|
|||
|
"Adding op 'const_3' of type const\n",
|
|||
|
"Converting op 1029 : size\n",
|
|||
|
"Adding op '1029_shape' of type shape\n",
|
|||
|
"Adding op 'const_4' of type const\n",
|
|||
|
"Converting op 1030 : size\n",
|
|||
|
"Adding op '1030_shape' of type shape\n",
|
|||
|
"Adding op 'const_5' of type const\n",
|
|||
|
"Converting op 1031 : listconstruct\n",
|
|||
|
"Adding op '1031' of type const\n",
|
|||
|
"Converting op 1032 : view\n",
|
|||
|
"Adding op 'cast_1' of type cast\n",
|
|||
|
"Adding op 'cast_1_dtype_0' of type const\n",
|
|||
|
"Adding op '1032' of type reshape\n",
|
|||
|
"Converting op 1033 : listconstruct\n",
|
|||
|
"Adding op '1033' of type const\n",
|
|||
|
"Converting op 1034 : permute\n",
|
|||
|
"Adding op '1034' of type transpose\n",
|
|||
|
"Converting op 1035 : contiguous\n",
|
|||
|
"Setting pytorch op: %1035 = contiguous[](%1034, %997) to no-op.\n",
|
|||
|
"Converting op 1038 : listconstruct\n",
|
|||
|
"Adding op '1038' of type const\n",
|
|||
|
"Converting op 1039 : listconstruct\n",
|
|||
|
"Adding op '1039' of type const\n",
|
|||
|
"Converting op 1040 : listconstruct\n",
|
|||
|
"Adding op '1040' of type const\n",
|
|||
|
"Converting op 1041 : listconstruct\n",
|
|||
|
"Adding op '1041' of type const\n",
|
|||
|
"Converting op 1042 : _convolution\n",
|
|||
|
"Adding op '1042' of type conv\n",
|
|||
|
"Adding op '1042_pad_type_0' of type const\n",
|
|||
|
"Adding op '1042_pad_0' of type const\n",
|
|||
|
"Converting op 1043 : size\n",
|
|||
|
"Adding op '1043_shape' of type shape\n",
|
|||
|
"Adding op 'const_6' of type const\n",
|
|||
|
"Converting op 1044 : size\n",
|
|||
|
"Adding op '1044_shape' of type shape\n",
|
|||
|
"Adding op 'const_7' of type const\n",
|
|||
|
"Converting op 1045 : size\n",
|
|||
|
"Adding op '1045_shape' of type shape\n",
|
|||
|
"Adding op 'const_8' of type const\n",
|
|||
|
"Converting op 1046 : listconstruct\n",
|
|||
|
"Adding op '1046' of type const\n",
|
|||
|
"Converting op 1047 : view\n",
|
|||
|
"Adding op 'cast_2' of type cast\n",
|
|||
|
"Adding op 'cast_2_dtype_0' of type const\n",
|
|||
|
"Adding op '1047' of type reshape\n",
|
|||
|
"Converting op 1048 : listconstruct\n",
|
|||
|
"Adding op '1048' of type const\n",
|
|||
|
"Converting op 1049 : permute\n",
|
|||
|
"Adding op '1049' of type transpose\n",
|
|||
|
"Converting op 1050 : contiguous\n",
|
|||
|
"Setting pytorch op: %1050 = contiguous[](%1049, %997) to no-op.\n",
|
|||
|
"Converting op 1051 : tupleconstruct\n",
|
|||
|
"Converting op 1052 : tupleunpack\n",
|
|||
|
"Converting Frontend ==> MIL Ops: 100% 761/763 [00:00<00:00, 1253.41 ops/s]\n",
|
|||
|
"Performing passes for torch frontend: \"common::dead_code_elimination\"\n",
|
|||
|
"Removing op \"const_8\" (type: const)\n",
|
|||
|
"Removing op \"1045_shape\" (type: shape)\n",
|
|||
|
"Removing op \"const_7\" (type: const)\n",
|
|||
|
"Removing op \"1044_shape\" (type: shape)\n",
|
|||
|
"Removing op \"const_6\" (type: const)\n",
|
|||
|
"Removing op \"1043_shape\" (type: shape)\n",
|
|||
|
"Removing op \"1041\" (type: const)\n",
|
|||
|
"Removing op \"1039\" (type: const)\n",
|
|||
|
"Removing op \"const_5\" (type: const)\n",
|
|||
|
"Removing op \"1030_shape\" (type: shape)\n",
|
|||
|
"Removing op \"const_4\" (type: const)\n",
|
|||
|
"Removing op \"1029_shape\" (type: shape)\n",
|
|||
|
"Removing op \"const_3\" (type: const)\n",
|
|||
|
"Removing op \"1028_shape\" (type: shape)\n",
|
|||
|
"Removing op \"1026\" (type: const)\n",
|
|||
|
"Removing op \"1024\" (type: const)\n",
|
|||
|
"Removing op \"const_2\" (type: const)\n",
|
|||
|
"Removing op \"1015_shape\" (type: shape)\n",
|
|||
|
"Removing op \"const_1\" (type: const)\n",
|
|||
|
"Removing op \"1014_shape\" (type: shape)\n",
|
|||
|
"Removing op \"const_0\" (type: const)\n",
|
|||
|
"Removing op \"1013_shape\" (type: shape)\n",
|
|||
|
"Removing op \"1011\" (type: const)\n",
|
|||
|
"Removing op \"1009\" (type: const)\n",
|
|||
|
"Removing op \"999\" (type: const)\n",
|
|||
|
"Removing op \"998\" (type: const)\n",
|
|||
|
"Removing op \"997\" (type: const)\n",
|
|||
|
"Removing op \"995\" (type: const)\n",
|
|||
|
"Removing op \"994\" (type: const)\n",
|
|||
|
"Removing op \"993\" (type: const)\n",
|
|||
|
"Removing op \"992\" (type: const)\n",
|
|||
|
"Removing op \"989\" (type: const)\n",
|
|||
|
"Removing op \"987\" (type: const)\n",
|
|||
|
"Removing op \"982\" (type: const)\n",
|
|||
|
"Removing op \"981\" (type: const)\n",
|
|||
|
"Removing op \"980\" (type: const)\n",
|
|||
|
"Removing op \"975\" (type: const)\n",
|
|||
|
"Removing op \"973\" (type: const)\n",
|
|||
|
"Removing op \"968\" (type: const)\n",
|
|||
|
"Removing op \"967\" (type: const)\n",
|
|||
|
"Removing op \"966\" (type: const)\n",
|
|||
|
"Removing op \"961\" (type: const)\n",
|
|||
|
"Removing op \"959\" (type: const)\n",
|
|||
|
"Removing op \"954\" (type: const)\n",
|
|||
|
"Removing op \"953\" (type: const)\n",
|
|||
|
"Removing op \"952\" (type: const)\n",
|
|||
|
"Removing op \"947\" (type: const)\n",
|
|||
|
"Removing op \"945\" (type: const)\n",
|
|||
|
"Removing op \"940\" (type: const)\n",
|
|||
|
"Removing op \"939\" (type: const)\n",
|
|||
|
"Removing op \"938\" (type: const)\n",
|
|||
|
"Removing op \"930\" (type: const)\n",
|
|||
|
"Removing op \"928\" (type: const)\n",
|
|||
|
"Removing op \"923\" (type: const)\n",
|
|||
|
"Removing op \"922\" (type: const)\n",
|
|||
|
"Removing op \"921\" (type: const)\n",
|
|||
|
"Removing op \"916\" (type: const)\n",
|
|||
|
"Removing op \"914\" (type: const)\n",
|
|||
|
"Removing op \"909\" (type: const)\n",
|
|||
|
"Removing op \"908\" (type: const)\n",
|
|||
|
"Removing op \"907\" (type: const)\n",
|
|||
|
"Removing op \"902\" (type: const)\n",
|
|||
|
"Removing op \"900\" (type: const)\n",
|
|||
|
"Removing op \"895\" (type: const)\n",
|
|||
|
"Removing op \"894\" (type: const)\n",
|
|||
|
"Removing op \"893\" (type: const)\n",
|
|||
|
"Removing op \"888\" (type: const)\n",
|
|||
|
"Removing op \"886\" (type: const)\n",
|
|||
|
"Removing op \"881\" (type: const)\n",
|
|||
|
"Removing op \"880\" (type: const)\n",
|
|||
|
"Removing op \"879\" (type: const)\n",
|
|||
|
"Removing op \"871\" (type: const)\n",
|
|||
|
"Removing op \"869\" (type: const)\n",
|
|||
|
"Removing op \"864\" (type: const)\n",
|
|||
|
"Removing op \"863\" (type: const)\n",
|
|||
|
"Removing op \"862\" (type: const)\n",
|
|||
|
"Removing op \"860\" (type: const)\n",
|
|||
|
"Removing op \"856\" (type: const)\n",
|
|||
|
"Removing op \"854\" (type: const)\n",
|
|||
|
"Removing op \"849\" (type: const)\n",
|
|||
|
"Removing op \"848\" (type: const)\n",
|
|||
|
"Removing op \"847\" (type: const)\n",
|
|||
|
"Removing op \"839\" (type: const)\n",
|
|||
|
"Removing op \"837\" (type: const)\n",
|
|||
|
"Removing op \"832\" (type: const)\n",
|
|||
|
"Removing op \"831\" (type: const)\n",
|
|||
|
"Removing op \"830\" (type: const)\n",
|
|||
|
"Removing op \"825\" (type: const)\n",
|
|||
|
"Removing op \"823\" (type: const)\n",
|
|||
|
"Removing op \"818\" (type: const)\n",
|
|||
|
"Removing op \"817\" (type: const)\n",
|
|||
|
"Removing op \"816\" (type: const)\n",
|
|||
|
"Removing op \"811\" (type: const)\n",
|
|||
|
"Removing op \"809\" (type: const)\n",
|
|||
|
"Removing op \"804\" (type: const)\n",
|
|||
|
"Removing op \"803\" (type: const)\n",
|
|||
|
"Removing op \"802\" (type: const)\n",
|
|||
|
"Removing op \"797\" (type: const)\n",
|
|||
|
"Removing op \"795\" (type: const)\n",
|
|||
|
"Removing op \"790\" (type: const)\n",
|
|||
|
"Removing op \"789\" (type: const)\n",
|
|||
|
"Removing op \"788\" (type: const)\n",
|
|||
|
"Removing op \"780\" (type: const)\n",
|
|||
|
"Removing op \"778\" (type: const)\n",
|
|||
|
"Removing op \"773\" (type: const)\n",
|
|||
|
"Removing op \"772\" (type: const)\n",
|
|||
|
"Removing op \"771\" (type: const)\n",
|
|||
|
"Removing op \"769\" (type: const)\n",
|
|||
|
"Removing op \"765\" (type: const)\n",
|
|||
|
"Removing op \"763\" (type: const)\n",
|
|||
|
"Removing op \"758\" (type: const)\n",
|
|||
|
"Removing op \"757\" (type: const)\n",
|
|||
|
"Removing op \"756\" (type: const)\n",
|
|||
|
"Removing op \"748\" (type: const)\n",
|
|||
|
"Removing op \"746\" (type: const)\n",
|
|||
|
"Removing op \"741\" (type: const)\n",
|
|||
|
"Removing op \"740\" (type: const)\n",
|
|||
|
"Removing op \"739\" (type: const)\n",
|
|||
|
"Removing op \"734\" (type: const)\n",
|
|||
|
"Removing op \"732\" (type: const)\n",
|
|||
|
"Removing op \"727\" (type: const)\n",
|
|||
|
"Removing op \"726\" (type: const)\n",
|
|||
|
"Removing op \"725\" (type: const)\n",
|
|||
|
"Removing op \"720\" (type: const)\n",
|
|||
|
"Removing op \"718\" (type: const)\n",
|
|||
|
"Removing op \"713\" (type: const)\n",
|
|||
|
"Removing op \"712\" (type: const)\n",
|
|||
|
"Removing op \"711\" (type: const)\n",
|
|||
|
"Removing op \"706\" (type: const)\n",
|
|||
|
"Removing op \"704\" (type: const)\n",
|
|||
|
"Removing op \"699\" (type: const)\n",
|
|||
|
"Removing op \"698\" (type: const)\n",
|
|||
|
"Removing op \"697\" (type: const)\n",
|
|||
|
"Removing op \"689\" (type: const)\n",
|
|||
|
"Removing op \"687\" (type: const)\n",
|
|||
|
"Removing op \"682\" (type: const)\n",
|
|||
|
"Removing op \"681\" (type: const)\n",
|
|||
|
"Removing op \"680\" (type: const)\n",
|
|||
|
"Removing op \"676\" (type: const)\n",
|
|||
|
"Removing op \"674\" (type: const)\n",
|
|||
|
"Removing op \"671\" (type: const)\n",
|
|||
|
"Removing op \"669\" (type: const)\n",
|
|||
|
"Removing op \"664\" (type: const)\n",
|
|||
|
"Removing op \"663\" (type: const)\n",
|
|||
|
"Removing op \"662\" (type: const)\n",
|
|||
|
"Removing op \"657\" (type: const)\n",
|
|||
|
"Removing op \"655\" (type: const)\n",
|
|||
|
"Removing op \"650\" (type: const)\n",
|
|||
|
"Removing op \"649\" (type: const)\n",
|
|||
|
"Removing op \"648\" (type: const)\n",
|
|||
|
"Removing op \"640\" (type: const)\n",
|
|||
|
"Removing op \"638\" (type: const)\n",
|
|||
|
"Removing op \"633\" (type: const)\n",
|
|||
|
"Removing op \"632\" (type: const)\n",
|
|||
|
"Removing op \"631\" (type: const)\n",
|
|||
|
"Removing op \"626\" (type: const)\n",
|
|||
|
"Removing op \"624\" (type: const)\n",
|
|||
|
"Removing op \"619\" (type: const)\n",
|
|||
|
"Removing op \"618\" (type: const)\n",
|
|||
|
"Removing op \"617\" (type: const)\n",
|
|||
|
"Removing op \"612\" (type: const)\n",
|
|||
|
"Removing op \"610\" (type: const)\n",
|
|||
|
"Removing op \"605\" (type: const)\n",
|
|||
|
"Removing op \"604\" (type: const)\n",
|
|||
|
"Removing op \"603\" (type: const)\n",
|
|||
|
"Removing op \"598\" (type: const)\n",
|
|||
|
"Removing op \"596\" (type: const)\n",
|
|||
|
"Removing op \"591\" (type: const)\n",
|
|||
|
"Removing op \"590\" (type: const)\n",
|
|||
|
"Removing op \"589\" (type: const)\n",
|
|||
|
"Removing op \"581\" (type: const)\n",
|
|||
|
"Removing op \"579\" (type: const)\n",
|
|||
|
"Removing op \"574\" (type: const)\n",
|
|||
|
"Removing op \"573\" (type: const)\n",
|
|||
|
"Removing op \"572\" (type: const)\n",
|
|||
|
"Removing op \"568\" (type: const)\n",
|
|||
|
"Removing op \"566\" (type: const)\n",
|
|||
|
"Removing op \"563\" (type: const)\n",
|
|||
|
"Removing op \"561\" (type: const)\n",
|
|||
|
"Removing op \"556\" (type: const)\n",
|
|||
|
"Removing op \"555\" (type: const)\n",
|
|||
|
"Removing op \"554\" (type: const)\n",
|
|||
|
"Removing op \"549\" (type: const)\n",
|
|||
|
"Removing op \"547\" (type: const)\n",
|
|||
|
"Removing op \"542\" (type: const)\n",
|
|||
|
"Removing op \"541\" (type: const)\n",
|
|||
|
"Removing op \"540\" (type: const)\n",
|
|||
|
"Removing op \"532\" (type: const)\n",
|
|||
|
"Removing op \"530\" (type: const)\n",
|
|||
|
"Removing op \"525\" (type: const)\n",
|
|||
|
"Removing op \"524\" (type: const)\n",
|
|||
|
"Removing op \"523\" (type: const)\n",
|
|||
|
"Removing op \"516\" (type: const)\n",
|
|||
|
"Removing op \"515\" (type: const)\n",
|
|||
|
"Removing op \"512\" (type: const)\n",
|
|||
|
"Removing op \"511\" (type: const)\n",
|
|||
|
"Removing op \"510\" (type: const)\n",
|
|||
|
"Removing op \"509\" (type: const)\n",
|
|||
|
"Removing op \"507\" (type: const)\n",
|
|||
|
"Removing op \"506\" (type: const)\n",
|
|||
|
"Removing op \"503\" (type: const)\n",
|
|||
|
"Removing op \"502\" (type: const)\n",
|
|||
|
"Removing op \"501\" (type: const)\n",
|
|||
|
"Removing op \"500\" (type: const)\n",
|
|||
|
"Removing op \"498\" (type: const)\n",
|
|||
|
"Removing op \"497\" (type: const)\n",
|
|||
|
"Removing op \"494\" (type: const)\n",
|
|||
|
"Removing op \"493\" (type: const)\n",
|
|||
|
"Removing op \"492\" (type: const)\n",
|
|||
|
"Removing op \"491\" (type: const)\n",
|
|||
|
"Removing op \"488\" (type: const)\n",
|
|||
|
"Removing op \"486\" (type: const)\n",
|
|||
|
"Removing op \"481\" (type: const)\n",
|
|||
|
"Removing op \"480\" (type: const)\n",
|
|||
|
"Removing op \"479\" (type: const)\n",
|
|||
|
"Removing op \"474\" (type: const)\n",
|
|||
|
"Removing op \"472\" (type: const)\n",
|
|||
|
"Removing op \"467\" (type: const)\n",
|
|||
|
"Removing op \"466\" (type: const)\n",
|
|||
|
"Removing op \"465\" (type: const)\n",
|
|||
|
"Removing op \"460\" (type: const)\n",
|
|||
|
"Removing op \"458\" (type: const)\n",
|
|||
|
"Removing op \"453\" (type: const)\n",
|
|||
|
"Removing op \"452\" (type: const)\n",
|
|||
|
"Removing op \"451\" (type: const)\n",
|
|||
|
"Removing op \"443\" (type: const)\n",
|
|||
|
"Removing op \"441\" (type: const)\n",
|
|||
|
"Removing op \"436\" (type: const)\n",
|
|||
|
"Removing op \"435\" (type: const)\n",
|
|||
|
"Removing op \"434\" (type: const)\n",
|
|||
|
"Removing op \"429\" (type: const)\n",
|
|||
|
"Removing op \"427\" (type: const)\n",
|
|||
|
"Removing op \"422\" (type: const)\n",
|
|||
|
"Removing op \"421\" (type: const)\n",
|
|||
|
"Removing op \"420\" (type: const)\n",
|
|||
|
"Removing op \"415\" (type: const)\n",
|
|||
|
"Removing op \"413\" (type: const)\n",
|
|||
|
"Removing op \"408\" (type: const)\n",
|
|||
|
"Removing op \"407\" (type: const)\n",
|
|||
|
"Removing op \"406\" (type: const)\n",
|
|||
|
"Removing op \"401\" (type: const)\n",
|
|||
|
"Removing op \"399\" (type: const)\n",
|
|||
|
"Removing op \"394\" (type: const)\n",
|
|||
|
"Removing op \"393\" (type: const)\n",
|
|||
|
"Removing op \"392\" (type: const)\n",
|
|||
|
"Removing op \"388\" (type: const)\n",
|
|||
|
"Removing op \"387\" (type: const)\n",
|
|||
|
"Removing op \"384\" (type: const)\n",
|
|||
|
"Removing op \"383\" (type: const)\n",
|
|||
|
"Removing op \"382\" (type: const)\n",
|
|||
|
"Removing op \"381\" (type: const)\n",
|
|||
|
"Removing op \"378\" (type: const)\n",
|
|||
|
"Removing op \"376\" (type: const)\n",
|
|||
|
"Removing op \"371\" (type: const)\n",
|
|||
|
"Removing op \"370\" (type: const)\n",
|
|||
|
"Removing op \"369\" (type: const)\n",
|
|||
|
"Removing op \"361\" (type: const)\n",
|
|||
|
"Removing op \"359\" (type: const)\n",
|
|||
|
"Removing op \"354\" (type: const)\n",
|
|||
|
"Removing op \"353\" (type: const)\n",
|
|||
|
"Removing op \"352\" (type: const)\n",
|
|||
|
"Removing op \"347\" (type: const)\n",
|
|||
|
"Removing op \"345\" (type: const)\n",
|
|||
|
"Removing op \"340\" (type: const)\n",
|
|||
|
"Removing op \"339\" (type: const)\n",
|
|||
|
"Removing op \"338\" (type: const)\n",
|
|||
|
"Removing op \"333\" (type: const)\n",
|
|||
|
"Removing op \"331\" (type: const)\n",
|
|||
|
"Removing op \"326\" (type: const)\n",
|
|||
|
"Removing op \"325\" (type: const)\n",
|
|||
|
"Removing op \"324\" (type: const)\n",
|
|||
|
"Removing op \"319\" (type: const)\n",
|
|||
|
"Removing op \"317\" (type: const)\n",
|
|||
|
"Removing op \"312\" (type: const)\n",
|
|||
|
"Removing op \"311\" (type: const)\n",
|
|||
|
"Removing op \"310\" (type: const)\n",
|
|||
|
"Removing op \"306\" (type: const)\n",
|
|||
|
"Removing op \"305\" (type: const)\n",
|
|||
|
"Removing op \"302\" (type: const)\n",
|
|||
|
"Removing op \"301\" (type: const)\n",
|
|||
|
"Removing op \"300\" (type: const)\n",
|
|||
|
"Removing op \"299\" (type: const)\n",
|
|||
|
"Removing op \"296\" (type: const)\n",
|
|||
|
"Removing op \"294\" (type: const)\n",
|
|||
|
"Removing op \"289\" (type: const)\n",
|
|||
|
"Removing op \"288\" (type: const)\n",
|
|||
|
"Removing op \"287\" (type: const)\n",
|
|||
|
"Removing op \"279\" (type: const)\n",
|
|||
|
"Removing op \"277\" (type: const)\n",
|
|||
|
"Removing op \"272\" (type: const)\n",
|
|||
|
"Removing op \"271\" (type: const)\n",
|
|||
|
"Removing op \"270\" (type: const)\n",
|
|||
|
"Removing op \"265\" (type: const)\n",
|
|||
|
"Removing op \"263\" (type: const)\n",
|
|||
|
"Removing op \"258\" (type: const)\n",
|
|||
|
"Removing op \"257\" (type: const)\n",
|
|||
|
"Removing op \"256\" (type: const)\n",
|
|||
|
"Removing op \"251\" (type: const)\n",
|
|||
|
"Removing op \"249\" (type: const)\n",
|
|||
|
"Removing op \"244\" (type: const)\n",
|
|||
|
"Removing op \"243\" (type: const)\n",
|
|||
|
"Removing op \"242\" (type: const)\n",
|
|||
|
"Removing op \"237\" (type: const)\n",
|
|||
|
"Removing op \"235\" (type: const)\n",
|
|||
|
"Removing op \"230\" (type: const)\n",
|
|||
|
"Removing op \"229\" (type: const)\n",
|
|||
|
"Removing op \"228\" (type: const)\n",
|
|||
|
"Removing op \"224\" (type: const)\n",
|
|||
|
"Removing op \"223\" (type: const)\n",
|
|||
|
"Removing op \"220\" (type: const)\n",
|
|||
|
"Removing op \"219\" (type: const)\n",
|
|||
|
"Removing op \"218\" (type: const)\n",
|
|||
|
"Removing op \"217\" (type: const)\n",
|
|||
|
"Removing op \"214\" (type: const)\n",
|
|||
|
"Removing op \"212\" (type: const)\n",
|
|||
|
"Removing op \"207\" (type: const)\n",
|
|||
|
"Removing op \"206\" (type: const)\n",
|
|||
|
"Removing op \"205\" (type: const)\n",
|
|||
|
"Removing op \"197\" (type: const)\n",
|
|||
|
"Removing op \"195\" (type: const)\n",
|
|||
|
"Removing op \"190\" (type: const)\n",
|
|||
|
"Removing op \"189\" (type: const)\n",
|
|||
|
"Removing op \"188\" (type: const)\n",
|
|||
|
"Removing op \"183\" (type: const)\n",
|
|||
|
"Removing op \"181\" (type: const)\n",
|
|||
|
"Removing op \"176\" (type: const)\n",
|
|||
|
"Removing op \"175\" (type: const)\n",
|
|||
|
"Removing op \"174\" (type: const)\n",
|
|||
|
"Removing op \"169\" (type: const)\n",
|
|||
|
"Removing op \"167\" (type: const)\n",
|
|||
|
"Removing op \"162\" (type: const)\n",
|
|||
|
"Removing op \"161\" (type: const)\n",
|
|||
|
"Removing op \"160\" (type: const)\n",
|
|||
|
"Removing op \"155\" (type: const)\n",
|
|||
|
"Removing op \"153\" (type: const)\n",
|
|||
|
"Removing op \"148\" (type: const)\n",
|
|||
|
"Removing op \"147\" (type: const)\n",
|
|||
|
"Removing op \"146\" (type: const)\n",
|
|||
|
"Removing op \"141\" (type: const)\n",
|
|||
|
"Removing op \"139\" (type: const)\n",
|
|||
|
"Removing op \"134\" (type: const)\n",
|
|||
|
"Removing op \"133\" (type: const)\n",
|
|||
|
"Removing op \"132\" (type: const)\n",
|
|||
|
"Removing op \"130\" (type: const)\n",
|
|||
|
"Removing op \"126\" (type: const)\n",
|
|||
|
"Removing op \"124\" (type: const)\n",
|
|||
|
"Removing op \"119\" (type: const)\n",
|
|||
|
"Removing op \"118\" (type: const)\n",
|
|||
|
"Removing op \"117\" (type: const)\n",
|
|||
|
"Removing op \"115\" (type: const)\n",
|
|||
|
"Performing passes for torch frontend: \"common::loop_invariant_elimination\"\n",
|
|||
|
"Performing passes for torch frontend: \"common::dead_code_elimination\"\n",
|
|||
|
"Performing passes for torch frontend: \"torch::torch_upsample_to_core_upsample\"\n",
|
|||
|
"Performing passes for torch frontend: \"torch::torch_tensor_assign_to_core\"\n",
|
|||
|
"Running MIL Common passes: 0% 0/34 [00:00<?, ? passes/s]Performing pass: \"common::cast_optimization\"\n",
|
|||
|
"Performing pass: \"common::const_elimination\"\n",
|
|||
|
"Performing pass: \"common::sanitize_input_output_names\"\n",
|
|||
|
"/usr/local/lib/python3.7/dist-packages/coremltools/converters/mil/mil/passes/name_sanitization_utils.py:129: UserWarning: Output, '1019', of the source model, has been renamed to 'var_1019' in the Core ML model.\n",
|
|||
|
" warnings.warn(msg.format(var.name, new_name))\n",
|
|||
|
"/usr/local/lib/python3.7/dist-packages/coremltools/converters/mil/mil/passes/name_sanitization_utils.py:129: UserWarning: Output, '1034', of the source model, has been renamed to 'var_1034' in the Core ML model.\n",
|
|||
|
" warnings.warn(msg.format(var.name, new_name))\n",
|
|||
|
"/usr/local/lib/python3.7/dist-packages/coremltools/converters/mil/mil/passes/name_sanitization_utils.py:129: UserWarning: Output, '1049', of the source model, has been renamed to 'var_1049' in the Core ML model.\n",
|
|||
|
" warnings.warn(msg.format(var.name, new_name))\n",
|
|||
|
"Performing pass: \"common::divide_to_multiply\"\n",
|
|||
|
"Performing pass: \"common::add_conv_transpose_output_shape\"\n",
|
|||
|
"Performing pass: \"common::const_elimination\"\n",
|
|||
|
"Performing pass: \"common::loop_invariant_elimination\"\n",
|
|||
|
"Performing pass: \"common::remove_symbolic_reshape\"\n",
|
|||
|
"remove_symbolic_reshape: changed 0 reshapes.\n",
|
|||
|
"Performing pass: \"common::noop_elimination\"\n",
|
|||
|
"Performing pass: \"common::fuse_matmul_weight_bias\"\n",
|
|||
|
"Performing pass: \"common::fuse_linear_bias\"\n",
|
|||
|
"Performing pass: \"common::fuse_gelu_tanh_approximation\"\n",
|
|||
|
"Adding op 'pow' of type pow\n",
|
|||
|
"Adding op 'pow_y_0' of type const\n",
|
|||
|
"Adding op 'mul_1' of type mul\n",
|
|||
|
"Adding op 'mul_1_x_0' of type const\n",
|
|||
|
"Adding op 'add' of type add\n",
|
|||
|
"Adding op 'mul_2' of type mul\n",
|
|||
|
"Adding op 'mul_2_x_0' of type const\n",
|
|||
|
"Adding op 'tanh' of type tanh\n",
|
|||
|
"Adding op 'add_1' of type add\n",
|
|||
|
"Adding op 'add_1_x_0' of type const\n",
|
|||
|
"Adding op 'mul' of type mul\n",
|
|||
|
"Adding op 'mul_x_0' of type const\n",
|
|||
|
"Adding op 'mul_3' of type mul\n",
|
|||
|
"Adding op 'pow' of type pow\n",
|
|||
|
"Adding op 'pow_y_1' of type const\n",
|
|||
|
"Adding op 'mul_1' of type mul\n",
|
|||
|
"Adding op 'mul_1_x_1' of type const\n",
|
|||
|
"Adding op 'add' of type add\n",
|
|||
|
"Adding op 'mul_2' of type mul\n",
|
|||
|
"Adding op 'mul_2_x_1' of type const\n",
|
|||
|
"Adding op 'tanh' of type tanh\n",
|
|||
|
"Adding op 'add_1' of type add\n",
|
|||
|
"Adding op 'add_1_x_1' of type const\n",
|
|||
|
"Adding op 'mul' of type mul\n",
|
|||
|
"Adding op 'mul_x_1' of type const\n",
|
|||
|
"Adding op 'mul_3' of type mul\n",
|
|||
|
"Performing pass: \"common::fuse_gelu_exact\"\n",
|
|||
|
"Performing pass: \"common::fuse_leaky_relu\"\n",
|
|||
|
"Performing pass: \"common::rank0_expand_dims_swap\"\n",
|
|||
|
"Performing pass: \"common::use_reflection_padding\"\n",
|
|||
|
"Performing pass: \"common::merge_consecutive_paddings\"\n",
|
|||
|
"Performing pass: \"common::pad_conv_connect\"\n",
|
|||
|
"Performing pass: \"common::image_input_preprocess\"\n",
|
|||
|
"Performing pass: \"common::replace_stack_reshape\"\n",
|
|||
|
"Performing pass: \"common::reduce_transposes\"\n",
|
|||
|
"Adding op 'identity_0' of type identity\n",
|
|||
|
"Adding op 'identity_1' of type identity\n",
|
|||
|
"Adding op 'identity_2' of type identity\n",
|
|||
|
"Running MIL Common passes: 62% 21/34 [00:00<00:00, 179.68 passes/s]Performing pass: \"common::fuse_conv_scale\"\n",
|
|||
|
"Performing pass: \"common::fuse_conv_bias\"\n",
|
|||
|
"Performing pass: \"common::fuse_onehot_matmul_to_gather\"\n",
|
|||
|
"Performing pass: \"common::fuse_layernorm_or_instancenorm\"\n",
|
|||
|
"Performing pass: \"common::fuse_elementwise_to_batchnorm\"\n",
|
|||
|
"Performing pass: \"common::fuse_reduce_mean\"\n",
|
|||
|
"Performing pass: \"common::fuse_conv_batchnorm\"\n",
|
|||
|
"Performing pass: \"common::fuse_conv_scale\"\n",
|
|||
|
"Performing pass: \"common::fuse_conv_bias\"\n",
|
|||
|
"Performing pass: \"common::detect_concat_interleave\"\n",
|
|||
|
"Performing pass: \"common::concat_to_pixel_shuffle\"\n",
|
|||
|
"Performing pass: \"common::remove_redundant_ops\"\n",
|
|||
|
"Performing pass: \"common::dead_code_elimination\"\n",
|
|||
|
"Removing op \"cast_2_dtype_0\" (type: const)\n",
|
|||
|
"Removing op \"cast_1_dtype_0\" (type: const)\n",
|
|||
|
"Removing op \"cast_0_dtype_0\" (type: const)\n",
|
|||
|
"Running MIL Common passes: 100% 34/34 [00:00<00:00, 221.50 passes/s]\n",
|
|||
|
"Running MIL Clean up passes: 0% 0/9 [00:00<?, ? passes/s]Performing pass: \"common::cast_optimization\"\n",
|
|||
|
"Performing pass: \"common::const_elimination\"\n",
|
|||
|
"Performing pass: \"common::loop_invariant_elimination\"\n",
|
|||
|
"Performing pass: \"common::noop_elimination\"\n",
|
|||
|
"Performing pass: \"common::dedup_op_and_var_names\"\n",
|
|||
|
"Performing pass: \"common::reduce_transposes\"\n",
|
|||
|
"Adding op 'identity_3' of type identity\n",
|
|||
|
"Adding op 'identity_4' of type identity\n",
|
|||
|
"Adding op 'identity_5' of type identity\n",
|
|||
|
"Performing pass: \"common::remove_redundant_ops\"\n",
|
|||
|
"Running MIL Clean up passes: 78% 7/9 [00:00<00:00, 68.75 passes/s]Performing pass: \"common::topological_reorder\"\n",
|
|||
|
"Adding op 'transpose_0' of type transpose\n",
|
|||
|
"Adding op 'transpose_1' of type transpose\n",
|
|||
|
"Adding op 'transpose_2' of type transpose\n",
|
|||
|
"Performing pass: \"common::dead_code_elimination\"\n",
|
|||
|
"Running MIL Clean up passes: 100% 9/9 [00:00<00:00, 81.30 passes/s]\n",
|
|||
|
"Performing passes for nn_backend: \"nn_backend::commingle_loop_vars\"\n",
|
|||
|
"Performing passes for nn_backend: \"nn_backend::handle_return_inputs_as_outputs\"\n",
|
|||
|
"Performing passes for nn_backend: \"common::const_elimination\"\n",
|
|||
|
"Performing passes for nn_backend: \"common::dead_code_elimination\"\n",
|
|||
|
"Performing passes for nn_backend: \"nn_backend::handle_unused_inputs\"\n",
|
|||
|
"Performing passes for nn_backend: \"nn_backend::alert_return_type_cast\"\n",
|
|||
|
"Translating MIL ==> NeuralNetwork Ops: 100% 668/668 [00:00<00:00, 1188.31 ops/s]\n",
|
|||
|
"CoreML export success, saved as ./yolov7-tiny.mlmodel\n",
|
|||
|
"\n",
|
|||
|
"Starting TorchScript-Lite export with torch 1.12.0+cu113...\n",
|
|||
|
"TorchScript-Lite export success, saved as ./yolov7-tiny.torchscript.ptl\n",
|
|||
|
"\n",
|
|||
|
"Starting ONNX export with onnx 1.12.0...\n",
|
|||
|
"/content/yolov7/models/yolo.py:582: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!\n",
|
|||
|
" if augment:\n",
|
|||
|
"/content/yolov7/models/yolo.py:614: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!\n",
|
|||
|
" if profile:\n",
|
|||
|
"/content/yolov7/models/yolo.py:629: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!\n",
|
|||
|
" if profile:\n",
|
|||
|
"ONNX export success, saved as ./yolov7-tiny.onnx\n",
|
|||
|
"\n",
|
|||
|
"Export complete (14.09s). Visualize with https://github.com/lutzroeder/netron.\n"
|
|||
|
]
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"# show ONNX model\n",
|
|||
|
"!ls"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/"
|
|||
|
},
|
|||
|
"id": "h9lzPkMxu7B8",
|
|||
|
"outputId": "74f439b6-6872-45ac-92b3-9c3e78164fce"
|
|||
|
},
|
|||
|
"execution_count": 9,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"name": "stdout",
|
|||
|
"text": [
|
|||
|
"cfg\t inference\t scripts\t yolov7-tiny.mlmodel\n",
|
|||
|
"data\t LICENSE.md\t test.py\t yolov7-tiny.onnx\n",
|
|||
|
"deploy\t models\t tools\t yolov7-tiny.pt\n",
|
|||
|
"detect.py paper\t traced_model.pt yolov7-tiny.torchscript.pt\n",
|
|||
|
"export.py README.md\t train_aux.py yolov7-tiny.torchscript.ptl\n",
|
|||
|
"figure\t requirements.txt train.py\n",
|
|||
|
"hubconf.py runs\t utils\n"
|
|||
|
]
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"# Load Coreml-model\n",
|
|||
|
"import coremltools as ct\n",
|
|||
|
"\n",
|
|||
|
"model_filename = 'yolov7-tiny.mlmodel'\n",
|
|||
|
"model = ct.models.MLModel(model_filename)"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/"
|
|||
|
},
|
|||
|
"id": "BGwd9rydozWf",
|
|||
|
"outputId": "09365f4d-bd29-41f9-f169-84acdcf1bece"
|
|||
|
},
|
|||
|
"execution_count": 10,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"name": "stderr",
|
|||
|
"text": [
|
|||
|
"WARNING:root:scikit-learn version 1.0.2 is not supported. Minimum required version: 0.17. Maximum required version: 0.19.2. Disabling scikit-learn conversion API.\n",
|
|||
|
"WARNING:root:TensorFlow version 2.8.2 has not been tested with coremltools. You may run into unexpected errors. TensorFlow 2.6.2 is the most recent version that has been tested.\n",
|
|||
|
"WARNING:root:Keras version 2.8.0 has not been tested with coremltools. You may run into unexpected errors. Keras 2.6.0 is the most recent version that has been tested.\n",
|
|||
|
"WARNING:root:Torch version 1.12.0+cu113 has not been tested with coremltools. You may run into unexpected errors. Torch 1.10.2 is the most recent version that has been tested.\n"
|
|||
|
]
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"# Load image\n",
|
|||
|
"from PIL import Image\n",
|
|||
|
"import cv2\n",
|
|||
|
"import numpy as np\n",
|
|||
|
"\n",
|
|||
|
"im = cv2.imread('/content/yolov7/inference/images/horses.jpg')\n",
|
|||
|
"im = cv2.resize(im, (640, 640))\n",
|
|||
|
"print(f\" im = {im.shape}\")\n",
|
|||
|
"b = 1\n",
|
|||
|
"h, w, ch = im.shape\n",
|
|||
|
"\n",
|
|||
|
"im = Image.fromarray((im).astype('uint8'))\n",
|
|||
|
"print(f\" im = {im}\")"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"base_uri": "https://localhost:8080/"
|
|||
|
},
|
|||
|
"id": "qdGhPwO2rTc2",
|
|||
|
"outputId": "46bf3263-905f-414d-8b43-b4c94c0b5b26"
|
|||
|
},
|
|||
|
"execution_count": 11,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"name": "stdout",
|
|||
|
"text": [
|
|||
|
" im = (640, 640, 3)\n",
|
|||
|
" im = <PIL.Image.Image image mode=RGB size=640x640 at 0x7F8E0F0CD9D0>\n"
|
|||
|
]
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"def xywh2xyxy(x):\n",
|
|||
|
" # Convert nx4 boxes from [x, y, w, h] to [x1, y1, x2, y2] where xy1=top-left, xy2=bottom-right\n",
|
|||
|
" y = x.clone() if isinstance(x, torch.Tensor) else np.copy(x)\n",
|
|||
|
" y[:, 0] = x[:, 0] - x[:, 2] / 2 # top left x\n",
|
|||
|
" y[:, 1] = x[:, 1] - x[:, 3] / 2 # top left y\n",
|
|||
|
" y[:, 2] = x[:, 0] + x[:, 2] / 2 # bottom right x\n",
|
|||
|
" y[:, 3] = x[:, 1] + x[:, 3] / 2 # bottom right y\n",
|
|||
|
" return y"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"id": "fO3gTcCQrH27"
|
|||
|
},
|
|||
|
"execution_count": 12,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"# Inference only for MacOS and iOS!!!\n",
|
|||
|
"\n",
|
|||
|
"#y = model.predict({'image': im}) # coordinates are xywh normalized\n",
|
|||
|
"#if 'confidence' in y:\n",
|
|||
|
"# box = xywh2xyxy(y['coordinates'] * [[w, h, w, h]]) # xyxy pixels\n",
|
|||
|
"# conf, cls = y['confidence'].max(1), y['confidence'].argmax(1).astype(np.float)\n",
|
|||
|
"# y = np.concatenate((box, conf.reshape(-1, 1), cls.reshape(-1, 1)), 1)\n",
|
|||
|
"#else:\n",
|
|||
|
"# k = 'var_' + str(sorted(int(k.replace('var_', '')) for k in y)[-1]) # output key\n",
|
|||
|
"# y = y[k] # output\n",
|
|||
|
"#\n",
|
|||
|
"#print(y)"
|
|||
|
],
|
|||
|
"metadata": {
|
|||
|
"id": "dS9iAcSH32A3"
|
|||
|
},
|
|||
|
"execution_count": null,
|
|||
|
"outputs": []
|
|||
|
}
|
|||
|
]
|
|||
|
}
|