{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": { "id": "2OwUggkQMjY6" }, "source": [ "# Install dependencies" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "execution": { "iopub.execute_input": "2022-08-09T20:31:30.536784Z", "iopub.status.busy": "2022-08-09T20:31:30.535694Z", "iopub.status.idle": "2022-08-09T20:31:58.311928Z", "shell.execute_reply": "2022-08-09T20:31:58.310839Z", "shell.execute_reply.started": "2022-08-09T20:31:30.536689Z" }, "id": "e0dYgmzoIFjC", "outputId": "ad6d4c33-d916-415c-bd39-d3123032c20a" }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Requirement already satisfied: internetarchive in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (3.3.0)\n", "Requirement already satisfied: split-folders in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (0.5.1)\n", "Requirement already satisfied: ultralytics in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (8.0.52)\n", "Requirement already satisfied: paddlepaddle in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (2.3.1)\n", "Requirement already satisfied: paddleocr in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (2.6.1.3)\n", "Requirement already satisfied: deep-sort-realtime in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (1.3.2)\n", "Requirement already satisfied: requests<3.0.0,>=2.25.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from internetarchive) (2.27.1)\n", "Requirement already satisfied: schema>=0.4.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from internetarchive) (0.7.5)\n", "Requirement already satisfied: jsonpatch>=0.4 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from internetarchive) (1.32)\n", "Requirement already satisfied: tqdm>=4.0.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from internetarchive) (4.64.0)\n", "Requirement already satisfied: urllib3>=1.26.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from internetarchive) (1.26.12)\n", "Requirement already satisfied: docopt<0.7.0,>=0.6.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from internetarchive) (0.6.2)\n", "Requirement already satisfied: scipy>=1.4.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from ultralytics) (1.9.0)\n", "Requirement already satisfied: opencv-python>=4.6.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from ultralytics) (4.6.0.66)\n", "Requirement already satisfied: torchvision>=0.8.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from ultralytics) (0.12.0)\n", "Requirement already satisfied: pandas>=1.1.4 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from ultralytics) (1.4.3)\n", "Requirement already satisfied: numpy>=1.18.5 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from ultralytics) (1.23.1)\n", "Requirement already satisfied: sentry-sdk in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from ultralytics) (1.10.1)\n", "Requirement already satisfied: matplotlib>=3.2.2 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from ultralytics) (3.5.1)\n", "Requirement already satisfied: Pillow>=7.1.2 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from ultralytics) (9.0.1)\n", "Requirement already satisfied: seaborn>=0.11.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from ultralytics) (0.12.2)\n", "Requirement already satisfied: torch>=1.7.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from ultralytics) (1.11.0)\n", "Requirement already satisfied: psutil in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from ultralytics) (5.9.4)\n", "Requirement already satisfied: PyYAML>=5.3.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from ultralytics) (6.0)\n", "Requirement already satisfied: thop>=0.1.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from ultralytics) (0.1.1.post2209072238)\n", "Requirement already satisfied: six in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddlepaddle) (1.16.0)\n", "Requirement already satisfied: protobuf<=3.20.0,>=3.1.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddlepaddle) (3.20.0)\n", "Requirement already satisfied: astor in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddlepaddle) (0.8.1)\n", "Requirement already satisfied: paddle-bfloat==0.1.7 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddlepaddle) (0.1.7)\n", "Requirement already satisfied: opt-einsum==3.3.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddlepaddle) (3.3.0)\n", "Requirement already satisfied: decorator in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddlepaddle) (5.1.1)\n", "Requirement already satisfied: imgaug in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (0.4.0)\n", "Requirement already satisfied: pyclipper in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (1.3.0.post3)\n", "Requirement already satisfied: PyMuPDF<1.21.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (1.20.2)\n", "Requirement already satisfied: attrdict in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (2.0.1)\n", "Requirement already satisfied: visualdl in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from paddleocr) (2.5.0)\n", "Requirement already satisfied: cython in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from paddleocr) (0.29.33)\n", "Requirement already satisfied: fonttools>=4.24.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (4.29.1)\n", "Requirement already satisfied: beautifulsoup4 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (4.10.0)\n", "Requirement already satisfied: openpyxl in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from paddleocr) (3.1.1)\n", "Requirement already satisfied: premailer in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from paddleocr) (3.10.0)\n", "Requirement already satisfied: lmdb in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (1.3.0)\n", "Requirement already satisfied: lxml in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (4.8.0)\n", "Requirement already satisfied: pdf2docx in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from paddleocr) (0.5.6)\n", "Requirement already satisfied: shapely in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (1.8.2)\n", "Requirement already satisfied: fire>=0.3.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from paddleocr) (0.5.0)\n", "Requirement already satisfied: rapidfuzz in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (2.4.2)\n", "Requirement already satisfied: python-docx in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (0.8.11)\n", "Requirement already satisfied: scikit-image in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (0.19.3)\n", "Requirement already satisfied: opencv-contrib-python<=4.6.0.66 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from paddleocr) (4.6.0.66)\n", "Requirement already satisfied: termcolor in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from fire>=0.3.0->paddleocr) (1.1.0)\n", "Requirement already satisfied: jsonpointer>=1.9 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from jsonpatch>=0.4->internetarchive) (2.3)\n", "Requirement already satisfied: cycler>=0.10 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from matplotlib>=3.2.2->ultralytics) (0.11.0)\n", "Requirement already satisfied: kiwisolver>=1.0.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from matplotlib>=3.2.2->ultralytics) (1.3.2)\n", "Requirement already satisfied: packaging>=20.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from matplotlib>=3.2.2->ultralytics) (21.3)\n", "Requirement already satisfied: pyparsing>=2.2.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from matplotlib>=3.2.2->ultralytics) (3.0.7)\n", "Requirement already satisfied: python-dateutil>=2.7 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from matplotlib>=3.2.2->ultralytics) (2.8.2)\n", "Requirement already satisfied: pytz>=2020.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from pandas>=1.1.4->ultralytics) (2022.7.1)\n", "Requirement already satisfied: charset-normalizer~=2.0.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from requests<3.0.0,>=2.25.0->internetarchive) (2.0.12)\n", "Requirement already satisfied: idna<4,>=2.5 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from requests<3.0.0,>=2.25.0->internetarchive) (3.3)\n", "Requirement already satisfied: certifi>=2017.4.17 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from requests<3.0.0,>=2.25.0->internetarchive) (2022.12.7)\n", "Requirement already satisfied: contextlib2>=0.5.5 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from schema>=0.4.0->internetarchive) (21.6.0)\n", "Requirement already satisfied: typing-extensions in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from torch>=1.7.0->ultralytics) (4.1.1)\n", "Requirement already satisfied: soupsieve>1.2 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from beautifulsoup4->paddleocr) (2.3.1)\n", "Requirement already satisfied: imageio in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from imgaug->paddleocr) (2.21.0)\n", "Requirement already satisfied: networkx>=2.2 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from scikit-image->paddleocr) (2.8.5)\n", "Requirement already satisfied: tifffile>=2019.7.26 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from scikit-image->paddleocr) (2022.8.3)\n", "Requirement already satisfied: PyWavelets>=1.1.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from scikit-image->paddleocr) (1.3.0)\n", "Requirement already satisfied: et-xmlfile in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from openpyxl->paddleocr) (1.1.0)\n", "Requirement already satisfied: cachetools in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from premailer->paddleocr) (5.3.0)\n", "Requirement already satisfied: cssutils in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from premailer->paddleocr) (2.6.0)\n", "Requirement already satisfied: cssselect in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from premailer->paddleocr) (1.2.0)\n", "Requirement already satisfied: jarowinkler<2.0.0,>=1.2.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from rapidfuzz->paddleocr) (1.2.0)\n", "Requirement already satisfied: rarfile in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from visualdl->paddleocr) (4.0)\n", "Requirement already satisfied: multiprocess in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from visualdl->paddleocr) (0.70.14)\n", "Requirement already satisfied: bce-python-sdk in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from visualdl->paddleocr) (0.8.79)\n", "Requirement already satisfied: gradio in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from visualdl->paddleocr) (3.20.1)\n", "Requirement already satisfied: Flask-Babel>=3.0.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from visualdl->paddleocr) (3.0.1)\n", "Requirement already satisfied: onnx>=1.6.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from visualdl->paddleocr) (1.12.0)\n", "Requirement already satisfied: flask>=1.1.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from visualdl->paddleocr) (2.2.3)\n", "Requirement already satisfied: tritonclient[all] in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from visualdl->paddleocr) (2.30.0)\n", "Requirement already satisfied: x2paddle in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from visualdl->paddleocr) (1.4.0)\n", "Requirement already satisfied: Jinja2>=3.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from flask>=1.1.1->visualdl->paddleocr) (3.1.2)\n", "Requirement already satisfied: click>=8.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from flask>=1.1.1->visualdl->paddleocr) (8.0.3)\n", "Requirement already satisfied: itsdangerous>=2.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from flask>=1.1.1->visualdl->paddleocr) (2.1.2)\n", "Requirement already satisfied: Werkzeug>=2.2.2 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from flask>=1.1.1->visualdl->paddleocr) (2.2.3)\n", "Requirement already satisfied: Babel<3.0.0,>=2.11.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from Flask-Babel>=3.0.0->visualdl->paddleocr) (2.12.1)\n", "Requirement already satisfied: pycryptodome>=3.8.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from bce-python-sdk->visualdl->paddleocr) (3.15.0)\n", "Requirement already satisfied: future>=0.6.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from bce-python-sdk->visualdl->paddleocr) (0.18.3)\n", "Requirement already satisfied: websockets>=10.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (10.4)\n", "Requirement already satisfied: uvicorn in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (0.18.2)\n", "Requirement already satisfied: altair>=4.2.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (4.2.2)\n", "Requirement already satisfied: pydantic in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (1.9.1)\n", "Requirement already satisfied: aiohttp in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (3.8.1)\n", "Requirement already satisfied: fastapi in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (0.79.0)\n", "Requirement already satisfied: orjson in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (3.7.11)\n", "Requirement already satisfied: mdit-py-plugins<=0.3.3 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (0.3.0)\n", "Requirement already satisfied: fsspec in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (2022.7.1)\n", "Requirement already satisfied: python-multipart in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (0.0.5)\n", "Requirement already satisfied: ffmpy in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (0.3.0)\n", "Requirement already satisfied: httpx in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (0.23.0)\n", "Requirement already satisfied: pydub in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (0.25.1)\n", "Requirement already satisfied: aiofiles in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (23.1.0)\n", "Requirement already satisfied: markupsafe in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (2.1.2)\n", "Requirement already satisfied: markdown-it-py[linkify]>=2.0.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gradio->visualdl->paddleocr) (2.1.0)\n", "Requirement already satisfied: dill>=0.3.6 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from multiprocess->visualdl->paddleocr) (0.3.6)\n", "Requirement already satisfied: python-rapidjson>=0.9.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from tritonclient[all]->visualdl->paddleocr) (1.9)\n", "Requirement already satisfied: grpcio>=1.41.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from tritonclient[all]->visualdl->paddleocr) (1.51.3)\n", "Requirement already satisfied: geventhttpclient<=2.0.2,>=1.4.4 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from tritonclient[all]->visualdl->paddleocr) (2.0.2)\n", "Requirement already satisfied: sympy in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from x2paddle->visualdl->paddleocr) (1.11.1)\n", "Requirement already satisfied: attrs>=17.3.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from aiohttp->gradio->visualdl->paddleocr) (21.4.0)\n", "Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from aiohttp->gradio->visualdl->paddleocr) (4.0.2)\n", "Requirement already satisfied: multidict<7.0,>=4.5 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from aiohttp->gradio->visualdl->paddleocr) (6.0.2)\n", "Requirement already satisfied: yarl<2.0,>=1.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from aiohttp->gradio->visualdl->paddleocr) (1.7.2)\n", "Requirement already satisfied: frozenlist>=1.1.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from aiohttp->gradio->visualdl->paddleocr) (1.3.0)\n", "Requirement already satisfied: aiosignal>=1.1.2 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from aiohttp->gradio->visualdl->paddleocr) (1.2.0)\n", "Requirement already satisfied: toolz in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from altair>=4.2.0->gradio->visualdl->paddleocr) (0.12.0)\n", "Requirement already satisfied: jsonschema>=3.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from altair>=4.2.0->gradio->visualdl->paddleocr) (4.4.0)\n", "Requirement already satisfied: entrypoints in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from altair>=4.2.0->gradio->visualdl->paddleocr) (0.4)\n", "Requirement already satisfied: brotli in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from geventhttpclient<=2.0.2,>=1.4.4->tritonclient[all]->visualdl->paddleocr) (1.0.9)\n", "Requirement already satisfied: gevent>=0.13 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from geventhttpclient<=2.0.2,>=1.4.4->tritonclient[all]->visualdl->paddleocr) (22.10.2)\n", "Requirement already satisfied: mdurl~=0.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from markdown-it-py[linkify]>=2.0.0->gradio->visualdl->paddleocr) (0.1.1)\n", "Requirement already satisfied: linkify-it-py~=1.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from markdown-it-py[linkify]>=2.0.0->gradio->visualdl->paddleocr) (1.0.3)\n", "Requirement already satisfied: starlette==0.19.1 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from fastapi->gradio->visualdl->paddleocr) (0.19.1)\n", "Requirement already satisfied: anyio<5,>=3.4.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from starlette==0.19.1->fastapi->gradio->visualdl->paddleocr) (3.6.1)\n", "Requirement already satisfied: httpcore<0.16.0,>=0.15.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from httpx->gradio->visualdl->paddleocr) (0.15.0)\n", "Requirement already satisfied: sniffio in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from httpx->gradio->visualdl->paddleocr) (1.2.0)\n", "Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from httpx->gradio->visualdl->paddleocr) (1.5.0)\n", "Requirement already satisfied: mpmath>=0.19 in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from sympy->x2paddle->visualdl->paddleocr) (1.2.1)\n", "Requirement already satisfied: h11>=0.8 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from uvicorn->gradio->visualdl->paddleocr) (0.12.0)\n", "Requirement already satisfied: greenlet>=2.0.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gevent>=0.13->geventhttpclient<=2.0.2,>=1.4.4->tritonclient[all]->visualdl->paddleocr) (2.0.2)\n", "Requirement already satisfied: setuptools in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from gevent>=0.13->geventhttpclient<=2.0.2,>=1.4.4->tritonclient[all]->visualdl->paddleocr) (57.4.0)\n", "Requirement already satisfied: zope.event in /Users/norbert.elter/.pyenv/versions/3.10.0/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from gevent>=0.13->geventhttpclient<=2.0.2,>=1.4.4->tritonclient[all]->visualdl->paddleocr) (4.6)\n", "Requirement already satisfied: zope.interface in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from gevent>=0.13->geventhttpclient<=2.0.2,>=1.4.4->tritonclient[all]->visualdl->paddleocr) (5.5.2)\n", "Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from jsonschema>=3.0->altair>=4.2.0->gradio->visualdl->paddleocr) (0.18.1)\n", "Requirement already satisfied: uc-micro-py in /Users/norbert.elter/.pyenv/versions/3.10.0/lib/python3.10/site-packages (from linkify-it-py~=1.0->markdown-it-py[linkify]>=2.0.0->gradio->visualdl->paddleocr) (1.0.1)\n", "Note: you may need to restart the kernel to use updated packages.\n" ] } ], "source": [ "# Install deps\n", "\n", "%pip install internetarchive split-folders ultralytics paddlepaddle paddleocr deep-sort-realtime" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": { "id": "kDbEE93UScwS" }, "source": [ "# Download dataset and split it" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "execution": { "iopub.execute_input": "2022-07-26T19:33:15.207454Z", "iopub.status.busy": "2022-07-26T19:33:15.206852Z", "iopub.status.idle": "2022-07-26T20:00:28.967257Z", "shell.execute_reply": "2022-07-26T20:00:28.966508Z", "shell.execute_reply.started": "2022-07-26T19:33:15.207429Z" } }, "outputs": [], "source": [ "from internetarchive import download\n", "\n", "# Download dataset\n", "download(\"anpr-dataset\", files=[\"anpr-dataset.tar.gz\"], verbose=True, no_directory=True) # type: ignore" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "execution": { "iopub.execute_input": "2022-07-26T20:35:52.636335Z", "iopub.status.busy": "2022-07-26T20:35:52.635855Z", "iopub.status.idle": "2022-07-26T20:39:29.356882Z", "shell.execute_reply": "2022-07-26T20:39:29.356259Z", "shell.execute_reply.started": "2022-07-26T20:35:52.636312Z" } }, "outputs": [], "source": [ "# Unpack dataset\n", "import tarfile\n", "\n", "with tarfile.open(\"anpr-dataset.tar.gz\") as tar:\n", " tar.extractall(\"anpr-dataset\")" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "execution": { "iopub.execute_input": "2022-07-29T17:47:04.036461Z", "iopub.status.busy": "2022-07-29T17:47:04.035883Z", "iopub.status.idle": "2022-07-29T17:47:04.121419Z", "shell.execute_reply": "2022-07-29T17:47:04.120217Z", "shell.execute_reply.started": "2022-07-29T17:47:04.036432Z" } }, "outputs": [ { "data": { "text/html": [ "
\n", " | File | \n", "
---|---|
0 | \n", "anpr-dataset/labeled_images/images/CarLongPlat... | \n", "
1 | \n", "anpr-dataset/labeled_images/images/video11_208... | \n", "
2 | \n", "anpr-dataset/labeled_images/images/CarLongPlat... | \n", "
3 | \n", "anpr-dataset/labeled_images/images/CarLongPlat... | \n", "
4 | \n", "anpr-dataset/labeled_images/images/xemay2128_j... | \n", "
... | \n", "... | \n", "
28670 | \n", "anpr-dataset/labeled_images/images/CarLongPlat... | \n", "
28671 | \n", "anpr-dataset/labeled_images/images/Cars14_png_... | \n", "
28672 | \n", "anpr-dataset/labeled_images/images/rotatequand... | \n", "
28673 | \n", "anpr-dataset/labeled_images/images/CarLongPlat... | \n", "
28674 | \n", "anpr-dataset/labeled_images/images/Cars47_png.... | \n", "
28675 rows × 1 columns
\n", "