File size: 38,050 Bytes
8f0a8fd
1
{"language": "Python", "id": 4, "repo_owner": "mikel-brostrom", "repo_name": "yolo_tracking", "head_branch": "master", "workflow_name": "CI CPU testing", "workflow_filename": "ci.yml", "workflow_path": ".github/workflows/ci.yml", "contributor": "mikel-brostrom", "sha_fail": "b4cd344b4fd4316112beb324fe04d703fd2b7254", "sha_success": "075bec6fa4288a82f3833b03183819f0494d66b3", "workflow": "# name of the workflow, what it is doing (optional)\nname: CI CPU testing\n\n# events that trigger the workflow (required)\non:\n  push:\n    branches: [master, CIdebug]\n  pull_request:\n    # pull request where master is target\n    branches: [master]\n\nenv:\n  # Directory of PyPi package to be tested\n  PACKAGE_DIR: boxmot\n  # Minimum acceptable test coverage\n  # Increase as you add more tests to increase coverage\n  COVERAGE_FAIL_UNDER: 29\n\n# the workflow that gets triggerd\njobs:\n  build:\n    runs-on: ${{ matrix.os }}\n    strategy:\n      fail-fast: false\n      matrix:\n        os: [ubuntu-latest]   # skip windows-latest for\n        python-version: ['3.8', '3.9', '3.10']\n        #model: ['yolov8n', 'yolo_nas_s', yolox_n]  # yolo models to test\n        #tracking-methods: ['deepocsort', 'ocsort', 'botsort', 'strongsort', 'bytetrack']  # tracking methods to  test\n\n    # Timeout: https://stackoverflow.com/a/59076067/4521646\n    timeout-minutes: 50\n    steps:\n\n      - uses: actions/checkout@v4  # Check out the repository\n      - uses: actions/setup-python@v5  # Prepare environment with python 3.9\n        with:\n          python-version: ${{ matrix.python-version }}\n          cache: 'pip' # caching pip dependencies\n      - name: Install requirements\n        shell: bash  # for Windows compatibility\n        run: |\n          python -m pip install --upgrade pip setuptools wheel\n          pip install -e . pytest pytest-cov --extra-index-url https://download.pytorch.org/whl/cpu\n          python --version\n          pip --version\n          pip list\n\n      - name: Tests all tracking options\n        shell: bash  # for Windows compatibility\n        env:\n          IMG: ./assets/MOT17-mini/train/MOT17-05-FRCNN/img1/000001.jpg\n        run: |\n          # deepocsort fro all supported yolo models\n          python examples/track.py --tracking-method deepocsort --source $IMG --imgsz 320\n          python examples/track.py --yolo-model yolo_nas_s --tracking-method deepocsort --source $IMG --imgsz 320\n          # python examples/track.py --yolo-model yolox_n --tracking-method deepocsort --source $IMG --imgsz 320\n\n          # hybridsort\n          python examples/track.py --tracking-method hybridsort --source $IMG --imgsz 320\n\n          # botsort\n          python examples/track.py --tracking-method botsort --source $IMG --imgsz 320\n\n          # strongsort\n          python examples/track.py --tracking-method strongsort --source $IMG --imgsz 320\n\n          # ocsort\n          python examples/track.py --tracking-method ocsort --source $IMG --imgsz 320\n\n          # bytetrack\n          python examples/track.py --tracking-method bytetrack --source $IMG --imgsz 320\n\n      - name: Pytest tests  # after tracking options as this does not download models\n        shell: bash  # for Windows compatibility\n        run: |\n\n          # needed in TFLite export\n          wget https://github.com/PINTO0309/onnx2tf/releases/download/1.16.31/flatc.tar.gz\n          tar -zxvf flatc.tar.gz\n          sudo chmod +x flatc\n          sudo mv flatc /usr/bin/\n\n          pytest --cov=$PACKAGE_DIR --cov-report=html -v tests\n          coverage report --fail-under=$COVERAGE_FAIL_UNDER\n\n      - name: Tests exported reid models\n        env:\n            IMG: ./assets/MOT17-mini/train/MOT17-05-FRCNN/img1/000001.jpg\n        shell: bash  # for Windows compatibility\n        run: |\n\n          # test exported reid model\n          python examples/track.py --reid-model examples/weights/osnet_x0_25_msmt17.torchscript                                   --source $IMG --imgsz 320\n          python examples/track.py --reid-model examples/weights/osnet_x0_25_msmt17.onnx                                          --source $IMG --imgsz 320\n          #python examples/track.py --reid-model examples/weights/osnet_x0_25_msmt17_saved_model/osnet_x0_25_msmt17_float16.tflite --source $IMG --imgsz 320\n          python examples/track.py --reid-model examples/weights/osnet_x0_25_msmt17_openvino_model                                --source $IMG --imgsz 320\n\n      - name: Test tracking with seg models\n        env:\n            IMG: ./assets/MOT17-mini/train/MOT17-05-FRCNN/img1/000001.jpg\n        shell: bash  # for Windows compatibility\n        run: |\n          # tracking with SEG models\n          python examples/track.py --tracking-method deepocsort --yolo-model yolov8n-seg.pt --source $IMG\n\n      - name: Test tracking with pose models\n        env:\n          IMG: ./assets/MOT17-mini/train/MOT17-05-FRCNN/img1/000001.jpg\n        shell: bash  # for Windows compatibility\n        run: |\n          # tracking with POSE models\n          python3 examples/track.py --yolo-model weights/yolov8n.pt --source $IMG --imgsz 320\n\n      - name: Test validation on MOT17 subset\n        shell: bash  # for Windows compatibility\n        run: |\n          # validation on a few MOT17 imges\n          python examples/val.py --tracking-method deepocsort --yolo-model yolov8n.pt --benchmark MOT17-mini --imgsz 320 --conf 0.2\n\n      - name: Test evolution on MOT17 subset\n        shell: bash  # for Windows compatibility\n        run: |\n          # evolve a for a single set of parameters\n          python examples/evolve.py --objectives HOTA,MOTA,IDF1 --benchmark MOT17-mini --n-trials 1 --imgsz 320 --conf 0.2\n", "logs": [{"step_name": "build (ubuntu-latest, 3.8)/6_Pytest tests.txt", "log": "##[group]Run # needed in TFLite export\n\u001b[36;1m\u001b[0m\n\u001b[36;1m# needed in TFLite export\u001b[0m\n\u001b[36;1mwget https://github.com/PINTO0309/onnx2tf/releases/download/1.16.31/flatc.tar.gz\u001b[0m\n\u001b[36;1mtar -zxvf flatc.tar.gz\u001b[0m\n\u001b[36;1msudo chmod +x flatc\u001b[0m\n\u001b[36;1msudo mv flatc /usr/bin/\u001b[0m\n\u001b[36;1m\u001b[0m\n\u001b[36;1mpytest --cov=$PACKAGE_DIR --cov-report=html -v tests\u001b[0m\n\u001b[36;1mcoverage report --fail-under=$COVERAGE_FAIL_UNDER\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n  PACKAGE_DIR: boxmot\n  COVERAGE_FAIL_UNDER: 29\n  pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n##[endgroup]\n--2024-01-12 21:22:49--  https://github.com/PINTO0309/onnx2tf/releases/download/1.16.31/flatc.tar.gz\nResolving github.com (github.com)... 140.82.113.4\nConnecting to github.com (github.com)|140.82.113.4|:443... connected.\nHTTP request sent, awaiting response... 302 Found\nLocation: https://objects.githubusercontent.com/github-production-release-asset-2e65be/541831874/29499355-44ab-4fb6-86c8-582f4bad68a3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240112%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240112T212250Z&X-Amz-Expires=300&X-Amz-Signature=0bb64fda387269a4ce4fae58a47108dda06e20cbe0b749718c07eb4d3da60221&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=541831874&response-content-disposition=attachment%3B%20filename%3Dflatc.tar.gz&response-content-type=application%2Foctet-stream [following]\n--2024-01-12 21:22:50--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/541831874/29499355-44ab-4fb6-86c8-582f4bad68a3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240112%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240112T212250Z&X-Amz-Expires=300&X-Amz-Signature=0bb64fda387269a4ce4fae58a47108dda06e20cbe0b749718c07eb4d3da60221&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=541831874&response-content-disposition=attachment%3B%20filename%3Dflatc.tar.gz&response-content-type=application%2Foctet-stream\nResolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.110.133, ...\nConnecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 1382707 (1.3M) [application/octet-stream]\nSaving to: \u2018flatc.tar.gz\u2019\n\n     0K .......... .......... .......... .......... ..........  3% 13.7M 0s\n    50K .......... .......... .......... .......... ..........  7% 30.9M 0s\n   100K .......... .......... .......... .......... .......... 11%  129M 0s\n   150K .......... .......... .......... .......... .......... 14%  176M 0s\n   200K .......... .......... .......... .......... .......... 18% 46.6M 0s\n   250K .......... .......... .......... .......... .......... 22%  174M 0s\n   300K .......... .......... .......... .......... .......... 25%  142M 0s\n   350K .......... .......... .......... .......... .......... 29%  206M 0s\n   400K .......... .......... .......... .......... .......... 33%  256M 0s\n   450K .......... .......... .......... .......... .......... 37%  121M 0s\n   500K .......... .......... .......... .......... .......... 40%  171M 0s\n   550K .......... .......... .......... .......... .......... 44%  137M 0s\n   600K .......... .......... .......... .......... .......... 48%  185M 0s\n   650K .......... .......... .......... .......... .......... 51%  163M 0s\n   700K .......... .......... .......... .......... .......... 55%  129M 0s\n   750K .......... .......... .......... .......... .......... 59%  163M 0s\n   800K .......... .......... .......... .......... .......... 62%  175M 0s\n   850K .......... .......... .......... .......... .......... 66%  246M 0s\n   900K .......... .......... .......... .......... .......... 70%  150M 0s\n   950K .......... .......... .......... .......... .......... 74%  257M 0s\n  1000K .......... .......... .......... .......... .......... 77%  251M 0s\n  1050K .......... .......... .......... .......... .......... 81%  232M 0s\n  1100K .......... .......... .......... .......... .......... 85%  255M 0s\n  1150K .......... .......... .......... .......... .......... 88%  257M 0s\n  1200K .......... .......... .......... .......... .......... 92%  258M 0s\n  1250K .......... .......... .......... .......... .......... 96%  222M 0s\n  1300K .......... .......... .......... .......... .......... 99%  260M 0s\n  1350K                                                       100%  572G=0.01s\n\n2024-01-12 21:22:50 (105 MB/s) - \u2018flatc.tar.gz\u2019 saved [1382707/1382707]\n\nflatc\n============================= test session starts ==============================\nplatform linux -- Python 3.8.18, pytest-7.4.4, pluggy-1.3.0 -- /opt/hostedtoolcache/Python/3.8.18/x64/bin/python\ncachedir: .pytest_cache\nrootdir: /home/runner/work/yolo_tracking/yolo_tracking\nplugins: hydra-core-1.3.2, cov-4.1.0\ncollecting ... collected 14 items\n\ntests/test_exports.py::test_export_torchscript PASSED                    [  7%]\ntests/test_exports.py::test_export_onnx PASSED                           [ 14%]\ntests/test_exports.py::test_export_openvino PASSED                       [ 21%]\ntests/test_python.py::test_strongsort_instantiation PASSED               [ 28%]\ntests/test_python.py::test_botsort_instantiation PASSED                  [ 35%]\ntests/test_python.py::test_deepocsort_instantiation PASSED               [ 42%]\ntests/test_python.py::test_ocsort_instantiation PASSED                   [ 50%]\ntests/test_python.py::test_bytetrack_instantiation PASSED                [ 57%]\ntests/test_python.py::test_deepocsort_output FAILED                      [ 64%]\ntests/test_python.py::test_ocsort_output PASSED                          [ 71%]\ntests/test_python.py::test_botsort_output PASSED                         [ 78%]\ntests/test_python.py::test_bytetrack_output PASSED                       [ 85%]\ntests/test_python.py::test_strongsort_output PASSED                      [ 92%]\ntests/test_python.py::test_gsi PASSED                                    [100%]\n\n=================================== FAILURES ===================================\n____________________________ test_deepocsort_output ____________________________\n\n    def test_deepocsort_output():\n        tracker_conf = get_tracker_config('deepocsort')\n>       tracker = create_tracker(\n            tracker_type='deepocsort',\n            tracker_config=tracker_conf,\n            reid_weights=WEIGHTS / 'mobilenetv2_x1_4_dukemtmcreid.pt',\n            device='cpu',\n            half=False,\n            per_class=False,\n            asso_func=\"centroid\"\n        )\nE       TypeError: create_tracker() got an unexpected keyword argument 'asso_func'\n\ntests/test_python.py:53: TypeError\n=============================== warnings summary ===============================\nboxmot/utils/checks.py:5\n  /home/runner/work/yolo_tracking/yolo_tracking/boxmot/utils/checks.py:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html\n    import pkg_resources\n\n../../../../../opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pkg_resources/__init__.py:2868\n  /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pkg_resources/__init__.py:2868: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.\n  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages\n    declare_namespace(pkg)\n\n../../../../../opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pkg_resources/__init__.py:2868\n  /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pkg_resources/__init__.py:2868: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.\n  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages\n    declare_namespace(pkg)\n\n../../../../../opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pkg_resources/__init__.py:2868\n../../../../../opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pkg_resources/__init__.py:2868\n../../../../../opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pkg_resources/__init__.py:2868\n../../../../../opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pkg_resources/__init__.py:2868\n  /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/pkg_resources/__init__.py:2868: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.\n  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages\n    declare_namespace(pkg)\n\ntests/test_exports.py::test_export_onnx\n  /home/runner/work/yolo_tracking/yolo_tracking/boxmot/appearance/backbones/osnet.py:389: 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 return_featuremaps:\n\ntests/test_exports.py::test_export_openvino\n  /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/defusedxml/__init__.py:30: DeprecationWarning: defusedxml.cElementTree is deprecated, import from defusedxml.ElementTree instead.\n    from . import cElementTree\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------- coverage: platform linux, python 3.8.18-final-0 -----------\nCoverage HTML written to dir htmlcov\n\n=========================== short test summary info ============================\nFAILED tests/test_python.py::test_deepocsort_output - TypeError: create_tracker() got an unexpected keyword argument 'asso_func'\n================== 1 failed, 13 passed, 9 warnings in 31.50s ===================\n##[error]Process completed with exit code 1.\n"}, {"step_name": "build (ubuntu-latest, 3.9)/6_Pytest tests.txt", "log": "##[group]Run # needed in TFLite export\n\u001b[36;1m\u001b[0m\n\u001b[36;1m# needed in TFLite export\u001b[0m\n\u001b[36;1mwget https://github.com/PINTO0309/onnx2tf/releases/download/1.16.31/flatc.tar.gz\u001b[0m\n\u001b[36;1mtar -zxvf flatc.tar.gz\u001b[0m\n\u001b[36;1msudo chmod +x flatc\u001b[0m\n\u001b[36;1msudo mv flatc /usr/bin/\u001b[0m\n\u001b[36;1m\u001b[0m\n\u001b[36;1mpytest --cov=$PACKAGE_DIR --cov-report=html -v tests\u001b[0m\n\u001b[36;1mcoverage report --fail-under=$COVERAGE_FAIL_UNDER\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n  PACKAGE_DIR: boxmot\n  COVERAGE_FAIL_UNDER: 29\n  pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig\n  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n##[endgroup]\n--2024-01-12 21:22:56--  https://github.com/PINTO0309/onnx2tf/releases/download/1.16.31/flatc.tar.gz\nResolving github.com (github.com)... 140.82.112.3\nConnecting to github.com (github.com)|140.82.112.3|:443... connected.\nHTTP request sent, awaiting response... 302 Found\nLocation: https://objects.githubusercontent.com/github-production-release-asset-2e65be/541831874/29499355-44ab-4fb6-86c8-582f4bad68a3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240112%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240112T212256Z&X-Amz-Expires=300&X-Amz-Signature=c2784e798a8e2dc3af201147af969b33ab7179077dd2751f9e53a641373be144&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=541831874&response-content-disposition=attachment%3B%20filename%3Dflatc.tar.gz&response-content-type=application%2Foctet-stream [following]\n--2024-01-12 21:22:56--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/541831874/29499355-44ab-4fb6-86c8-582f4bad68a3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240112%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240112T212256Z&X-Amz-Expires=300&X-Amz-Signature=c2784e798a8e2dc3af201147af969b33ab7179077dd2751f9e53a641373be144&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=541831874&response-content-disposition=attachment%3B%20filename%3Dflatc.tar.gz&response-content-type=application%2Foctet-stream\nResolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.109.133, ...\nConnecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 1382707 (1.3M) [application/octet-stream]\nSaving to: \u2018flatc.tar.gz\u2019\n\n     0K .......... .......... .......... .......... ..........  3% 32.7M 0s\n    50K .......... .......... .......... .......... ..........  7% 31.0M 0s\n   100K .......... .......... .......... .......... .......... 11% 79.8M 0s\n   150K .......... .......... .......... .......... .......... 14%  103M 0s\n   200K .......... .......... .......... .......... .......... 18%  177M 0s\n   250K .......... .......... .......... .......... .......... 22%  142M 0s\n   300K .......... .......... .......... .......... .......... 25%  113M 0s\n   350K .......... .......... .......... .......... .......... 29% 86.2M 0s\n   400K .......... .......... .......... .......... .......... 33%  141M 0s\n   450K .......... .......... .......... .......... .......... 37%  160M 0s\n   500K .......... .......... .......... .......... .......... 40%  100M 0s\n   550K .......... .......... .......... .......... .......... 44%  130M 0s\n   600K .......... .......... .......... .......... .......... 48%  157M 0s\n   650K .......... .......... .......... .......... .......... 51%  213M 0s\n   700K .......... .......... .......... .......... .......... 55%  215M 0s\n   750K .......... .......... .......... .......... .......... 59%  210M 0s\n   800K .......... .......... .......... .......... .......... 62% 68.8M 0s\n   850K .......... .......... .......... .......... .......... 66%  172M 0s\n   900K .......... .......... .......... .......... .......... 70%  162M 0s\n   950K .......... .......... .......... .......... .......... 74%  235M 0s\n  1000K .......... .......... .......... .......... .......... 77%  166M 0s\n  1050K .......... .......... .......... .......... .......... 81%  176M 0s\n  1100K .......... .......... .......... .......... .......... 85%  123M 0s\n  1150K .......... .......... .......... .......... .......... 88%  182M 0s\n  1200K .......... .......... .......... .......... .......... 92%  133M 0s\n  1250K .......... .......... .......... .......... .......... 96%  136M 0s\n  1300K .......... .......... .......... .......... .......... 99%  155M 0s\n  1350K                                                       100%  572G=0.01s\n\n2024-01-12 21:22:56 (109 MB/s) - \u2018flatc.tar.gz\u2019 saved [1382707/1382707]\n\nflatc\n============================= test session starts ==============================\nplatform linux -- Python 3.9.18, pytest-7.4.4, pluggy-1.3.0 -- /opt/hostedtoolcache/Python/3.9.18/x64/bin/python\ncachedir: .pytest_cache\nrootdir: /home/runner/work/yolo_tracking/yolo_tracking\nplugins: hydra-core-1.3.2, cov-4.1.0\ncollecting ... collected 14 items\n\ntests/test_exports.py::test_export_torchscript PASSED                    [  7%]\ntests/test_exports.py::test_export_onnx PASSED                           [ 14%]\ntests/test_exports.py::test_export_openvino PASSED                       [ 21%]\ntests/test_python.py::test_strongsort_instantiation PASSED               [ 28%]\ntests/test_python.py::test_botsort_instantiation PASSED                  [ 35%]\ntests/test_python.py::test_deepocsort_instantiation PASSED               [ 42%]\ntests/test_python.py::test_ocsort_instantiation PASSED                   [ 50%]\ntests/test_python.py::test_bytetrack_instantiation PASSED                [ 57%]\ntests/test_python.py::test_deepocsort_output FAILED                      [ 64%]\ntests/test_python.py::test_ocsort_output PASSED                          [ 71%]\ntests/test_python.py::test_botsort_output PASSED                         [ 78%]\ntests/test_python.py::test_bytetrack_output PASSED                       [ 85%]\ntests/test_python.py::test_strongsort_output PASSED                      [ 92%]\ntests/test_python.py::test_gsi PASSED                                    [100%]\n\n=================================== FAILURES ===================================\n____________________________ test_deepocsort_output ____________________________\n\n    def test_deepocsort_output():\n        tracker_conf = get_tracker_config('deepocsort')\n>       tracker = create_tracker(\n            tracker_type='deepocsort',\n            tracker_config=tracker_conf,\n            reid_weights=WEIGHTS / 'mobilenetv2_x1_4_dukemtmcreid.pt',\n            device='cpu',\n            half=False,\n            per_class=False,\n            asso_func=\"centroid\"\n        )\nE       TypeError: create_tracker() got an unexpected keyword argument 'asso_func'\n\ntests/test_python.py:53: TypeError\n=============================== warnings summary ===============================\nboxmot/utils/checks.py:5\n  /home/runner/work/yolo_tracking/yolo_tracking/boxmot/utils/checks.py:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html\n    import pkg_resources\n\n../../../../../opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pkg_resources/__init__.py:2868\n  /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pkg_resources/__init__.py:2868: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.\n  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages\n    declare_namespace(pkg)\n\n../../../../../opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pkg_resources/__init__.py:2868\n../../../../../opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pkg_resources/__init__.py:2868\n../../../../../opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pkg_resources/__init__.py:2868\n../../../../../opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pkg_resources/__init__.py:2868\n  /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pkg_resources/__init__.py:2868: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.\n  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages\n    declare_namespace(pkg)\n\ntests/test_exports.py::test_export_onnx\n  /home/runner/work/yolo_tracking/yolo_tracking/boxmot/appearance/backbones/osnet.py:389: 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 return_featuremaps:\n\ntests/test_exports.py::test_export_openvino\n  /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/defusedxml/__init__.py:30: DeprecationWarning: defusedxml.cElementTree is deprecated, import from defusedxml.ElementTree instead.\n    from . import cElementTree\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------- coverage: platform linux, python 3.9.18-final-0 -----------\nCoverage HTML written to dir htmlcov\n\n=========================== short test summary info ============================\nFAILED tests/test_python.py::test_deepocsort_output - TypeError: create_tracker() got an unexpected keyword argument 'asso_func'\n================== 1 failed, 13 passed, 8 warnings in 32.20s ===================\n##[error]Process completed with exit code 1.\n"}, {"step_name": "build (ubuntu-latest, 3.10)/6_Pytest tests.txt", "log": "##[group]Run # needed in TFLite export\n\u001b[36;1m\u001b[0m\n\u001b[36;1m# needed in TFLite export\u001b[0m\n\u001b[36;1mwget https://github.com/PINTO0309/onnx2tf/releases/download/1.16.31/flatc.tar.gz\u001b[0m\n\u001b[36;1mtar -zxvf flatc.tar.gz\u001b[0m\n\u001b[36;1msudo chmod +x flatc\u001b[0m\n\u001b[36;1msudo mv flatc /usr/bin/\u001b[0m\n\u001b[36;1m\u001b[0m\n\u001b[36;1mpytest --cov=$PACKAGE_DIR --cov-report=html -v tests\u001b[0m\n\u001b[36;1mcoverage report --fail-under=$COVERAGE_FAIL_UNDER\u001b[0m\nshell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}\nenv:\n  PACKAGE_DIR: boxmot\n  COVERAGE_FAIL_UNDER: 29\n  pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64\n  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig\n  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib\n##[endgroup]\n--2024-01-12 21:23:22--  https://github.com/PINTO0309/onnx2tf/releases/download/1.16.31/flatc.tar.gz\nResolving github.com (github.com)... 192.30.255.113\nConnecting to github.com (github.com)|192.30.255.113|:443... connected.\nHTTP request sent, awaiting response... 302 Found\nLocation: https://objects.githubusercontent.com/github-production-release-asset-2e65be/541831874/29499355-44ab-4fb6-86c8-582f4bad68a3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240112%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240112T212323Z&X-Amz-Expires=300&X-Amz-Signature=9a9df5c41bff888036ebd61dd2ceef9adb6937dc39984e23a2a2018e1678ed8f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=541831874&response-content-disposition=attachment%3B%20filename%3Dflatc.tar.gz&response-content-type=application%2Foctet-stream [following]\n--2024-01-12 21:23:23--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/541831874/29499355-44ab-4fb6-86c8-582f4bad68a3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240112%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240112T212323Z&X-Amz-Expires=300&X-Amz-Signature=9a9df5c41bff888036ebd61dd2ceef9adb6937dc39984e23a2a2018e1678ed8f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=541831874&response-content-disposition=attachment%3B%20filename%3Dflatc.tar.gz&response-content-type=application%2Foctet-stream\nResolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.109.133, ...\nConnecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 1382707 (1.3M) [application/octet-stream]\nSaving to: \u2018flatc.tar.gz\u2019\n\n     0K .......... .......... .......... .......... ..........  3% 18.7M 0s\n    50K .......... .......... .......... .......... ..........  7% 71.0M 0s\n   100K .......... .......... .......... .......... .......... 11% 58.4M 0s\n   150K .......... .......... .......... .......... .......... 14%  115M 0s\n   200K .......... .......... .......... .......... .......... 18%  143M 0s\n   250K .......... .......... .......... .......... .......... 22% 68.8M 0s\n   300K .......... .......... .......... .......... .......... 25%  143M 0s\n   350K .......... .......... .......... .......... .......... 29%  109M 0s\n   400K .......... .......... .......... .......... .......... 33%  158M 0s\n   450K .......... .......... .......... .......... .......... 37%  107M 0s\n   500K .......... .......... .......... .......... .......... 40%  163M 0s\n   550K .......... .......... .......... .......... .......... 44%  125M 0s\n   600K .......... .......... .......... .......... .......... 48%  111M 0s\n   650K .......... .......... .......... .......... .......... 51%  151M 0s\n   700K .......... .......... .......... .......... .......... 55%  118M 0s\n   750K .......... .......... .......... .......... .......... 59%  152M 0s\n   800K .......... .......... .......... .......... .......... 62%  199M 0s\n   850K .......... .......... .......... .......... .......... 66%  204M 0s\n   900K .......... .......... .......... .......... .......... 70%  207M 0s\n   950K .......... .......... .......... .......... .......... 74%  186M 0s\n  1000K .......... .......... .......... .......... .......... 77%  199M 0s\n  1050K .......... .......... .......... .......... .......... 81%  210M 0s\n  1100K .......... .......... .......... .......... .......... 85%  193M 0s\n  1150K .......... .......... .......... .......... .......... 88%  208M 0s\n  1200K .......... .......... .......... .......... .......... 92%  210M 0s\n  1250K .......... .......... .......... .......... .......... 96%  203M 0s\n  1300K .......... .......... .......... .......... .......... 99%  196M 0s\n  1350K                                                       100%  572G=0.01s\n\n2024-01-12 21:23:23 (110 MB/s) - \u2018flatc.tar.gz\u2019 saved [1382707/1382707]\n\nflatc\n============================= test session starts ==============================\nplatform linux -- Python 3.10.13, pytest-7.4.4, pluggy-1.3.0 -- /opt/hostedtoolcache/Python/3.10.13/x64/bin/python\ncachedir: .pytest_cache\nrootdir: /home/runner/work/yolo_tracking/yolo_tracking\nplugins: hydra-core-1.3.2, cov-4.1.0\ncollecting ... collected 14 items\n\ntests/test_exports.py::test_export_torchscript PASSED                    [  7%]\ntests/test_exports.py::test_export_onnx PASSED                           [ 14%]\ntests/test_exports.py::test_export_openvino PASSED                       [ 21%]\ntests/test_python.py::test_strongsort_instantiation PASSED               [ 28%]\ntests/test_python.py::test_botsort_instantiation PASSED                  [ 35%]\ntests/test_python.py::test_deepocsort_instantiation PASSED               [ 42%]\ntests/test_python.py::test_ocsort_instantiation PASSED                   [ 50%]\ntests/test_python.py::test_bytetrack_instantiation PASSED                [ 57%]\ntests/test_python.py::test_deepocsort_output FAILED                      [ 64%]\ntests/test_python.py::test_ocsort_output PASSED                          [ 71%]\ntests/test_python.py::test_botsort_output PASSED                         [ 78%]\ntests/test_python.py::test_bytetrack_output PASSED                       [ 85%]\ntests/test_python.py::test_strongsort_output PASSED                      [ 92%]\ntests/test_python.py::test_gsi PASSED                                    [100%]\n\n=================================== FAILURES ===================================\n____________________________ test_deepocsort_output ____________________________\n\n    def test_deepocsort_output():\n        tracker_conf = get_tracker_config('deepocsort')\n>       tracker = create_tracker(\n            tracker_type='deepocsort',\n            tracker_config=tracker_conf,\n            reid_weights=WEIGHTS / 'mobilenetv2_x1_4_dukemtmcreid.pt',\n            device='cpu',\n            half=False,\n            per_class=False,\n            asso_func=\"centroid\"\n        )\nE       TypeError: create_tracker() got an unexpected keyword argument 'asso_func'\n\ntests/test_python.py:53: TypeError\n=============================== warnings summary ===============================\nboxmot/utils/checks.py:5\n  /home/runner/work/yolo_tracking/yolo_tracking/boxmot/utils/checks.py:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html\n    import pkg_resources\n\n../../../../../opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pkg_resources/__init__.py:2868\n  /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pkg_resources/__init__.py:2868: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.\n  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages\n    declare_namespace(pkg)\n\n../../../../../opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pkg_resources/__init__.py:2868\n../../../../../opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pkg_resources/__init__.py:2868\n../../../../../opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pkg_resources/__init__.py:2868\n../../../../../opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pkg_resources/__init__.py:2868\n  /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/pkg_resources/__init__.py:2868: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.\n  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages\n    declare_namespace(pkg)\n\ntests/test_exports.py::test_export_onnx\n  /home/runner/work/yolo_tracking/yolo_tracking/boxmot/appearance/backbones/osnet.py:389: 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 return_featuremaps:\n\ntests/test_exports.py::test_export_openvino\n  /opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/defusedxml/__init__.py:30: DeprecationWarning: defusedxml.cElementTree is deprecated, import from defusedxml.ElementTree instead.\n    from . import cElementTree\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n\n---------- coverage: platform linux, python 3.10.13-final-0 ----------\nCoverage HTML written to dir htmlcov\n\n=========================== short test summary info ============================\nFAILED tests/test_python.py::test_deepocsort_output - TypeError: create_tracker() got an unexpected keyword argument 'asso_func'\n================== 1 failed, 13 passed, 8 warnings in 31.21s ===================\n##[error]Process completed with exit code 1.\n"}], "diff": "diff --git a/tests/test_python.py b/tests/test_python.py\nindex 027065c..fe049e8 100644\n--- a/tests/test_python.py\n+++ b/tests/test_python.py\n@@ -57,8 +57,8 @@ def test_deepocsort_output():\n         device='cpu',\n         half=False,\n         per_class=False,\n-        asso_func=\"centroid\"\n     )\n+    tracker.asso_func=\"centroid\"\n     rgb = np.random.randint(255, size=(640, 640, 3), dtype=np.uint8)\n     det = np.array([[144, 212, 578, 480, 0.82, 0],\n                     [425, 281, 576, 472, 0.56, 65]])\n", "difficulty": 3, "changed_files": ["tests/test_python.py"], "commit_link": "https://github.com/mikel-brostrom/yolo_tracking/tree/b4cd344b4fd4316112beb324fe04d703fd2b7254"}