-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect number of network outputs detected during int8 calibration leading to failure #3339
Comments
Looks like an env issue(related to CUDA I think) here, could you please try use our official docker image? |
Quick try: https://github.com/NVIDIA/TensorRT/tree/main/tools/Polygraphy/examples/cli/convert/01_int8_calibration_in_tensorrt in our official docker. |
The int8 calibration example works correctly both in and out of the docker image (ignore the timing values as I was compiling code at the same time). Outside
Inside
Using the official docker image with pytorch and torchvision built from the latest commits (217b37c023d and 7ba3d7e202 respectively), I still get this trt_builder.py script output without and with int8 calibration:
Updated environment
|
Looks like a cuda conflict between pytorch and tensorrt. we have pytorch docker in NGC, could you pease try that? Thanks! |
That doesn't appear to make any difference. Setup of docker image with extra installs required for the model:brett@brett-home:~/Work$ docker run --gpus all -it -v ./Autosensor:/home/brett/Work/Autosensor -v /usr/local/media:/usr/local/media --rm nvcr.io/nvidia/pytorch:23.09-py3
=============
== PyTorch ==
=============
NVIDIA Release 23.09 (build 69180607)
PyTorch Version 2.1.0a0+32f93b1
Container image Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Copyright (c) 2014-2023 Facebook Inc.
Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert)
Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu)
Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
Copyright (c) 2011-2013 NYU (Clement Farabet)
Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston)
Copyright (c) 2006 Idiap Research Institute (Samy Bengio)
Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz)
Copyright (c) 2015 Google Inc.
Copyright (c) 2015 Yangqing Jia
Copyright (c) 2013-2016 The Caffe contributors
All rights reserved.
Various files include modifications (c) NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
NOTE: The SHMEM allocation limit is set to the default of 64MB. This may be
insufficient for PyTorch. NVIDIA recommends the use of the following flags:
docker run --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 ...
root@cf9b065a0457:/workspace# apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -qq ffmpeg libffms2-5
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libapparmor1:amd64.
(Reading database ... 23331 files and directories currently installed.)
Preparing to unpack .../000-libapparmor1_3.0.4-2ubuntu2.2_amd64.deb ...
Unpacking libapparmor1:amd64 (3.0.4-2ubuntu2.2) ...
Selecting previously unselected package libdbus-1-3:amd64.
Preparing to unpack .../001-libdbus-1-3_1.12.20-2ubuntu4.1_amd64.deb ...
Unpacking libdbus-1-3:amd64 (1.12.20-2ubuntu4.1) ...
Selecting previously unselected package dbus.
Preparing to unpack .../002-dbus_1.12.20-2ubuntu4.1_amd64.deb ...
Unpacking dbus (1.12.20-2ubuntu4.1) ...
Selecting previously unselected package libelf1:amd64.
Preparing to unpack .../003-libelf1_0.186-1build1_amd64.deb ...
Unpacking libelf1:amd64 (0.186-1build1) ...
Selecting previously unselected package libfribidi0:amd64.
Preparing to unpack .../004-libfribidi0_1.0.8-2ubuntu3.1_amd64.deb ...
Unpacking libfribidi0:amd64 (1.0.8-2ubuntu3.1) ...
Selecting previously unselected package libicu70:amd64.
Preparing to unpack .../005-libicu70_70.1-2_amd64.deb ...
Unpacking libicu70:amd64 (70.1-2) ...
Selecting previously unselected package libslang2:amd64.
Preparing to unpack .../006-libslang2_2.3.2-5build4_amd64.deb ...
Unpacking libslang2:amd64 (2.3.2-5build4) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../007-libxml2_2.9.13+dfsg-1ubuntu0.3_amd64.deb ...
Unpacking libxml2:amd64 (2.9.13+dfsg-1ubuntu0.3) ...
Selecting previously unselected package shared-mime-info.
Preparing to unpack .../008-shared-mime-info_2.1-2_amd64.deb ...
Unpacking shared-mime-info (2.1-2) ...
Selecting previously unselected package ucf.
Preparing to unpack .../009-ucf_3.0043_all.deb ...
Moving old data out of the way
Unpacking ucf (3.0043) ...
Selecting previously unselected package xkb-data.
Preparing to unpack .../010-xkb-data_2.33-1_all.deb ...
Unpacking xkb-data (2.33-1) ...
Selecting previously unselected package libdrm-common.
Preparing to unpack .../011-libdrm-common_2.4.113-2~ubuntu0.22.04.1_all.deb ...
Unpacking libdrm-common (2.4.113-2~ubuntu0.22.04.1) ...
Selecting previously unselected package libdrm2:amd64.
Preparing to unpack .../012-libdrm2_2.4.113-2~ubuntu0.22.04.1_amd64.deb ...
Unpacking libdrm2:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Selecting previously unselected package libusb-1.0-0:amd64.
Preparing to unpack .../013-libusb-1.0-0_2%3a1.0.25-1ubuntu2_amd64.deb ...
Unpacking libusb-1.0-0:amd64 (2:1.0.25-1ubuntu2) ...
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../014-libxau6_1%3a1.0.9-1build5_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.9-1build5) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../015-libxdmcp6_1%3a1.1.3-0ubuntu5_amd64.deb ...
Unpacking libxdmcp6:amd64 (1:1.1.3-0ubuntu5) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../016-libxcb1_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb1:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../017-libx11-data_2%3a1.7.5-1ubuntu0.2_all.deb ...
Unpacking libx11-data (2:1.7.5-1ubuntu0.2) ...
Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../018-libx11-6_2%3a1.7.5-1ubuntu0.2_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.7.5-1ubuntu0.2) ...
Selecting previously unselected package libxext6:amd64.
Preparing to unpack .../019-libxext6_2%3a1.3.4-1build1_amd64.deb ...
Unpacking libxext6:amd64 (2:1.3.4-1build1) ...
Selecting previously unselected package libaom3:amd64.
Preparing to unpack .../020-libaom3_3.3.0-1_amd64.deb ...
Unpacking libaom3:amd64 (3.3.0-1) ...
Selecting previously unselected package libva2:amd64.
Preparing to unpack .../021-libva2_2.14.0-1_amd64.deb ...
Unpacking libva2:amd64 (2.14.0-1) ...
Selecting previously unselected package libmfx1:amd64.
Preparing to unpack .../022-libmfx1_22.3.0-1_amd64.deb ...
Unpacking libmfx1:amd64 (22.3.0-1) ...
Selecting previously unselected package libva-drm2:amd64.
Preparing to unpack .../023-libva-drm2_2.14.0-1_amd64.deb ...
Unpacking libva-drm2:amd64 (2.14.0-1) ...
Selecting previously unselected package libxfixes3:amd64.
Preparing to unpack .../024-libxfixes3_1%3a6.0.0-1_amd64.deb ...
Unpacking libxfixes3:amd64 (1:6.0.0-1) ...
Selecting previously unselected package libva-x11-2:amd64.
Preparing to unpack .../025-libva-x11-2_2.14.0-1_amd64.deb ...
Unpacking libva-x11-2:amd64 (2.14.0-1) ...
Selecting previously unselected package libvdpau1:amd64.
Preparing to unpack .../026-libvdpau1_1.4-3build2_amd64.deb ...
Unpacking libvdpau1:amd64 (1.4-3build2) ...
Selecting previously unselected package ocl-icd-libopencl1:amd64.
Preparing to unpack .../027-ocl-icd-libopencl1_2.2.14-3_amd64.deb ...
Unpacking ocl-icd-libopencl1:amd64 (2.2.14-3) ...
Selecting previously unselected package libavutil56:amd64.
Preparing to unpack .../028-libavutil56_7%3a4.4.2-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libavutil56:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Selecting previously unselected package libfreetype6:amd64.
Preparing to unpack .../029-libfreetype6_2.11.1+dfsg-1ubuntu0.2_amd64.deb ...
Unpacking libfreetype6:amd64 (2.11.1+dfsg-1ubuntu0.2) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../030-fonts-dejavu-core_2.37-2build1_all.deb ...
Unpacking fonts-dejavu-core (2.37-2build1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../031-fontconfig-config_2.13.1-4.2ubuntu5_all.deb ...
Unpacking fontconfig-config (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../032-libfontconfig1_2.13.1-4.2ubuntu5_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package libpixman-1-0:amd64.
Preparing to unpack .../033-libpixman-1-0_0.40.0-1ubuntu0.22.04.1_amd64.deb ...
Unpacking libpixman-1-0:amd64 (0.40.0-1ubuntu0.22.04.1) ...
Selecting previously unselected package libxcb-render0:amd64.
Preparing to unpack .../034-libxcb-render0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-render0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-shm0:amd64.
Preparing to unpack .../035-libxcb-shm0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-shm0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxrender1:amd64.
Preparing to unpack .../036-libxrender1_1%3a0.9.10-1build4_amd64.deb ...
Unpacking libxrender1:amd64 (1:0.9.10-1build4) ...
Selecting previously unselected package libcairo2:amd64.
Preparing to unpack .../037-libcairo2_1.16.0-5ubuntu2_amd64.deb ...
Unpacking libcairo2:amd64 (1.16.0-5ubuntu2) ...
Selecting previously unselected package libcodec2-1.0:amd64.
Preparing to unpack .../038-libcodec2-1.0_1.0.1-3_amd64.deb ...
Unpacking libcodec2-1.0:amd64 (1.0.1-3) ...
Selecting previously unselected package libdav1d5:amd64.
Preparing to unpack .../039-libdav1d5_0.9.2-1_amd64.deb ...
Unpacking libdav1d5:amd64 (0.9.2-1) ...
Selecting previously unselected package libmp3lame0:amd64.
Preparing to unpack .../040-libmp3lame0_3.100-3build2_amd64.deb ...
Unpacking libmp3lame0:amd64 (3.100-3build2) ...
Selecting previously unselected package libopenjp2-7:amd64.
Preparing to unpack .../041-libopenjp2-7_2.4.0-6_amd64.deb ...
Unpacking libopenjp2-7:amd64 (2.4.0-6) ...
Selecting previously unselected package libcairo-gobject2:amd64.
Preparing to unpack .../042-libcairo-gobject2_1.16.0-5ubuntu2_amd64.deb ...
Unpacking libcairo-gobject2:amd64 (1.16.0-5ubuntu2) ...
Selecting previously unselected package libgdk-pixbuf2.0-common.
Preparing to unpack .../043-libgdk-pixbuf2.0-common_2.42.8+dfsg-1ubuntu0.2_all.deb ...
Unpacking libgdk-pixbuf2.0-common (2.42.8+dfsg-1ubuntu0.2) ...
Selecting previously unselected package libdeflate0:amd64.
Preparing to unpack .../044-libdeflate0_1.10-2_amd64.deb ...
Unpacking libdeflate0:amd64 (1.10-2) ...
Selecting previously unselected package libjbig0:amd64.
Preparing to unpack .../045-libjbig0_2.1-3.1ubuntu0.22.04.1_amd64.deb ...
Unpacking libjbig0:amd64 (2.1-3.1ubuntu0.22.04.1) ...
Selecting previously unselected package libwebp7:amd64.
Preparing to unpack .../046-libwebp7_1.2.2-2ubuntu0.22.04.2_amd64.deb ...
Unpacking libwebp7:amd64 (1.2.2-2ubuntu0.22.04.2) ...
Selecting previously unselected package libtiff5:amd64.
Preparing to unpack .../047-libtiff5_4.3.0-6ubuntu0.5_amd64.deb ...
Unpacking libtiff5:amd64 (4.3.0-6ubuntu0.5) ...
Selecting previously unselected package libgdk-pixbuf-2.0-0:amd64.
Preparing to unpack .../048-libgdk-pixbuf-2.0-0_2.42.8+dfsg-1ubuntu0.2_amd64.deb ...
Unpacking libgdk-pixbuf-2.0-0:amd64 (2.42.8+dfsg-1ubuntu0.2) ...
Selecting previously unselected package fontconfig.
Preparing to unpack .../049-fontconfig_2.13.1-4.2ubuntu5_amd64.deb ...
Unpacking fontconfig (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package libgraphite2-3:amd64.
Preparing to unpack .../050-libgraphite2-3_1.3.14-1build2_amd64.deb ...
Unpacking libgraphite2-3:amd64 (1.3.14-1build2) ...
Selecting previously unselected package libharfbuzz0b:amd64.
Preparing to unpack .../051-libharfbuzz0b_2.7.4-1ubuntu3.1_amd64.deb ...
Unpacking libharfbuzz0b:amd64 (2.7.4-1ubuntu3.1) ...
Selecting previously unselected package libthai-data.
Preparing to unpack .../052-libthai-data_0.1.29-1build1_all.deb ...
Unpacking libthai-data (0.1.29-1build1) ...
Selecting previously unselected package libdatrie1:amd64.
Preparing to unpack .../053-libdatrie1_0.2.13-2_amd64.deb ...
Unpacking libdatrie1:amd64 (0.2.13-2) ...
Selecting previously unselected package libthai0:amd64.
Preparing to unpack .../054-libthai0_0.1.29-1build1_amd64.deb ...
Unpacking libthai0:amd64 (0.1.29-1build1) ...
Selecting previously unselected package libpango-1.0-0:amd64.
Preparing to unpack .../055-libpango-1.0-0_1.50.6+ds-2ubuntu1_amd64.deb ...
Unpacking libpango-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Selecting previously unselected package libpangoft2-1.0-0:amd64.
Preparing to unpack .../056-libpangoft2-1.0-0_1.50.6+ds-2ubuntu1_amd64.deb ...
Unpacking libpangoft2-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Selecting previously unselected package libpangocairo-1.0-0:amd64.
Preparing to unpack .../057-libpangocairo-1.0-0_1.50.6+ds-2ubuntu1_amd64.deb ...
Unpacking libpangocairo-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Selecting previously unselected package librsvg2-2:amd64.
Preparing to unpack .../058-librsvg2-2_2.52.5+dfsg-3ubuntu0.2_amd64.deb ...
Unpacking librsvg2-2:amd64 (2.52.5+dfsg-3ubuntu0.2) ...
Selecting previously unselected package libshine3:amd64.
Preparing to unpack .../059-libshine3_3.1.1-2_amd64.deb ...
Unpacking libshine3:amd64 (3.1.1-2) ...
Selecting previously unselected package libspeex1:amd64.
Preparing to unpack .../060-libspeex1_1.2~rc1.2-1.1ubuntu3_amd64.deb ...
Unpacking libspeex1:amd64 (1.2~rc1.2-1.1ubuntu3) ...
Selecting previously unselected package libsoxr0:amd64.
Preparing to unpack .../061-libsoxr0_0.1.3-4build2_amd64.deb ...
Unpacking libsoxr0:amd64 (0.1.3-4build2) ...
Selecting previously unselected package libswresample3:amd64.
Preparing to unpack .../062-libswresample3_7%3a4.4.2-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libswresample3:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Selecting previously unselected package libtheora0:amd64.
Preparing to unpack .../063-libtheora0_1.1.1+dfsg.1-15ubuntu4_amd64.deb ...
Unpacking libtheora0:amd64 (1.1.1+dfsg.1-15ubuntu4) ...
Selecting previously unselected package libtwolame0:amd64.
Preparing to unpack .../064-libtwolame0_0.4.0-2build2_amd64.deb ...
Unpacking libtwolame0:amd64 (0.4.0-2build2) ...
Selecting previously unselected package libvpx7:amd64.
Preparing to unpack .../065-libvpx7_1.11.0-2ubuntu2_amd64.deb ...
Unpacking libvpx7:amd64 (1.11.0-2ubuntu2) ...
Selecting previously unselected package libwebpmux3:amd64.
Preparing to unpack .../066-libwebpmux3_1.2.2-2ubuntu0.22.04.2_amd64.deb ...
Unpacking libwebpmux3:amd64 (1.2.2-2ubuntu0.22.04.2) ...
Selecting previously unselected package libx264-163:amd64.
Preparing to unpack .../067-libx264-163_2%3a0.163.3060+git5db6aa6-2build1_amd64.deb ...
Unpacking libx264-163:amd64 (2:0.163.3060+git5db6aa6-2build1) ...
Selecting previously unselected package libx265-199:amd64.
Preparing to unpack .../068-libx265-199_3.5-2_amd64.deb ...
Unpacking libx265-199:amd64 (3.5-2) ...
Selecting previously unselected package libxvidcore4:amd64.
Preparing to unpack .../069-libxvidcore4_2%3a1.3.7-1_amd64.deb ...
Unpacking libxvidcore4:amd64 (2:1.3.7-1) ...
Selecting previously unselected package libzvbi-common.
Preparing to unpack .../070-libzvbi-common_0.2.35-19_all.deb ...
Unpacking libzvbi-common (0.2.35-19) ...
Selecting previously unselected package libzvbi0:amd64.
Preparing to unpack .../071-libzvbi0_0.2.35-19_amd64.deb ...
Unpacking libzvbi0:amd64 (0.2.35-19) ...
Selecting previously unselected package libavcodec58:amd64.
Preparing to unpack .../072-libavcodec58_7%3a4.4.2-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libavcodec58:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Selecting previously unselected package libraw1394-11:amd64.
Preparing to unpack .../073-libraw1394-11_2.1.2-2build2_amd64.deb ...
Unpacking libraw1394-11:amd64 (2.1.2-2build2) ...
Selecting previously unselected package libavc1394-0:amd64.
Preparing to unpack .../074-libavc1394-0_0.5.4-5build2_amd64.deb ...
Unpacking libavc1394-0:amd64 (0.5.4-5build2) ...
Selecting previously unselected package libass9:amd64.
Preparing to unpack .../075-libass9_1%3a0.15.2-1_amd64.deb ...
Unpacking libass9:amd64 (1:0.15.2-1) ...
Selecting previously unselected package libudfread0:amd64.
Preparing to unpack .../076-libudfread0_1.1.2-1_amd64.deb ...
Unpacking libudfread0:amd64 (1.1.2-1) ...
Selecting previously unselected package libbluray2:amd64.
Preparing to unpack .../077-libbluray2_1%3a1.3.1-1_amd64.deb ...
Unpacking libbluray2:amd64 (1:1.3.1-1) ...
Selecting previously unselected package libchromaprint1:amd64.
Preparing to unpack .../078-libchromaprint1_1.5.1-2_amd64.deb ...
Unpacking libchromaprint1:amd64 (1.5.1-2) ...
Selecting previously unselected package libgme0:amd64.
Preparing to unpack .../079-libgme0_0.6.3-2_amd64.deb ...
Unpacking libgme0:amd64 (0.6.3-2) ...
Selecting previously unselected package libmpg123-0:amd64.
Preparing to unpack .../080-libmpg123-0_1.29.3-1build1_amd64.deb ...
Unpacking libmpg123-0:amd64 (1.29.3-1build1) ...
Selecting previously unselected package libopenmpt0:amd64.
Preparing to unpack .../081-libopenmpt0_0.6.1-1_amd64.deb ...
Unpacking libopenmpt0:amd64 (0.6.1-1) ...
Selecting previously unselected package librabbitmq4:amd64.
Preparing to unpack .../082-librabbitmq4_0.10.0-1ubuntu2_amd64.deb ...
Unpacking librabbitmq4:amd64 (0.10.0-1ubuntu2) ...
Selecting previously unselected package libsrt1.4-gnutls:amd64.
Preparing to unpack .../083-libsrt1.4-gnutls_1.4.4-4_amd64.deb ...
Unpacking libsrt1.4-gnutls:amd64 (1.4.4-4) ...
Selecting previously unselected package libssh-gcrypt-4:amd64.
Preparing to unpack .../084-libssh-gcrypt-4_0.9.6-2ubuntu0.22.04.1_amd64.deb ...
Unpacking libssh-gcrypt-4:amd64 (0.9.6-2ubuntu0.22.04.1) ...
Selecting previously unselected package libnorm1:amd64.
Preparing to unpack .../085-libnorm1_1.5.9+dfsg-2_amd64.deb ...
Unpacking libnorm1:amd64 (1.5.9+dfsg-2) ...
Selecting previously unselected package libpgm-5.3-0:amd64.
Preparing to unpack .../086-libpgm-5.3-0_5.3.128~dfsg-2_amd64.deb ...
Unpacking libpgm-5.3-0:amd64 (5.3.128~dfsg-2) ...
Selecting previously unselected package libzmq5:amd64.
Preparing to unpack .../087-libzmq5_4.3.4-2_amd64.deb ...
Unpacking libzmq5:amd64 (4.3.4-2) ...
Selecting previously unselected package libavformat58:amd64.
Preparing to unpack .../088-libavformat58_7%3a4.4.2-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libavformat58:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Selecting previously unselected package libbs2b0:amd64.
Preparing to unpack .../089-libbs2b0_3.1.0+dfsg-2.2build1_amd64.deb ...
Unpacking libbs2b0:amd64 (3.1.0+dfsg-2.2build1) ...
Selecting previously unselected package libflite1:amd64.
Preparing to unpack .../090-libflite1_2.2-3_amd64.deb ...
Unpacking libflite1:amd64 (2.2-3) ...
Selecting previously unselected package libserd-0-0:amd64.
Preparing to unpack .../091-libserd-0-0_0.30.10-2_amd64.deb ...
Unpacking libserd-0-0:amd64 (0.30.10-2) ...
Selecting previously unselected package libsord-0-0:amd64.
Preparing to unpack .../092-libsord-0-0_0.16.8-2_amd64.deb ...
Unpacking libsord-0-0:amd64 (0.16.8-2) ...
Selecting previously unselected package libsratom-0-0:amd64.
Preparing to unpack .../093-libsratom-0-0_0.6.8-1_amd64.deb ...
Unpacking libsratom-0-0:amd64 (0.6.8-1) ...
Selecting previously unselected package liblilv-0-0:amd64.
Preparing to unpack .../094-liblilv-0-0_0.24.12-2_amd64.deb ...
Unpacking liblilv-0-0:amd64 (0.24.12-2) ...
Selecting previously unselected package libmysofa1:amd64.
Preparing to unpack .../095-libmysofa1_1.2.1~dfsg0-1_amd64.deb ...
Unpacking libmysofa1:amd64 (1.2.1~dfsg0-1) ...
Selecting previously unselected package libasyncns0:amd64.
Preparing to unpack .../096-libasyncns0_0.8-6build2_amd64.deb ...
Unpacking libasyncns0:amd64 (0.8-6build2) ...
Selecting previously unselected package libx11-xcb1:amd64.
Preparing to unpack .../097-libx11-xcb1_2%3a1.7.5-1ubuntu0.2_amd64.deb ...
Unpacking libx11-xcb1:amd64 (2:1.7.5-1ubuntu0.2) ...
Selecting previously unselected package libpulse0:amd64.
Preparing to unpack .../098-libpulse0_1%3a15.99.1+dfsg1-1ubuntu2.1_amd64.deb ...
Unpacking libpulse0:amd64 (1:15.99.1+dfsg1-1ubuntu2.1) ...
Selecting previously unselected package libsphinxbase3:amd64.
Preparing to unpack .../099-libsphinxbase3_0.8+5prealpha+1-13build1_amd64.deb ...
Unpacking libsphinxbase3:amd64 (0.8+5prealpha+1-13build1) ...
Selecting previously unselected package libpocketsphinx3:amd64.
Preparing to unpack .../100-libpocketsphinx3_0.8.0+real5prealpha+1-14ubuntu1_amd64.deb ...
Unpacking libpocketsphinx3:amd64 (0.8.0+real5prealpha+1-14ubuntu1) ...
Selecting previously unselected package libpostproc55:amd64.
Preparing to unpack .../101-libpostproc55_7%3a4.4.2-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libpostproc55:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Selecting previously unselected package libsamplerate0:amd64.
Preparing to unpack .../102-libsamplerate0_0.2.2-1build1_amd64.deb ...
Unpacking libsamplerate0:amd64 (0.2.2-1build1) ...
Selecting previously unselected package librubberband2:amd64.
Preparing to unpack .../103-librubberband2_2.0.0-2_amd64.deb ...
Unpacking librubberband2:amd64 (2.0.0-2) ...
Selecting previously unselected package libswscale5:amd64.
Preparing to unpack .../104-libswscale5_7%3a4.4.2-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libswscale5:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Selecting previously unselected package libvidstab1.1:amd64.
Preparing to unpack .../105-libvidstab1.1_1.1.0-2_amd64.deb ...
Unpacking libvidstab1.1:amd64 (1.1.0-2) ...
Selecting previously unselected package libzimg2:amd64.
Preparing to unpack .../106-libzimg2_3.0.3+ds1-1_amd64.deb ...
Unpacking libzimg2:amd64 (3.0.3+ds1-1) ...
Selecting previously unselected package libavfilter7:amd64.
Preparing to unpack .../107-libavfilter7_7%3a4.4.2-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libavfilter7:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Selecting previously unselected package libcaca0:amd64.
Preparing to unpack .../108-libcaca0_0.99.beta19-2.2ubuntu4_amd64.deb ...
Unpacking libcaca0:amd64 (0.99.beta19-2.2ubuntu4) ...
Selecting previously unselected package libcdio19:amd64.
Preparing to unpack .../109-libcdio19_2.1.0-3build1_amd64.deb ...
Unpacking libcdio19:amd64 (2.1.0-3build1) ...
Selecting previously unselected package libcdio-cdda2:amd64.
Preparing to unpack .../110-libcdio-cdda2_10.2+2.0.0-1build3_amd64.deb ...
Unpacking libcdio-cdda2:amd64 (10.2+2.0.0-1build3) ...
Selecting previously unselected package libcdio-paranoia2:amd64.
Preparing to unpack .../111-libcdio-paranoia2_10.2+2.0.0-1build3_amd64.deb ...
Unpacking libcdio-paranoia2:amd64 (10.2+2.0.0-1build3) ...
Selecting previously unselected package libdc1394-25:amd64.
Preparing to unpack .../112-libdc1394-25_2.2.6-4_amd64.deb ...
Unpacking libdc1394-25:amd64 (2.2.6-4) ...
Selecting previously unselected package libglvnd0:amd64.
Preparing to unpack .../113-libglvnd0_1.4.0-1_amd64.deb ...
Unpacking libglvnd0:amd64 (1.4.0-1) ...
Selecting previously unselected package libglapi-mesa:amd64.
Preparing to unpack .../114-libglapi-mesa_23.0.4-0ubuntu1~22.04.1_amd64.deb ...
Unpacking libglapi-mesa:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Selecting previously unselected package libxcb-dri2-0:amd64.
Preparing to unpack .../115-libxcb-dri2-0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-dri2-0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-dri3-0:amd64.
Preparing to unpack .../116-libxcb-dri3-0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-dri3-0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-glx0:amd64.
Preparing to unpack .../117-libxcb-glx0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-glx0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-present0:amd64.
Preparing to unpack .../118-libxcb-present0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-present0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-randr0:amd64.
Preparing to unpack .../119-libxcb-randr0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-randr0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-sync1:amd64.
Preparing to unpack .../120-libxcb-sync1_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-sync1:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxcb-xfixes0:amd64.
Preparing to unpack .../121-libxcb-xfixes0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-xfixes0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxshmfence1:amd64.
Preparing to unpack .../122-libxshmfence1_1.3-1build4_amd64.deb ...
Unpacking libxshmfence1:amd64 (1.3-1build4) ...
Selecting previously unselected package libxxf86vm1:amd64.
Preparing to unpack .../123-libxxf86vm1_1%3a1.1.4-1build3_amd64.deb ...
Unpacking libxxf86vm1:amd64 (1:1.1.4-1build3) ...
Selecting previously unselected package libdrm-amdgpu1:amd64.
Preparing to unpack .../124-libdrm-amdgpu1_2.4.113-2~ubuntu0.22.04.1_amd64.deb ...
Unpacking libdrm-amdgpu1:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Selecting previously unselected package libpciaccess0:amd64.
Preparing to unpack .../125-libpciaccess0_0.16-3_amd64.deb ...
Unpacking libpciaccess0:amd64 (0.16-3) ...
Selecting previously unselected package libdrm-intel1:amd64.
Preparing to unpack .../126-libdrm-intel1_2.4.113-2~ubuntu0.22.04.1_amd64.deb ...
Unpacking libdrm-intel1:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Selecting previously unselected package libdrm-nouveau2:amd64.
Preparing to unpack .../127-libdrm-nouveau2_2.4.113-2~ubuntu0.22.04.1_amd64.deb ...
Unpacking libdrm-nouveau2:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Selecting previously unselected package libdrm-radeon1:amd64.
Preparing to unpack .../128-libdrm-radeon1_2.4.113-2~ubuntu0.22.04.1_amd64.deb ...
Unpacking libdrm-radeon1:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Selecting previously unselected package libllvm15:amd64.
Preparing to unpack .../129-libllvm15_1%3a15.0.7-0ubuntu0.22.04.3_amd64.deb ...
Unpacking libllvm15:amd64 (1:15.0.7-0ubuntu0.22.04.3) ...
Selecting previously unselected package libsensors-config.
Preparing to unpack .../130-libsensors-config_1%3a3.6.0-7ubuntu1_all.deb ...
Unpacking libsensors-config (1:3.6.0-7ubuntu1) ...
Selecting previously unselected package libsensors5:amd64.
Preparing to unpack .../131-libsensors5_1%3a3.6.0-7ubuntu1_amd64.deb ...
Unpacking libsensors5:amd64 (1:3.6.0-7ubuntu1) ...
Selecting previously unselected package libgl1-mesa-dri:amd64.
Preparing to unpack .../132-libgl1-mesa-dri_23.0.4-0ubuntu1~22.04.1_amd64.deb ...
Unpacking libgl1-mesa-dri:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Selecting previously unselected package libglx-mesa0:amd64.
Preparing to unpack .../133-libglx-mesa0_23.0.4-0ubuntu1~22.04.1_amd64.deb ...
Unpacking libglx-mesa0:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Selecting previously unselected package libglx0:amd64.
Preparing to unpack .../134-libglx0_1.4.0-1_amd64.deb ...
Unpacking libglx0:amd64 (1.4.0-1) ...
Selecting previously unselected package libgl1:amd64.
Preparing to unpack .../135-libgl1_1.4.0-1_amd64.deb ...
Unpacking libgl1:amd64 (1.4.0-1) ...
Selecting previously unselected package libiec61883-0:amd64.
Preparing to unpack .../136-libiec61883-0_1.2.0-4build3_amd64.deb ...
Unpacking libiec61883-0:amd64 (1.2.0-4build3) ...
Selecting previously unselected package libjack-jackd2-0:amd64.
Preparing to unpack .../137-libjack-jackd2-0_1.9.20~dfsg-1_amd64.deb ...
Unpacking libjack-jackd2-0:amd64 (1.9.20~dfsg-1) ...
Selecting previously unselected package libopenal-data.
Preparing to unpack .../138-libopenal-data_1%3a1.19.1-2build3_all.deb ...
Unpacking libopenal-data (1:1.19.1-2build3) ...
Selecting previously unselected package libsndio7.0:amd64.
Preparing to unpack .../139-libsndio7.0_1.8.1-1.1_amd64.deb ...
Unpacking libsndio7.0:amd64 (1.8.1-1.1) ...
Selecting previously unselected package libopenal1:amd64.
Preparing to unpack .../140-libopenal1_1%3a1.19.1-2build3_amd64.deb ...
Unpacking libopenal1:amd64 (1:1.19.1-2build3) ...
Selecting previously unselected package libwayland-client0:amd64.
Preparing to unpack .../141-libwayland-client0_1.20.0-1ubuntu0.1_amd64.deb ...
Unpacking libwayland-client0:amd64 (1.20.0-1ubuntu0.1) ...
Selecting previously unselected package libdecor-0-0:amd64.
Preparing to unpack .../142-libdecor-0-0_0.1.0-3build1_amd64.deb ...
Unpacking libdecor-0-0:amd64 (0.1.0-3build1) ...
Selecting previously unselected package libwayland-server0:amd64.
Preparing to unpack .../143-libwayland-server0_1.20.0-1ubuntu0.1_amd64.deb ...
Unpacking libwayland-server0:amd64 (1.20.0-1ubuntu0.1) ...
Selecting previously unselected package libgbm1:amd64.
Preparing to unpack .../144-libgbm1_23.0.4-0ubuntu1~22.04.1_amd64.deb ...
Unpacking libgbm1:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Selecting previously unselected package libwayland-cursor0:amd64.
Preparing to unpack .../145-libwayland-cursor0_1.20.0-1ubuntu0.1_amd64.deb ...
Unpacking libwayland-cursor0:amd64 (1.20.0-1ubuntu0.1) ...
Selecting previously unselected package libwayland-egl1:amd64.
Preparing to unpack .../146-libwayland-egl1_1.20.0-1ubuntu0.1_amd64.deb ...
Unpacking libwayland-egl1:amd64 (1.20.0-1ubuntu0.1) ...
Selecting previously unselected package libxcursor1:amd64.
Preparing to unpack .../147-libxcursor1_1%3a1.2.0-2build4_amd64.deb ...
Unpacking libxcursor1:amd64 (1:1.2.0-2build4) ...
Selecting previously unselected package libxi6:amd64.
Preparing to unpack .../148-libxi6_2%3a1.8-1build1_amd64.deb ...
Unpacking libxi6:amd64 (2:1.8-1build1) ...
Selecting previously unselected package libxinerama1:amd64.
Preparing to unpack .../149-libxinerama1_2%3a1.1.4-3_amd64.deb ...
Unpacking libxinerama1:amd64 (2:1.1.4-3) ...
Selecting previously unselected package libxkbcommon0:amd64.
Preparing to unpack .../150-libxkbcommon0_1.4.0-1_amd64.deb ...
Unpacking libxkbcommon0:amd64 (1.4.0-1) ...
Selecting previously unselected package libxrandr2:amd64.
Preparing to unpack .../151-libxrandr2_2%3a1.5.2-1build1_amd64.deb ...
Unpacking libxrandr2:amd64 (2:1.5.2-1build1) ...
Selecting previously unselected package x11-common.
Preparing to unpack .../152-x11-common_1%3a7.7+23ubuntu2_all.deb ...
Unpacking x11-common (1:7.7+23ubuntu2) ...
Selecting previously unselected package libxss1:amd64.
Preparing to unpack .../153-libxss1_1%3a1.2.3-1build2_amd64.deb ...
Unpacking libxss1:amd64 (1:1.2.3-1build2) ...
Selecting previously unselected package libsdl2-2.0-0:amd64.
Preparing to unpack .../154-libsdl2-2.0-0_2.0.20+dfsg-2ubuntu1.22.04.1_amd64.deb ...
Unpacking libsdl2-2.0-0:amd64 (2.0.20+dfsg-2ubuntu1.22.04.1) ...
Selecting previously unselected package libxcb-shape0:amd64.
Preparing to unpack .../155-libxcb-shape0_1.14-3ubuntu3_amd64.deb ...
Unpacking libxcb-shape0:amd64 (1.14-3ubuntu3) ...
Selecting previously unselected package libxv1:amd64.
Preparing to unpack .../156-libxv1_2%3a1.0.11-1build2_amd64.deb ...
Unpacking libxv1:amd64 (2:1.0.11-1build2) ...
Selecting previously unselected package libavdevice58:amd64.
Preparing to unpack .../157-libavdevice58_7%3a4.4.2-0ubuntu0.22.04.1_amd64.deb ...
Unpacking libavdevice58:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Selecting previously unselected package ffmpeg.
Preparing to unpack .../158-ffmpeg_7%3a4.4.2-0ubuntu0.22.04.1_amd64.deb ...
Unpacking ffmpeg (7:4.4.2-0ubuntu0.22.04.1) ...
Selecting previously unselected package libigdgmm12:amd64.
Preparing to unpack .../159-libigdgmm12_22.1.2+ds1-1_amd64.deb ...
Unpacking libigdgmm12:amd64 (22.1.2+ds1-1) ...
Selecting previously unselected package intel-media-va-driver:amd64.
Preparing to unpack .../160-intel-media-va-driver_22.3.1+dfsg1-1ubuntu2_amd64.deb ...
Unpacking intel-media-va-driver:amd64 (22.3.1+dfsg1-1ubuntu2) ...
Selecting previously unselected package libaacs0:amd64.
Preparing to unpack .../161-libaacs0_0.11.1-1_amd64.deb ...
Unpacking libaacs0:amd64 (0.11.1-1) ...
Selecting previously unselected package libbdplus0:amd64.
Preparing to unpack .../162-libbdplus0_0.2.0-1_amd64.deb ...
Unpacking libbdplus0:amd64 (0.2.0-1) ...
Selecting previously unselected package libdecor-0-plugin-1-cairo:amd64.
Preparing to unpack .../163-libdecor-0-plugin-1-cairo_0.1.0-3build1_amd64.deb ...
Unpacking libdecor-0-plugin-1-cairo:amd64 (0.1.0-3build1) ...
Selecting previously unselected package libffms2-5:amd64.
Preparing to unpack .../164-libffms2-5_2.40+git20211209-2_amd64.deb ...
Unpacking libffms2-5:amd64 (2.40+git20211209-2) ...
Selecting previously unselected package libgdk-pixbuf2.0-bin.
Preparing to unpack .../165-libgdk-pixbuf2.0-bin_2.42.8+dfsg-1ubuntu0.2_amd64.deb ...
Unpacking libgdk-pixbuf2.0-bin (2.42.8+dfsg-1ubuntu0.2) ...
Selecting previously unselected package libgl1-amber-dri:amd64.
Preparing to unpack .../166-libgl1-amber-dri_21.3.9-0ubuntu1~22.04.1_amd64.deb ...
Unpacking libgl1-amber-dri:amd64 (21.3.9-0ubuntu1~22.04.1) ...
Selecting previously unselected package librsvg2-common:amd64.
Preparing to unpack .../167-librsvg2-common_2.52.5+dfsg-3ubuntu0.2_amd64.deb ...
Unpacking librsvg2-common:amd64 (2.52.5+dfsg-3ubuntu0.2) ...
Selecting previously unselected package mesa-va-drivers:amd64.
Preparing to unpack .../168-mesa-va-drivers_23.0.4-0ubuntu1~22.04.1_amd64.deb ...
Unpacking mesa-va-drivers:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Selecting previously unselected package mesa-vdpau-drivers:amd64.
Preparing to unpack .../169-mesa-vdpau-drivers_23.0.4-0ubuntu1~22.04.1_amd64.deb ...
Unpacking mesa-vdpau-drivers:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Selecting previously unselected package i965-va-driver:amd64.
Preparing to unpack .../170-i965-va-driver_2.4.1+dfsg1-1_amd64.deb ...
Unpacking i965-va-driver:amd64 (2.4.1+dfsg1-1) ...
Selecting previously unselected package va-driver-all:amd64.
Preparing to unpack .../171-va-driver-all_2.14.0-1_amd64.deb ...
Unpacking va-driver-all:amd64 (2.14.0-1) ...
Selecting previously unselected package vdpau-driver-all:amd64.
Preparing to unpack .../172-vdpau-driver-all_1.4-3build2_amd64.deb ...
Unpacking vdpau-driver-all:amd64 (1.4-3build2) ...
Selecting previously unselected package pocketsphinx-en-us.
Preparing to unpack .../173-pocketsphinx-en-us_0.8.0+real5prealpha+1-14ubuntu1_all.deb ...
Unpacking pocketsphinx-en-us (0.8.0+real5prealpha+1-14ubuntu1) ...
Setting up libgme0:amd64 (0.6.3-2) ...
Setting up libssh-gcrypt-4:amd64 (0.9.6-2ubuntu0.22.04.1) ...
Setting up libgraphite2-3:amd64 (1.3.14-1build2) ...
Setting up libsrt1.4-gnutls:amd64 (1.4.4-4) ...
Setting up libpixman-1-0:amd64 (0.40.0-1ubuntu0.22.04.1) ...
Setting up libudfread0:amd64 (1.1.2-1) ...
Setting up libwayland-server0:amd64 (1.20.0-1ubuntu0.1) ...
Setting up libaom3:amd64 (3.3.0-1) ...
Setting up libpciaccess0:amd64 (0.16-3) ...
Setting up librabbitmq4:amd64 (0.10.0-1ubuntu2) ...
Setting up libxau6:amd64 (1:1.0.9-1build5) ...
Setting up libxdmcp6:amd64 (1:1.1.3-0ubuntu5) ...
Setting up libraw1394-11:amd64 (2.1.2-2build2) ...
Setting up libapparmor1:amd64 (3.0.4-2ubuntu2.2) ...
Setting up libxcb1:amd64 (1.14-3ubuntu3) ...
Setting up libcodec2-1.0:amd64 (1.0.1-3) ...
Setting up libmpg123-0:amd64 (1.29.3-1build1) ...
Setting up libxcb-xfixes0:amd64 (1.14-3ubuntu3) ...
Setting up libspeex1:amd64 (1.2~rc1.2-1.1ubuntu3) ...
Setting up libshine3:amd64 (3.1.1-2) ...
Setting up libtwolame0:amd64 (0.4.0-2build2) ...
Setting up libdatrie1:amd64 (0.2.13-2) ...
Setting up libxcb-render0:amd64 (1.14-3ubuntu3) ...
Setting up libsoxr0:amd64 (0.1.3-4build2) ...
Setting up libglvnd0:amd64 (1.4.0-1) ...
Setting up libpgm-5.3-0:amd64 (5.3.128~dfsg-2) ...
Setting up libxcb-glx0:amd64 (1.14-3ubuntu3) ...
Setting up libgdk-pixbuf2.0-common (2.42.8+dfsg-1ubuntu0.2) ...
Setting up libnorm1:amd64 (1.5.9+dfsg-2) ...
Setting up libmysofa1:amd64 (1.2.1~dfsg0-1) ...
Setting up libxcb-shape0:amd64 (1.14-3ubuntu3) ...
Setting up x11-common (1:7.7+23ubuntu2) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libsensors-config (1:3.6.0-7ubuntu1) ...
Setting up libdeflate0:amd64 (1.10-2) ...
Setting up xkb-data (2.33-1) ...
Setting up libxcb-shm0:amd64 (1.14-3ubuntu3) ...
Setting up libigdgmm12:amd64 (22.1.2+ds1-1) ...
Setting up libcdio19:amd64 (2.1.0-3build1) ...
Setting up libxvidcore4:amd64 (2:1.3.7-1) ...
Setting up libjbig0:amd64 (2.1-3.1ubuntu0.22.04.1) ...
Setting up libxcb-present0:amd64 (1.14-3ubuntu3) ...
Setting up libslang2:amd64 (2.3.2-5build4) ...
Setting up libva2:amd64 (2.14.0-1) ...
Setting up libfreetype6:amd64 (2.11.1+dfsg-1ubuntu0.2) ...
Setting up libx11-data (2:1.7.5-1ubuntu0.2) ...
Setting up libxcb-sync1:amd64 (1.14-3ubuntu3) ...
Setting up libx264-163:amd64 (2:0.163.3060+git5db6aa6-2build1) ...
Setting up libdbus-1-3:amd64 (1.12.20-2ubuntu4.1) ...
Setting up dbus (1.12.20-2ubuntu4.1) ...
Setting up libfribidi0:amd64 (1.0.8-2ubuntu3.1) ...
Setting up intel-media-va-driver:amd64 (22.3.1+dfsg1-1ubuntu2) ...
Setting up fonts-dejavu-core (2.37-2build1) ...
Setting up ucf (3.0043) ...
Setting up libsensors5:amd64 (1:3.6.0-7ubuntu1) ...
Setting up libaacs0:amd64 (0.11.1-1) ...
Setting up pocketsphinx-en-us (0.8.0+real5prealpha+1-14ubuntu1) ...
Setting up libglapi-mesa:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Setting up libx265-199:amd64 (3.5-2) ...
Setting up libwebp7:amd64 (1.2.2-2ubuntu0.22.04.2) ...
Setting up libsndio7.0:amd64 (1.8.1-1.1) ...
Setting up libxcb-dri2-0:amd64 (1.14-3ubuntu3) ...
Setting up libbdplus0:amd64 (0.2.0-1) ...
Setting up libvidstab1.1:amd64 (1.1.0-2) ...
Setting up libflite1:amd64 (2.2-3) ...
Setting up ocl-icd-libopencl1:amd64 (2.2.14-3) ...
Setting up libasyncns0:amd64 (0.8-6build2) ...
Setting up libxshmfence1:amd64 (1.3-1build4) ...
Setting up libbs2b0:amd64 (3.1.0+dfsg-2.2build1) ...
Setting up libxcb-randr0:amd64 (1.14-3ubuntu3) ...
Setting up libzimg2:amd64 (3.0.3+ds1-1) ...
Setting up libopenjp2-7:amd64 (2.4.0-6) ...
Setting up libx11-6:amd64 (2:1.7.5-1ubuntu0.2) ...
Setting up libharfbuzz0b:amd64 (2.7.4-1ubuntu3.1) ...
Setting up libopenal-data (1:1.19.1-2build3) ...
Setting up libthai-data (0.1.29-1build1) ...
Setting up libvpx7:amd64 (1.11.0-2ubuntu2) ...
Setting up libtiff5:amd64 (4.3.0-6ubuntu0.5) ...
Setting up libwayland-egl1:amd64 (1.20.0-1ubuntu0.1) ...
Setting up libusb-1.0-0:amd64 (2:1.0.25-1ubuntu2) ...
Setting up libdav1d5:amd64 (0.9.2-1) ...
Setting up libmfx1:amd64 (22.3.0-1) ...
Setting up libsamplerate0:amd64 (0.2.2-1build1) ...
Setting up libwebpmux3:amd64 (1.2.2-2ubuntu0.22.04.2) ...
Setting up libdrm-common (2.4.113-2~ubuntu0.22.04.1) ...
Setting up libelf1:amd64 (0.186-1build1) ...
Setting up libopenmpt0:amd64 (0.6.1-1) ...
Setting up libzvbi-common (0.2.35-19) ...
Setting up libmp3lame0:amd64 (3.100-3build2) ...
Setting up libicu70:amd64 (70.1-2) ...
Setting up libiec61883-0:amd64 (1.2.0-4build3) ...
Setting up libserd-0-0:amd64 (0.30.10-2) ...
Setting up libxkbcommon0:amd64 (1.4.0-1) ...
Setting up libwayland-client0:amd64 (1.20.0-1ubuntu0.1) ...
Setting up libavc1394-0:amd64 (0.5.4-5build2) ...
Setting up libxcb-dri3-0:amd64 (1.14-3ubuntu3) ...
Setting up libzvbi0:amd64 (0.2.35-19) ...
Setting up libx11-xcb1:amd64 (2:1.7.5-1ubuntu0.2) ...
Setting up libzmq5:amd64 (4.3.4-2) ...
Setting up libcaca0:amd64 (0.99.beta19-2.2ubuntu4) ...
Setting up libxrender1:amd64 (1:0.9.10-1build4) ...
Setting up libpulse0:amd64 (1:15.99.1+dfsg1-1ubuntu2.1) ...
Setting up libcdio-cdda2:amd64 (10.2+2.0.0-1build3) ...
Setting up fontconfig-config (2.13.1-4.2ubuntu5) ...
Setting up libcdio-paranoia2:amd64 (10.2+2.0.0-1build3) ...
Setting up libxext6:amd64 (2:1.3.4-1build1) ...
Setting up libopenal1:amd64 (1:1.19.1-2build3) ...
Setting up libxxf86vm1:amd64 (1:1.1.4-1build3) ...
Setting up libthai0:amd64 (0.1.29-1build1) ...
Setting up libxfixes3:amd64 (1:6.0.0-1) ...
Setting up libxinerama1:amd64 (2:1.1.4-3) ...
Setting up libdc1394-25:amd64 (2.2.6-4) ...
Setting up libxv1:amd64 (2:1.0.11-1build2) ...
Setting up libxrandr2:amd64 (2:1.5.2-1build1) ...
Setting up librubberband2:amd64 (2.0.0-2) ...
Setting up libjack-jackd2-0:amd64 (1.9.20~dfsg-1) ...
Setting up libdrm2:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Setting up libva-drm2:amd64 (2.14.0-1) ...
Setting up libvdpau1:amd64 (1.4-3build2) ...
Setting up libsord-0-0:amd64 (0.16.8-2) ...
Setting up libwayland-cursor0:amd64 (1.20.0-1ubuntu0.1) ...
Setting up libsratom-0-0:amd64 (0.6.8-1) ...
Setting up libdecor-0-0:amd64 (0.1.0-3build1) ...
Setting up libxss1:amd64 (1:1.2.3-1build2) ...
Setting up libfontconfig1:amd64 (2.13.1-4.2ubuntu5) ...
Setting up libva-x11-2:amd64 (2.14.0-1) ...
Setting up liblilv-0-0:amd64 (0.24.12-2) ...
Setting up libxml2:amd64 (2.9.13+dfsg-1ubuntu0.3) ...
Setting up libdrm-amdgpu1:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Setting up fontconfig (2.13.1-4.2ubuntu5) ...
Regenerating fonts cache... done.
Setting up libdrm-nouveau2:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Setting up libxi6:amd64 (2:1.8-1build1) ...
Setting up libgbm1:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Setting up libsphinxbase3:amd64 (0.8+5prealpha+1-13build1) ...
Setting up libdrm-radeon1:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Setting up libxcursor1:amd64 (1:1.2.0-2build4) ...
Setting up libpango-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Setting up libdrm-intel1:amd64 (2.4.113-2~ubuntu0.22.04.1) ...
Setting up libcairo2:amd64 (1.16.0-5ubuntu2) ...
Setting up libavutil56:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up libpocketsphinx3:amd64 (0.8.0+real5prealpha+1-14ubuntu1) ...
Setting up libass9:amd64 (1:0.15.2-1) ...
Setting up shared-mime-info (2.1-2) ...
Setting up libpostproc55:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up libllvm15:amd64 (1:15.0.7-0ubuntu0.22.04.3) ...
Setting up libtheora0:amd64 (1.1.1+dfsg.1-15ubuntu4) ...
Setting up libgdk-pixbuf-2.0-0:amd64 (2.42.8+dfsg-1ubuntu0.2) ...
Setting up libswscale5:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up libcairo-gobject2:amd64 (1.16.0-5ubuntu2) ...
Setting up mesa-va-drivers:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Setting up libpangoft2-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Setting up libbluray2:amd64 (1:1.3.1-1) ...
Setting up libsdl2-2.0-0:amd64 (2.0.20+dfsg-2ubuntu1.22.04.1) ...
Setting up i965-va-driver:amd64 (2.4.1+dfsg1-1) ...
Setting up libpangocairo-1.0-0:amd64 (1.50.6+ds-2ubuntu1) ...
Setting up libgl1-amber-dri:amd64 (21.3.9-0ubuntu1~22.04.1) ...
Setting up mesa-vdpau-drivers:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Setting up libgl1-mesa-dri:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Setting up libswresample3:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up librsvg2-2:amd64 (2.52.5+dfsg-3ubuntu0.2) ...
Setting up va-driver-all:amd64 (2.14.0-1) ...
Setting up libdecor-0-plugin-1-cairo:amd64 (0.1.0-3build1) ...
Setting up librsvg2-common:amd64 (2.52.5+dfsg-3ubuntu0.2) ...
Setting up vdpau-driver-all:amd64 (1.4-3build2) ...
Setting up libgdk-pixbuf2.0-bin (2.42.8+dfsg-1ubuntu0.2) ...
Setting up libavcodec58:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up libchromaprint1:amd64 (1.5.1-2) ...
Setting up libglx-mesa0:amd64 (23.0.4-0ubuntu1~22.04.1) ...
Setting up libglx0:amd64 (1.4.0-1) ...
Setting up libavformat58:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up libffms2-5:amd64 (2.40+git20211209-2) ...
Setting up libgl1:amd64 (1.4.0-1) ...
Setting up libavfilter7:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up libavdevice58:amd64 (7:4.4.2-0ubuntu0.22.04.1) ...
Setting up ffmpeg (7:4.4.2-0ubuntu0.22.04.1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for libgdk-pixbuf-2.0-0:amd64 (2.42.8+dfsg-1ubuntu0.2) ...
root@cf9b065a0457:/workspace# pip install ffms2 ffmpeg-python onnxruntime pympler deform_conv2d_onnx_exporter
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting ffms2
Downloading ffms2-0.4.5.5.tar.gz (693 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 693.2/693.2 kB 12.8 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting ffmpeg-python
Downloading ffmpeg_python-0.2.0-py3-none-any.whl (25 kB)
Collecting onnxruntime
Obtaining dependency information for onnxruntime from https://files.pythonhosted.org/packages/26/f5/5f0aaf4cbd0017258619a0bfe117e1263035bd501a480eead0799c140025/onnxruntime-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
Downloading onnxruntime-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB)
Collecting pympler
Downloading Pympler-1.0.1-py3-none-any.whl (164 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 164.8/164.8 kB 411.1 MB/s eta 0:00:00
Collecting deform_conv2d_onnx_exporter
Downloading deform_conv2d_onnx_exporter-1.2.0-py3-none-any.whl (8.5 kB)
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from ffms2) (1.22.2)
Collecting future (from ffmpeg-python)
Downloading future-0.18.3.tar.gz (840 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 840.9/840.9 kB 65.4 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting coloredlogs (from onnxruntime)
Downloading coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.0/46.0 kB 590.5 MB/s eta 0:00:00
Collecting flatbuffers (from onnxruntime)
Obtaining dependency information for flatbuffers from https://files.pythonhosted.org/packages/6f/12/d5c79ee252793ffe845d58a913197bfa02ae9a0b5c9bc3dc4b58d477b9e7/flatbuffers-23.5.26-py2.py3-none-any.whl.metadata
Downloading flatbuffers-23.5.26-py2.py3-none-any.whl.metadata (850 bytes)
Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from onnxruntime) (23.1)
Requirement already satisfied: protobuf in /usr/local/lib/python3.10/dist-packages (from onnxruntime) (4.24.3)
Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from onnxruntime) (1.12)
Requirement already satisfied: torch>=1.8.0 in /usr/local/lib/python3.10/dist-packages (from deform_conv2d_onnx_exporter) (2.1.0a0+32f93b1)
Requirement already satisfied: torchvision>=0.9.0 in /usr/local/lib/python3.10/dist-packages (from deform_conv2d_onnx_exporter) (0.16.0a0)
Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch>=1.8.0->deform_conv2d_onnx_exporter) (3.12.4)
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/dist-packages (from torch>=1.8.0->deform_conv2d_onnx_exporter) (4.7.1)
Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch>=1.8.0->deform_conv2d_onnx_exporter) (2.6.3)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch>=1.8.0->deform_conv2d_onnx_exporter) (3.1.2)
Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from torch>=1.8.0->deform_conv2d_onnx_exporter) (2023.6.0)
Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from torchvision>=0.9.0->deform_conv2d_onnx_exporter) (2.31.0)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/local/lib/python3.10/dist-packages (from torchvision>=0.9.0->deform_conv2d_onnx_exporter) (9.2.0)
Collecting humanfriendly>=9.1 (from coloredlogs->onnxruntime)
Downloading humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.8/86.8 kB 172.1 MB/s eta 0:00:00
Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.10/dist-packages (from sympy->onnxruntime) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch>=1.8.0->deform_conv2d_onnx_exporter) (2.1.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->torchvision>=0.9.0->deform_conv2d_onnx_exporter) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests->torchvision>=0.9.0->deform_conv2d_onnx_exporter) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->torchvision>=0.9.0->deform_conv2d_onnx_exporter) (1.26.16)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests->torchvision>=0.9.0->deform_conv2d_onnx_exporter) (2023.7.22)
Downloading onnxruntime-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 24.2 MB/s eta 0:00:00
Downloading flatbuffers-23.5.26-py2.py3-none-any.whl (26 kB)
Building wheels for collected packages: ffms2, future
Building wheel for ffms2 (pyproject.toml) ... done
Created wheel for ffms2: filename=ffms2-0.4.5.5-py3-none-any.whl size=707759 sha256=d4bb3253180185273e4ed8f7ab321adf49cb1c9464470ccb7e397af4a59a1d25
Stored in directory: /tmp/pip-ephem-wheel-cache-f06yg93d/wheels/c5/97/55/c062192fbf1c151f5f5fa80db051ad47c1909cb5f1abf1b4d3
Building wheel for future (setup.py) ... done
Created wheel for future: filename=future-0.18.3-py3-none-any.whl size=492036 sha256=2c433ce771ce4665ad35f18121c4c574c1131e9d1d577bf3aa56e9600f954888
Stored in directory: /tmp/pip-ephem-wheel-cache-f06yg93d/wheels/5e/a9/47/f118e66afd12240e4662752cc22cefae5d97275623aa8ef57d
Successfully built ffms2 future
Installing collected packages: flatbuffers, pympler, humanfriendly, future, ffms2, ffmpeg-python, coloredlogs, onnxruntime, deform_conv2d_onnx_exporter
Successfully installed coloredlogs-15.0.1 deform_conv2d_onnx_exporter-1.2.0 ffmpeg-python-0.2.0 ffms2-0.4.5.5 flatbuffers-23.5.26 future-0.18.3 humanfriendly-10.0 onnxruntime-1.16.0 pympler-1.0.1
WARNING: 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 Without int8 calibration, the 4 outputs are correctly detected:root@cf9b065a0457:/home/brett/Work/Autosensor/NN# python -- trt_builder.py "saved/RPN_ThunderNet2-activation:BN-ReLU-classes:2-input:3x512x896-complexity:0-statnett-0.5-2023-08-01"
/usr/local/lib/python3.10/dist-packages/torchvision/datapoints/__init__.py:14: UserWarning: The torchvision.datapoints and torchvision.transforms.v2 namespaces are still Beta. While we do not expect major breaking changes, some APIs may still change according to user feedback. Please submit any feedback you may have in this issue: https://github.com/pytorch/vision/issues/6753, and you can also check out https://github.com/pytorch/vision/issues/7319 to learn more about the APIs that we suspect might involve future changes. You can silence this warning by calling torchvision.disable_beta_transforms_warning().
warnings.warn(_BETA_TRANSFORMS_WARNING)
/usr/local/lib/python3.10/dist-packages/torchvision/transforms/v2/__init__.py:64: UserWarning: The torchvision.datapoints and torchvision.transforms.v2 namespaces are still Beta. While we do not expect major breaking changes, some APIs may still change according to user feedback. Please submit any feedback you may have in this issue: https://github.com/pytorch/vision/issues/6753, and you can also check out https://github.com/pytorch/vision/issues/7319 to learn more about the APIs that we suspect might involve future changes. You can silence this warning by calling torchvision.disable_beta_transforms_warning().
warnings.warn(_BETA_TRANSFORMS_WARNING)
2023-10-02 09:45:12,512 log.dl WARNING: One or both of cached dir (/storage/media/cache_512p) and originals dir (/storage/media) is None or does not exist, continuing without cache.
/usr/local/lib/python3.10/dist-packages/torch/__init__.py:1383: 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!
assert condition, message
/usr/local/lib/python3.10/dist-packages/torch/functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /opt/pytorch/pytorch/aten/src/ATen/native/TensorShape.cpp:3516.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
[10/02/2023-09:45:16] [TRT] [I] [MemUsageChange] Init CUDA: CPU +2, GPU +0, now: CPU 535, GPU 4640 (MiB)
[10/02/2023-09:45:19] [TRT] [I] [MemUsageChange] Init builder kernel library: CPU +1445, GPU +264, now: CPU 2056, GPU 4904 (MiB)
[10/02/2023-09:45:19] [TRT] [W] onnx2trt_utils.cpp:374: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[10/02/2023-09:45:19] [TRT] [W] Tensor DataType is determined at build time for tensors not marked as input or output.
[10/02/2023-09:45:19] [TRT] [W] onnx2trt_utils.cpp:400: One or more weights outside the range of INT32 was clamped
[10/02/2023-09:45:19] [TRT] [I] Graph optimization time: 0.0260609 seconds.
[10/02/2023-09:45:19] [TRT] [I] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +1, GPU +8, now: CPU 2079, GPU 4912 (MiB)
[10/02/2023-09:45:19] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +0, GPU +10, now: CPU 2079, GPU 4922 (MiB)
[10/02/2023-09:45:19] [TRT] [I] Local timing cache in use. Profiling results in this builder pass will not be stored.
[10/02/2023-09:46:26] [TRT] [I] Detected 1 inputs and 4 output network tensors.
[10/02/2023-09:46:26] [TRT] [I] Total Host Persistent Memory: 458112
[10/02/2023-09:46:26] [TRT] [I] Total Device Persistent Memory: 17408
[10/02/2023-09:46:26] [TRT] [I] Total Scratch Memory: 1376256
[10/02/2023-09:46:26] [TRT] [I] [MemUsageStats] Peak memory usage of TRT CPU/GPU memory allocators: CPU 7 MiB, GPU 105 MiB
[10/02/2023-09:46:26] [TRT] [I] [BlockAssignment] Started assigning block shifts. This will take 179 steps to complete.
[10/02/2023-09:46:26] [TRT] [I] [BlockAssignment] Algorithm ShiftNTopDown took 5.02352ms to assign 10 blocks to 179 nodes requiring 27747328 bytes.
[10/02/2023-09:46:26] [TRT] [I] Total Activation Memory: 27747328
[10/02/2023-09:46:26] [TRT] [I] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 2324, GPU 4921 (MiB)
[10/02/2023-09:46:26] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +1, GPU +10, now: CPU 2325, GPU 4931 (MiB)
[10/02/2023-09:46:26] [TRT] [W] TensorRT encountered issues when converting weights between types and that could affect accuracy.
[10/02/2023-09:46:26] [TRT] [W] If this is not the desired behavior, please modify the weights or retrain with regularization to adjust the magnitude of the weights.
[10/02/2023-09:46:26] [TRT] [W] Check verbose logs for the list of affected weights.
[10/02/2023-09:46:26] [TRT] [W] - 61 weights are affected by this issue: Detected subnormal FP16 values.
[10/02/2023-09:46:26] [TRT] [W] - 3 weights are affected by this issue: Detected values less than smallest positive FP16 subnormal value and converted them to the FP16 minimum subnormalized value.
[10/02/2023-09:46:26] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in building engine: CPU +6, GPU +10, now: CPU 6, GPU 10 (MiB) With int8 calibration, 6 outputs are detected and "Cask (shader run failed)" error occurs:root@cf9b065a0457:/home/brett/Work/Autosensor/NN# python -- trt_builder.py "saved/RPN_ThunderNet2-activation:BN-ReLU-classes:2-input:3x512x896-complexity:0-statnett-0.5-2023-08-01" -q
/usr/local/lib/python3.10/dist-packages/torchvision/datapoints/__init__.py:14: UserWarning: The torchvision.datapoints and torchvision.transforms.v2 namespaces are still Beta. While we do not expect major breaking changes, some APIs may still change according to user feedback. Please submit any feedback you may have in this issue: https://github.com/pytorch/vision/issues/6753, and you can also check out https://github.com/pytorch/vision/issues/7319 to learn more about the APIs that we suspect might involve future changes. You can silence this warning by calling torchvision.disable_beta_transforms_warning().
warnings.warn(_BETA_TRANSFORMS_WARNING)
/usr/local/lib/python3.10/dist-packages/torchvision/transforms/v2/__init__.py:64: UserWarning: The torchvision.datapoints and torchvision.transforms.v2 namespaces are still Beta. While we do not expect major breaking changes, some APIs may still change according to user feedback. Please submit any feedback you may have in this issue: https://github.com/pytorch/vision/issues/6753, and you can also check out https://github.com/pytorch/vision/issues/7319 to learn more about the APIs that we suspect might involve future changes. You can silence this warning by calling torchvision.disable_beta_transforms_warning().
warnings.warn(_BETA_TRANSFORMS_WARNING)
2023-10-02 09:44:36,238 log.dl WARNING: One or both of cached dir (/storage/media/cache_512p) and originals dir (/storage/media) is None or does not exist, continuing without cache.
/usr/local/lib/python3.10/dist-packages/torch/__init__.py:1383: 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!
assert condition, message
/usr/local/lib/python3.10/dist-packages/torch/functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /opt/pytorch/pytorch/aten/src/ATen/native/TensorShape.cpp:3516.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
[10/02/2023-09:44:40] [TRT] [I] [MemUsageChange] Init CUDA: CPU +2, GPU +0, now: CPU 532, GPU 4697 (MiB)
[10/02/2023-09:44:43] [TRT] [I] [MemUsageChange] Init builder kernel library: CPU +1445, GPU +266, now: CPU 2053, GPU 4920 (MiB)
[10/02/2023-09:44:43] [TRT] [W] onnx2trt_utils.cpp:374: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[10/02/2023-09:44:43] [TRT] [W] Tensor DataType is determined at build time for tensors not marked as input or output.
[10/02/2023-09:44:43] [TRT] [W] onnx2trt_utils.cpp:400: One or more weights outside the range of INT32 was clamped
[10/02/2023-09:44:43] [TRT] [I] Graph optimization time: 0.00543541 seconds.
[10/02/2023-09:44:43] [TRT] [I] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 2076, GPU 4928 (MiB)
[10/02/2023-09:44:43] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +0, GPU +10, now: CPU 2076, GPU 4938 (MiB)
[10/02/2023-09:44:43] [TRT] [I] Timing cache disabled. Turning it on will improve builder speed.
[10/02/2023-09:44:45] [TRT] [I] Detected 1 inputs and 6 output network tensors.
[10/02/2023-09:44:46] [TRT] [I] Total Host Persistent Memory: 450704
[10/02/2023-09:44:46] [TRT] [I] Total Device Persistent Memory: 1162240
[10/02/2023-09:44:46] [TRT] [I] Total Scratch Memory: 1605632
[10/02/2023-09:44:46] [TRT] [I] [MemUsageStats] Peak memory usage of TRT CPU/GPU memory allocators: CPU 0 MiB, GPU 42 MiB
[10/02/2023-09:44:46] [TRT] [I] [BlockAssignment] Started assigning block shifts. This will take 571 steps to complete.
[10/02/2023-09:44:46] [TRT] [I] [BlockAssignment] Algorithm ShiftNTopDown took 179.333ms to assign 69 blocks to 571 nodes requiring 78085120 bytes.
[10/02/2023-09:44:46] [TRT] [I] Total Activation Memory: 78085120
[10/02/2023-09:44:46] [TRT] [I] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 2426, GPU 4953 (MiB)
[10/02/2023-09:44:46] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +0, GPU +10, now: CPU 2426, GPU 4963 (MiB)
[10/02/2023-09:44:46] [TRT] [I] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 2426, GPU 4939 (MiB)
[10/02/2023-09:44:46] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +0, GPU +8, now: CPU 2426, GPU 4947 (MiB)
[10/02/2023-09:44:46] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +75, now: CPU 0, GPU 91 (MiB)
[10/02/2023-09:44:46] [TRT] [I] Starting Calibration.
[10/02/2023-09:44:48] [TRT] [E] 1: [softMaxV2Runner.cpp::execute::226] Error Code 1: Cask (shader run failed)
[10/02/2023-09:44:48] [TRT] [E] 3: [engine.cpp::~Engine::298] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/engine.cpp::~Engine::298, condition: mExecutionContextCounter.use_count() == 1. Destroying an engine object before destroying the IExecutionContext objects it created leads to undefined behavior.
)
[10/02/2023-09:44:48] [TRT] [E] 2: [calibrator.cpp::calibrateEngine::1181] Error Code 2: Internal Error (Assertion context->executeV2(&bindings[0]) failed. ) |
I've put together a repro script (int8_calibration_bug.py) that causes the Without int8 calibration:
With int8 calibration:
|
If polygraphy works well then this seems a bug in your code. Actually you can use polygraphy to do the calibration and build the engine. Could you please try this? |
I will try this soon, some other more pressing matters came up in the meantime. Demonstration of repro script with NGC docker container:brett@brett-home:~/Work/Autosensor/NN/tmp$ docker run --gpus all -it -v "$(pwd)":/workspace/tmp -v /usr/local/media:/usr/local/media --rm nvcr.io/nvidia/pytorch:23.09-py3
=============
== PyTorch ==
=============
NVIDIA Release 23.09 (build 69180607)
PyTorch Version 2.1.0a0+32f93b1
Container image Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Copyright (c) 2014-2023 Facebook Inc.
Copyright (c) 2011-2014 Idiap Research Institute (Ronan Collobert)
Copyright (c) 2012-2014 Deepmind Technologies (Koray Kavukcuoglu)
Copyright (c) 2011-2012 NEC Laboratories America (Koray Kavukcuoglu)
Copyright (c) 2011-2013 NYU (Clement Farabet)
Copyright (c) 2006-2010 NEC Laboratories America (Ronan Collobert, Leon Bottou, Iain Melvin, Jason Weston)
Copyright (c) 2006 Idiap Research Institute (Samy Bengio)
Copyright (c) 2001-2004 Idiap Research Institute (Ronan Collobert, Samy Bengio, Johnny Mariethoz)
Copyright (c) 2015 Google Inc.
Copyright (c) 2015 Yangqing Jia
Copyright (c) 2013-2016 The Caffe contributors
All rights reserved.
Various files include modifications (c) NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
NOTE: The SHMEM allocation limit is set to the default of 64MB. This may be
insufficient for PyTorch. NVIDIA recommends the use of the following flags:
docker run --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 ...
root@aca30650930b:/workspace# cd tmp/
root@aca30650930b:/workspace/tmp# pip install onnxruntime
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting onnxruntime
Obtaining dependency information for onnxruntime from https://files.pythonhosted.org/packages/e0/c1/236fe9621584f32ffd6c1eeba4005f1c2932d2e21ef901c321ae51b9219d/onnxruntime-1.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
Downloading onnxruntime-1.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.1 kB)
Collecting coloredlogs (from onnxruntime)
Downloading coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.0/46.0 kB 2.8 MB/s eta 0:00:00
Collecting flatbuffers (from onnxruntime)
Obtaining dependency information for flatbuffers from https://files.pythonhosted.org/packages/6f/12/d5c79ee252793ffe845d58a913197bfa02ae9a0b5c9bc3dc4b58d477b9e7/flatbuffers-23.5.26-py2.py3-none-any.whl.metadata
Downloading flatbuffers-23.5.26-py2.py3-none-any.whl.metadata (850 bytes)
Requirement already satisfied: numpy>=1.21.6 in /usr/local/lib/python3.10/dist-packages (from onnxruntime) (1.22.2)
Requirement already satisfied: packaging in /usr/local/lib/python3.10/dist-packages (from onnxruntime) (23.1)
Requirement already satisfied: protobuf in /usr/local/lib/python3.10/dist-packages (from onnxruntime) (4.24.3)
Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from onnxruntime) (1.12)
Collecting humanfriendly>=9.1 (from coloredlogs->onnxruntime)
Downloading humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 86.8/86.8 kB 11.7 MB/s eta 0:00:00
Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.10/dist-packages (from sympy->onnxruntime) (1.3.0)
Downloading onnxruntime-1.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 26.9 MB/s eta 0:00:00
Downloading flatbuffers-23.5.26-py2.py3-none-any.whl (26 kB)
Installing collected packages: flatbuffers, humanfriendly, coloredlogs, onnxruntime
Successfully installed coloredlogs-15.0.1 flatbuffers-23.5.26 humanfriendly-10.0 onnxruntime-1.16.1
WARNING: 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
[notice] A new release of pip is available: 23.2.1 -> 23.3
[notice] To update, run: python -m pip install --upgrade pip
root@aca30650930b:/workspace/tmp# python3 -- int8_calibration_bug.py -q
/workspace/tmp/int8_calibration_bug.py:91: 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!
if roi.shape[0] == 0: # Avoid convolutions on empty tensors.
/usr/local/lib/python3.10/dist-packages/torch/__init__.py:1383: 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!
assert condition, message
[10/15/2023-20:46:14] [TRT] [I] [MemUsageChange] Init CUDA: CPU +1, GPU +0, now: CPU 543, GPU 4298 (MiB)
[10/15/2023-20:46:17] [TRT] [I] [MemUsageChange] Init builder kernel library: CPU +1444, GPU +258, now: CPU 2064, GPU 4548 (MiB)
[10/15/2023-20:46:17] [TRT] [W] onnx2trt_utils.cpp:374: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[10/15/2023-20:46:17] [TRT] [W] Tensor DataType is determined at build time for tensors not marked as input or output.
[10/15/2023-20:46:17] [TRT] [W] onnx2trt_utils.cpp:400: One or more weights outside the range of INT32 was clamped
[10/15/2023-20:46:17] [TRT] [I] Graph optimization time: 0.000654949 seconds.
[10/15/2023-20:46:17] [TRT] [I] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 2066, GPU 4556 (MiB)
[10/15/2023-20:46:17] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +0, GPU +10, now: CPU 2066, GPU 4566 (MiB)
[10/15/2023-20:46:17] [TRT] [I] Timing cache disabled. Turning it on will improve builder speed.
[10/15/2023-20:46:18] [TRT] [I] Detected 1 inputs and 3 output network tensors.
[10/15/2023-20:46:18] [TRT] [I] Total Host Persistent Memory: 61280
[10/15/2023-20:46:18] [TRT] [I] Total Device Persistent Memory: 0
[10/15/2023-20:46:18] [TRT] [I] Total Scratch Memory: 8192
[10/15/2023-20:46:18] [TRT] [I] [MemUsageStats] Peak memory usage of TRT CPU/GPU memory allocators: CPU 0 MiB, GPU 4 MiB
[10/15/2023-20:46:18] [TRT] [I] [BlockAssignment] Started assigning block shifts. This will take 27 steps to complete.
[10/15/2023-20:46:18] [TRT] [I] [BlockAssignment] Algorithm ShiftNTopDown took 0.203276ms to assign 7 blocks to 27 nodes requiring 105984 bytes.
[10/15/2023-20:46:18] [TRT] [I] Total Activation Memory: 105984
[10/15/2023-20:46:18] [TRT] [I] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 2114, GPU 4579 (MiB)
[10/15/2023-20:46:18] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +1, GPU +10, now: CPU 2115, GPU 4589 (MiB)
[10/15/2023-20:46:18] [TRT] [I] [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 2114, GPU 4565 (MiB)
[10/15/2023-20:46:18] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +0, GPU +8, now: CPU 2114, GPU 4573 (MiB)
[10/15/2023-20:46:18] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +0, now: CPU 0, GPU 4 (MiB)
[10/15/2023-20:46:18] [TRT] [I] Starting Calibration.
[10/15/2023-20:46:18] [TRT] [E] 1: [softMaxV2Runner.cpp::execute::226] Error Code 1: Cask (shader run failed)
[10/15/2023-20:46:18] [TRT] [E] 3: [engine.cpp::~Engine::298] Error Code 3: API Usage Error (Parameter check failed at: runtime/api/engine.cpp::~Engine::298, condition: mExecutionContextCounter.use_count() == 1. Destroying an engine object before destroying the IExecutionContext objects it created leads to undefined behavior.
)
[10/15/2023-20:46:18] [TRT] [E] 2: [calibrator.cpp::calibrateEngine::1181] Error Code 2: Internal Error (Assertion context->executeV2(&bindings[0]) failed. ) |
Using polygraphy for int8 calibration of the full model gives the same error as the self-contained repro script I posted above (the extra installs are required for the custom dataloader):
Demonstration of dataloader script providing appropriate data:
Based on the filename of where the error occurs (softMaxV2Runner.cpp), I expect that this error originates from the onnx equivalent of the |
An even simpler repro script: int8_calibration_bug_simpler_repro.py, run with Here the model (which uses non-sensical data, but represents part of a region proposal section of a full RPN-style network) is simply class MyModel(torch.nn.Module):
def __init__(self):
super(MyModel, self).__init__()
self.input_size = [3, 64, 64]
def forward(self, x):
N = x.shape[0]
scores = x.reshape(N, -1, 2, 2)[:, :, 0]
boxes = x.reshape(N, -1, 4)
prediction_mask = [torch.argmax(score, dim=1) for score in scores.unbind(dim=0)]
proposals = [box[index] for box, index in zip(boxes.unbind(dim=0), prediction_mask)] # Select the foreground boxes as proposals.
scores = [score[mask, 0] for score, mask in zip(torch.nn.functional.softmax(scores, dim=-1).unbind(dim=0), prediction_mask)] # Get their normalised scores.
keeps = [torchvision.ops.nms(boxes, scores, iou_threshold=0.7)[:20] for boxes, scores in zip(proposals, scores)] # Perform non-maximum suppression on each item in the batch. Take only the top 20 from each.
boxes = [proposal[keep] for proposal, keep in zip(proposals, keeps)] # Commenting out this line prevents the "[softMaxV2Runner.cpp::execute::226] Error Code 1: Cask (shader run failed)" error.
return x, scores, boxes The |
I've seen a similar issue recently, what's your GPU driver version? |
I can reproduce the issue with int8_calibration_bug_simpler_repro.py. I'll file internal bug to track this later. |
The driver version has been updated since the original post, which was
|
Thanks, I've filed internal bug 4340507 to track this, sorry about the delayed response, quite busy with other things these day :-) |
Issue is fixed in TRT 10. Closed. |
usually binary compile not with right sm arch |
Description
When trying to convert a PyTorch model to a TensorRT engine, int8 calibration fails with:
Inspecting the onnx model that the engine is being built from with polygraphy correctly shows 1 input and 4 outputs:
The model is proprietary, so I can't share it and I don't currently have a minimal repro model, however, I can share the builder script (trt_builder.py) which is based on https://github.com/NVIDIA-AI-IOT/jetson_dla_tutorial#step-7.
I've also checked that calibration with the script works if a toy model (with just a single convolution layer) is used to verify that the
DatasetCalibrator
class works.When building the TensorRT engine without quantization (i.e., without int8 calibration), the correct number of network outputs is detected and the engine is built successfully.
and polygraphy gives sensible output for the resulting engine:
Environment
Environment
Modified
collect_env.py
script from PyTorch to includetensorrt
in the pip packages:The text was updated successfully, but these errors were encountered: