Skip to content

Releases: NVIDIA/DALI

DALI v1.32.0

29 Nov 17:06
Compare
Choose a tag to compare

Key Features and Enhancements

This DALI release includes the following key features and enhancements:

Fixed Issues

  • Fixed a potential crash on process teardown when using the fn.python_function in the DALI pipeline (#5138).
  • Removed unused arguments from fn.fast_resize_crop_mirror. The operator was deprecated in favor of fn.resize_crop_mirror (#5123).
  • Fixed a potential crash on process teardown when using CPU fn.resize in the DALI pipeline (#5133).
  • Fixed constructing tensors from stream-aware __cuda_array_interface__ v3 (#5125).
  • Fixed the crop_pos_z handling for a fixed crop window in the fn.crop operator (#5119).
  • Fixed releasing Python tensors without GIL in fn.external_source. The problem led to crashes when using fn.external_source in no_copy or parallel mode with conditional execution enabled in the pipeline (#5101).

Improvements

  • Improve checkpointing docs (#5142)
  • Add type hints to python-defined ops, run and tfrecord APIs (#5118)
  • Allow mid-epoch checkpointing in FileReader (#5113)
  • Mark more stateless operators (#5114)
  • Load ASAN during the build with sanitizers (#5121)
  • Add default arg values to JAX decorator (#5115)
  • Improve docs of variance and stddev (#5130)
  • Update python op tutorial (#5120)
  • Generalize __module__ handling and hide private modules docs (#5112)
  • Add mid-epoch checkpointing to Loader (#5103)
  • Add ViT data processing pipeline to hw_bench_script (#5110)
  • Add JAX Getting Started Tutorial (#5095)
  • Generate type hints for fn and ops APIs (#5096)
  • Move to CUDA 12.3 (#5106)
  • Add the BUILD ID to the Xavier wheel name (#5099)
  • Add Fast-Forward to Loader base (#5088)
  • Update installation guide to move https://pypi.nvidia.com/ or just pypi (#4815)
  • Remove Python 3.7 support and replace defaults with Python 3.8 (#5089)
  • Add better error for VFR check (#5092)
  • Move the snapshot queue from loader to reader (#5085)
  • Refactor ops and fn APIs (#5039)

Bug Fixes

  • Fix Python Functions ops signature (#5143)
  • Fix stateless tests (#5144)
  • Fix exit sequence. (#5138)
  • Fix data_iterator docs (#5140)
  • Reimplement (Fast)ResizeCropMirror in terms of Resize. Remove dead code. (#5123)
  • Ensure that the default host resource is destroyed after ResamplingFilters CPU instance. (#5133)
  • Fix CVE-2023-45853 in zlib (#5116)
  • Fix stub generation during DALI build (#5124)
  • Improve checkpointing error message (#5128)
  • Fix constructing tensors from cuda_array_interface v3. (#5125)
  • Fix lack of crop_pos_z handling for fixed crop window (#5119)
  • Fix CVE-2022-33065 in libsnd (#5105)
  • Add DALI package dependencies to the custom build test (#5122)
  • Make sure that the relase of python memory from the DALI tensor happens inside GIL (#5101)
  • Relax UpdatePropertiesFromSamples check constraints (#5098)

Breaking API changes

  • DALI 1.31 was the final release that supported Python 3.7.

Deprecated features

  • The operator fn.fast_resize_crop_mirror was deprecated in favour of fn.resize_crop_mirror.

Known issues:

  • The video loader operator requires that the key frames occur, at a minimum, every 10 to 15 frames of the video stream.
    If the key frames occur at a frequency that is less than 10-15 frames, the returned frames might be out of sync.
  • Experimental VideoReaderDecoder does not support open GOP.
    It will not report an error and might produce invalid frames. VideoReader uses a heuristic approach to detect open GOP and should work in most common cases.
  • The DALI TensorFlow plugin might not be compatible with TensorFlow versions 1.15.0 and later.
    To use DALI with the TensorFlow version that does not have a prebuilt plugin binary shipped with DALI, make sure that the compiler that is used to build TensorFlow exists on the system during the plugin installation. (Depending on the particular version, you can use GCC 4.8.4, GCC 4.8.5, or GCC 5.4.)
  • In experimental debug and eager modes, the GPU external source is not properly synchronized with DALI internal streams.
    As a workaround, you can manually synchronize the device before returning the data from the callback.
  • Due to some known issues with meltdown/spectra mitigations and DALI, DALI shows best performance when running in Docker with escalated privileges, for example:
    • privileged=yes in Extra Settings for AWS data points
    • --privileged or --security-opt seccomp=unconfined for bare Docker.

Binary builds

NOTE: DALI builds for CUDA 12 dynamically link the CUDA toolkit. To use DALI, install the latest CUDA toolkit.

CUDA 11.0 and CUDA 12.0 builds use CUDA toolkit enhanced compatibility. 
They are built with the latest CUDA 11.x/12.x toolkit respectively but they can run on the latest, 
stable CUDA 11.0/CUDA 12.0 capable drivers (450.80 or later and 525.60 or later respectively).
However, using the most recent driver may enable additional functionality. 
More details can be found in enhanced CUDA compatibility guide.

Install via pip for CUDA 12.0:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda120==1.32.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda120==1.32.0

or for CUDA 11:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.32.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.32.0

Or use direct download links (CUDA 12.0):

Or use direct download links (CUDA 11.0):

FFmpeg source code:

  • This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Libsndfile source code:

DALI v1.31.0

30 Oct 18:27
Compare
Choose a tag to compare

Key Features and Enhancements

This DALI release includes the following key features and enhancements:

  • Preliminary experimental support for pipeline checkpointing. (#5061, #5057)
  • Added data_iterator and peekable_data_iterator decorators for simplified JAX iterators definitions. (#5050, #5049)
  • Added the "Training neural network with DALI and Pax" tutorial. (#5060)

Fixed Issues

  • The fn.permute_batch operator can now be used with the conditional execution (if expressions). (#5063)
  • Fixed support for videos with different bit depths in the video decoder. (#5055)
  • Input operators with multiple outputs can be fed with data by the operator name. (#5066)

Improvements

  • Expose checkpointing in Python pipeline (#5061
  • Update deps: RapidJSON, OpenCV (#5079
  • Fix coverity issues 10/23 (#5083
  • Add Pax tutorial (#5060
  • Add Efficientnet pipeline to hw_decoder_bench (#5076
  • Add JAX iterator decorator (#5050
  • Update libwep library to remediate CVE-2023-5129 (#5075
  • Replace optional stream in SaveState with AccessOrder  (#5062
  • Add implicit scope to batch_permutation (#5063
  • Fix enumeration formatting in conditionals docs (#5067
  • Update DALI key visual (#5069
  • Deprecate Python 3.7 starting DALI 1.31 (#5068
  • Extend HW image decoder bench script to support multiple GPUs (#5065
  • Remove the avformat_find_stream_info call from the video loader when not needed (#5047
  • Add ability to serialize/deserialize Checkpoint (#5057
  • Remove dali::any in favor of std::any. (#5058
  • Disable container overflow sanitizer all the time (#5053
  • Replace PaddlePaddle ResNet50 example with one from the DeepLearningExamples (#5048
  • Make the ResNet50 example compatible with TensorFlow 2.13 (#5045
  • Reorganize JAX plugin (#5049
  • Replace GPU dltensor per-sample copying kernel with a batched one (#5038
  • September dependency update (#5043

Bug Fixes

  • Add user-friendly message about missing numpy (#5081
  • Set external input by op name instead of tensor name (#5066
  • Fix the support of videos with different bith dept in the video reader (#5055
  • Set layout from argument in external source (#5064
  • Update JAX version to 0.4.13 (#5056
  • Extend Numba compatibility checks. Skip Numba GPU tests on incompatibe systems. (#5054

Breaking API changes

There are no breaking changes in this DALI release.

Deprecated features

  • Python 3.7 support is deprecated starting from DALI 1.31.

Known issues:

  • The video loader operator requires that the key frames occur, at a minimum, every 10 to 15 frames of the video stream.
    If the key frames occur at a frequency that is less than 10-15 frames, the returned frames might be out of sync.
  • Experimental VideoReaderDecoder does not support open GOP.
    It will not report an error and might produce invalid frames. VideoReader uses a heuristic approach to detect open GOP and should work in most common cases.
  • The DALI TensorFlow plugin might not be compatible with TensorFlow versions 1.15.0 and later.
    To use DALI with the TensorFlow version that does not have a prebuilt plugin binary shipped with DALI, make sure that the compiler that is used to build TensorFlow exists on the system during the plugin installation. (Depending on the particular version, you can use GCC 4.8.4, GCC 4.8.5, or GCC 5.4.)
  • In experimental debug and eager modes, the GPU external source is not properly synchronized with DALI internal streams.
    As a workaround, you can manually synchronize the device before returning the data from the callback.
  • Due to some known issues with meltdown/spectra mitigations and DALI, DALI shows best performance when running in Docker with escalated privileges, for example:
    • privileged=yes in Extra Settings for AWS data points
    • --privileged or --security-opt seccomp=unconfined for bare Docker.

Binary builds

NOTE: DALI builds for CUDA 12 dynamically link the CUDA toolkit. To use DALI, install the latest CUDA toolkit.

CUDA 11.0 and CUDA 12.0 builds use CUDA toolkit enhanced compatibility. 
They are built with the latest CUDA 11.x/12.x toolkit respectively but they can run on the latest, 
stable CUDA 11.0/CUDA 12.0 capable drivers (450.80 or later and 525.60 or later respectively).
However, using the most recent driver may enable additional functionality. 
More details can be found in enhanced CUDA compatibility guide.

Install via pip for CUDA 12.0:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda120==1.31.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda120==1.31.0

or for CUDA 11:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.31.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.31.0

Or use direct download links (CUDA 12.0):

Or use direct download links (CUDA 11.0):

FFmpeg source code:

  • This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Libsndfile source code:

DALI v1.30.0

28 Sep 15:21
Compare
Choose a tag to compare

Key Features and Enhancements

This DALI release includes the following key features and enhancements:

  • Added support for running custom CPU and GPU Python operators (fn.*python_function) inside DALI asynchronous pipelines (#4965, #5038).
  • Improved support for GPU Numba operator (plugin.numba.fn.experimental.numba_function) (#4000).
  • Improved (fn.crop_mirror_normalize) performance (#4993, #4992).
  • Added support for strides in subscript operator (#5007).
  • Added support for video in predefined automatic augmentations (#5012).
  • Added case insensitive mode in fn.readers.webdataset (#5016).
  • Moved to CUDA 12.2U2 (#5027).
  • Added Flax training examples (#5004, #4978).

Fixed Issues

  • Fixed GPU fn.readers.numpy global shuffling (#5034).
  • Fixed finalization of custom operator plugins during pipeline shutdown (#5036).
  • Fixed synchronization issue in fn.resize operator family that could result in distorted outputs in initial iterations (#4990).

Improvements

  • Replace GPU dltensor per-sample copying kernel with a batched one (#5038)
  • September dependency update (#5043)
  • Make download_pip_packages.sh resilient to errors (#5044)
  • Move to CUDA 12.2U2 (#5027)
  • Clean up and refactor code around Multiple Input Sets (#5035)
  • Move to the upstream CV-CUDA 0.4 (#5032)
  • Revert "Make nesting conditionals supported only for Python 3.7+" (#5031)
  • Move all remaining video files to LFS (#5025)
  • Refactor custom op wrappers into separate files of ops module (#5028)
  • Add pipeline checkpointing to the Executor (#5008)
  • Refactor ops into a submodule (#5018)
  • Add checkpointing support to ImageRandomCrop (#4999)
  • Replace deprecated fluid APIs to recommended APIs of Paddle (#5020)
  • fix: CMakeLists.txt typo (#5006)
  • Support video in predefined automatic augmentations (#5012)
  • Extend GPU numba support (#4000)
  • Add opt-in support for case insensitive webdataset (#5016)
  • Add optimized variant of CMN for HWC to HWC pad FP16 case (#4993)
  • Added Stride to Subscript and Slice Kernel (#5007)
  • Add optimized variant of CMN for HWC to HWC case (#4992)
  • Add multiple GPU code to Flax example (#5004)
  • Pin inputs to decoder operators as well (#5003)
  • Add checkpointing support to stateless operators used in EfficientNet (#4977)
  • Use a different way to ensure that the right version of libabseil is used in conda (#4991)
  • Make samples' descriptors copy in resize op fully asynchronous (#4989)
  • Remove mentions of experimental from conditional tutorial. (#4988)
  • Enable python operators in async pipelines (#4965)
  • Make sure that the right version of libabseil is used in conda (#4987)
  • Coverity fixes - 08.2023 (#4970)
  • CPU fn.random operators checkpointing (#4961)
  • Add Flax training example (#4978)
  • Make error reporting more verbose for rand augment tests (#4958)

Bug Fixes

  • Propagate to conda build packages required for DALI installation (#5041)
  • Fix wheel predownload (#5023)
  • Fix GPU numpy reader global shuffling (#5034)
  • Change the way the input operators are traversed during the pipeline shutdown (#5036)
  • Fix issues detected by Coverity as of 2023.09.04. (#5030)
  • Fix CUDA block sizes in Numba GPU tests. (#5026)
  • Change Loader to make checkpoints at the end of an epoch (#5019)
  • Disable Flax tutorial test (#5015)
  • Fix resize processing cost calculation (#5009)
  • Fix abs diff computation in check_batch test utility (#4957)
  • Fix sync in Resize operator family (#4990)

Breaking API changes

There are no breaking changes in this DALI release.

Deprecated features

No features were deprecated in this release.

Known issues:

  • The video loader operator requires that the key frames occur, at a minimum, every 10 to 15 frames of the video stream.
    If the key frames occur at a frequency that is less than 10-15 frames, the returned frames might be out of sync.
  • Experimental VideoReaderDecoder does not support open GOP.
    It will not report an error and might produce invalid frames. VideoReader uses a heuristic approach to detect open GOP and should work in most common cases.
  • The DALI TensorFlow plugin might not be compatible with TensorFlow versions 1.15.0 and later.
    To use DALI with the TensorFlow version that does not have a prebuilt plugin binary shipped with DALI, make sure that the compiler that is used to build TensorFlow exists on the system during the plugin installation. (Depending on the particular version, you can use GCC 4.8.4, GCC 4.8.5, or GCC 5.4.)
  • In experimental debug and eager modes, the GPU external source is not properly synchronized with DALI internal streams.
    As a workaround, you can manually synchronize the device before returning the data from the callback.
  • Due to some known issues with meltdown/spectra mitigations and DALI, DALI shows best performance when running in Docker with escalated privileges, for example:
    • privileged=yes in Extra Settings for AWS data points
    • --privileged or --security-opt seccomp=unconfined for bare Docker.

Binary builds

NOTE: DALI builds for CUDA 12 dynamically link the CUDA toolkit. To use DALI, install the latest CUDA toolkit.

CUDA 11.0 and CUDA 12.0 builds use CUDA toolkit enhanced compatibility. 
They are built with the latest CUDA 11.x/12.x toolkit respectively but they can run on the latest, 
stable CUDA 11.0/CUDA 12.0 capable drivers (450.80 or later and 525.60 or later respectively).
However, using the most recent driver may enable additional functionality. 
More details can be found in enhanced CUDA compatibility guide.

Install via pip for CUDA 12.0:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda120==1.30.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda120==1.30.0

or for CUDA 11:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.30.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.30.0

Or use direct download links (CUDA 12.0):

Or use direct download links (CUDA 11.0):

FFmpeg source code:

  • This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Libsndfile source code:

DALI v1.29.0

24 Aug 13:24
ecbccad
Compare
Choose a tag to compare

Key Features and Enhancements

This DALI release includes the following key features and enhancements:

  • Added GPU fn.experimental.median_blur operator. (#4950, #4975)
  • Improved JAX support:
    • Added support for jax.Sharding to dali.plugin.jax.DALIGenericIterator (#4969).
    • Improved examples and tutorials (#4973, #4956, #4944, #4937).
  • Optimized the HWC to CHW transposition variant of the fn.crop_mirror_normalize operator (#4972).
  • Moved to CUDA 12.2U1 (#4966)

Fixed Issues

  • Fixed layout broadcasting in arithmetic expressions (#4951).
  • Added missing layout propagation in fn.reductions (#4947).

Improvements

  • Trim CV-CUDA to expose only median blur to reduce the binary size (#4985)
  • Add optimized variant of CMN for HWC to CHW case (#4972)
  • Enable CV-CUDA build for xavier (#4976)
  • Update DALI_deps version (#4971)
  • Add automatic parallelization JAX example (#4973)
  • Exclude median_blur test from xavier tests (#4975)
  • Move to CUDA 12.2 U1 (#4966)
  • Add basic jax.Sharding support for the iterator (#4969)
  • Enable cv-cuda in conda build (#4968)
  • Fix wheel bundling with cvcuda for debug builds (#4959)
  • Fix Getting Started link in README (#4962)
  • Add multigpu JAX tutorial (#4956)
  • Add median blur operator (#4950)
  • Fix updated linter errors (#4960)
  • Support checkpointing in FileReader (#4954)
  • Add CV-CUDA as a subproject (#4949)
  • Remove the direct use of cuda_for_dali auxiliary namespace. (#4953)
  • Checkpointing classes (#4946)
  • Make sure that lossless support is disabled when it fails to initialize (#4934)
  • Add L3 short test for RN50 training (#4614)
  • DALI_deps update 13 Jul 2023 (#4945)
  • Add JAX tutorial tests (#4944)
  • Update OpenCV 4.7.0 to 4.8.0, patch for CVE-2023-1999 (#4941)
  • Fix L1 Jupyter Conda Job (#4942)
  • Update the TensorFlow version used in tests (#4940)
  • Add basic JAX tutorial (#4937)

Bug Fixes

  • Checkpoint after running epoch (#4983
  • Propagate layout in fn.reductions (#4947)
  • Fix layout broadcasting arithm ops (#4951)
  • Fix coverity issues - July 2023 (#4948)

Breaking API changes

There are no breaking changes in this DALI release.

Deprecated features

No features were deprecated in this release.

Known issues:

  • The video loader operator requires that the key frames occur, at a minimum, every 10 to 15 frames of the video stream.
    If the key frames occur at a frequency that is less than 10-15 frames, the returned frames might be out of sync.
  • Experimental VideoReaderDecoder does not support open GOP.
    It will not report an error and might produce invalid frames. VideoReader uses a heuristic approach to detect open GOP and should work in most common cases.
  • The DALI TensorFlow plugin might not be compatible with TensorFlow versions 1.15.0 and later.
    To use DALI with the TensorFlow version that does not have a prebuilt plugin binary shipped with DALI, make sure that the compiler that is used to build TensorFlow exists on the system during the plugin installation. (Depending on the particular version, you can use GCC 4.8.4, GCC 4.8.5, or GCC 5.4.)
  • In experimental debug and eager modes, the GPU external source is not properly synchronized with DALI internal streams.
    As a workaround, you can manually synchronize the device before returning the data from the callback.
  • Due to some known issues with meltdown/spectra mitigations and DALI, DALI shows best performance when running in Docker with escalated privileges, for example:
    • privileged=yes in Extra Settings for AWS data points
    • --privileged or --security-opt seccomp=unconfined for bare Docker.

Binary builds

NOTE: DALI builds for CUDA 12 dynamically link the CUDA toolkit. To use DALI, install the latest CUDA toolkit.

CUDA 11.0 and CUDA 12.0 builds use CUDA toolkit enhanced compatibility. 
They are built with the latest CUDA 11.x/12.x toolkit respectively but they can run on the latest, 
stable CUDA 11.0/CUDA 12.0 capable drivers (450.80 or later and 525.60 or later respectively).
However, using the most recent driver may enable additional functionality. 
More details can be found in enhanced CUDA compatibility guide.

Install via pip for CUDA 12.0:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda120==1.29.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda120==1.29.0

or for CUDA 11:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.29.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.29.0

Or use direct download links (CUDA 12.0):

Or use direct download links (CUDA 11.0):

FFmpeg source code:

  • This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Libsndfile source code:

DALI v1.28.0

24 Jul 11:29
Compare
Choose a tag to compare

Key Features and Enhancements

This DALI release includes the following key features and enhancements:

Fixed Issues

No major fixes are included in this release.

Improvements

  • Fix OpticalFlow test premature exit on sm < 8 (#4933)
  • Remove dependency on forked libcudacxx (#4938)
  • Add JAX multinode multigpu tests (#4929)
  • Adding handling of non-uniform tensors in DALI Pytorch plugin (#4911)
  • Reworks supported Python versions (#4924)
  • Disable cudaMemPoolReuseAllowOpportunistic in cudaMallocAsync for <r470.60 (#4931)
  • Move to CUDA 12.2 (#4930)
  • Remove template from tensor rule-of-five for c++20 compat (#4928)
  • Add JAX container test job (#4927)
  • Extends guards against intercepting by asan certain functions (#4925)
  • Fix CUDA_remove_toolkit_include_dirs CMake function (#4922)
  • Add alignment to cuda_malloc_async_memory_resource. (#4923)
  • Add source_info to the tensors produced by video readers (#4916)
  • Add JAX multigpu sharding tests (#4919)
  • Add basic JAX multi process test (#4906)
  • Add libabseil as a runtime DALI dependency in conda (#4907)
  • Remove pinning Cython version from PyThon SSD test (#4913)
  • Add a memory resource based on cudaMallocAsync (#4900)

Bug Fixes

  • Fix memory_resource compilation in conda build (#4939)
  • Disable JAX iterator tests in ASAN build (#4920)
  • Fix number of devices for JAX multigpu test (#4921)
  • Remove unnecessary cudaDeviceSynchronize from memory resource perf test. (#4908)
  • Fix broken assertion in sequence operator (#4905)

Breaking API changes

  • DALI 1.27 was the final release that supported Python 3.6.

Deprecated features

No features were deprecated in this release.

Known issues:

  • The video loader operator requires that the key frames occur, at a minimum, every 10 to 15 frames of the video stream.
    If the key frames occur at a frequency that is less than 10-15 frames, the returned frames might be out of sync.
  • Experimental VideoReaderDecoder does not support open GOP.
    It will not report an error and might produce invalid frames. VideoReader uses a heuristic approach to detect open GOP and should work in most common cases.
  • The DALI TensorFlow plugin might not be compatible with TensorFlow versions 1.15.0 and later.
    To use DALI with the TensorFlow version that does not have a prebuilt plugin binary shipped with DALI, make sure that the compiler that is used to build TensorFlow exists on the system during the plugin installation. (Depending on the particular version, you can use GCC 4.8.4, GCC 4.8.5, or GCC 5.4.)
  • In experimental debug and eager modes, the GPU external source is not properly synchronized with DALI internal streams.
    As a workaround, you can manually synchronize the device before returning the data from the callback.
  • Due to some known issues with meltdown/spectra mitigations and DALI, DALI shows best performance when running in Docker with escalated privileges, for example:
    • privileged=yes in Extra Settings for AWS data points
    • --privileged or --security-opt seccomp=unconfined for bare Docker.

Binary builds

NOTE: DALI builds for CUDA 12 dynamically link the CUDA toolkit. To use DALI, install the latest CUDA toolkit.

CUDA 11.0 and CUDA 12.0 builds use CUDA toolkit enhanced compatibility. 
They are built with the latest CUDA 11.x/12.x toolkit respectively but they can run on the latest, 
stable CUDA 11.0/CUDA 12.0 capable drivers (450.80 or later and 525.60 or later respectively).
However, using the most recent driver may enable additional functionality. 
More details can be found in enhanced CUDA compatibility guide.

Install via pip for CUDA 12.0:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda120==1.28.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda120==1.28.0

or for CUDA 11:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.28.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.28.0

Or use direct download links (CUDA 12.0):

Or use direct download links (CUDA 11.0):

FFmpeg source code:

  • This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Libsndfile source code:

DALI v1.27.0

27 Jun 16:01
Compare
Choose a tag to compare

Key Features and Enhancements

This DALI release includes the following key features and enhancements:

  • Added O_DIRECT support mode support to fn.readers.tfrecord (#4820).
  • Added JAX integration (#4867, #4883, #4853).
  • Added the GPU backend for fn.experimental.readers.fits images that are stored in the FITS format (#4752).

Fixed Issues

  • Assured deterministic outputs for multiple instances of auto_augment pipelines that are built with the same seeds (#4885).
  • Fixed the blocking option in the external source operator (#4874).
  • Fixed the returning empty pixel mask for COCO samples with no objects (#4856).
  • Fixed the handling of unsupported images by image decoders in fn.experimental.decoders (#4846).

Improvements

  • Update deps 23/06 (#4902)
  • Add O_DIRECT support to the TFRecord reader (#4820)
  • Relax the gast version requirement (#4896)
  • Add DALI iterator for JAX (#4867)
  • Fix coverity issues (#4897)
  • Add deprecation warning for Python3.6 (#4895)
  • Use memory pool for large host allocs (#4886)
  • Improve the feed_input documentation regarding prefetching (#4875)
  • Support nesting data structures in conditionals (#4880)
  • Add JAX multi GPU tests (#4883)
  • Move the mention of the EfficientNet example to a box (#4882)
  • Update the Protobuf version to 23.01 and adjust the build system to it (#4861)
  • Add basic JAX integration (#4853)
  • Limit the version of typing_extensions for the TensorFlow test (#4863)
  • Add GPU implementation for Fits reader (#4752)
  • Disable Numba CPU tests on AARCH64. (#4862)
  • Update readme text and code highlighting (#4858)
  • Disable NUMBA CPU test for runs with memory sanitizer (#4854)
  • Adjust numpy reader tests for nose2 (#4851)
  • Update support for Numba 0.57 (#4845)
  • Move to CUTLASS 3.1 (#4841)
  • Add a test that triggers a failure in Python (#4836)
  • Improve VA reservation robustness (#4826)
  • fix: bad relative path (#4822)

Bug Fixes

  • Skip DLPack CPU export test for incompatible Numpy (#4904)
  • Fix parsing numpy header (#4903)
  • Remove outdated info from iterators docs. (#4899)
  • Bugfix (async_pool): Store original alignment in 'padded_'. (#4898)
  • Fix the augmentation coalescing in AA (#4887)
  • Skip tests for incompatible env (#4894)
  • Make nesting conditionals supported only for Python 3.7+ (#4888)
  • Fix DALI FW iterator reset for DROP last batch policy (#4881)
  • Assure same operator initialization order in the AA graph (#4885)
  • Fix the lack of support for the blocking option in the external source operator (#4874)
  • Disable container overflow errors (#4878)
  • Fix the wrong assignment of the default values in build_helper.sh (#4871)
  • Disable JAX support for unsupported Python versions (#4870)
  • Disable FITS test when not building with CFITSIO support. Fix build without libTIFF. (#4866)
  • Fix layout propagation in jpeg compression distortion (#4864)
  • Fix returning empty pixel mask for COCO samples with no objects (#4856)
  • Bugfix in imgcodec: filter should happen after set decode result (#4846)
  • Don't run image decoder tests in test discovery stage. (#4833)

Breaking API changes

There are no breaking changes in this DALI release.

Deprecated features

DALI 1.27 is the final release that will support Python 3.6.

Known issues:

  • The video loader operator requires that the key frames occur, at a minimum, every 10 to 15 frames of the video stream.
    If the key frames occur at a frequency that is less than 10-15 frames, the returned frames might be out of sync.
  • Experimental VideoReaderDecoder does not support open GOP.
    It will not report an error and might produce invalid frames. VideoReader uses a heuristic approach to detect open GOP and should work in most common cases.
  • The DALI TensorFlow plugin might not be compatible with TensorFlow versions 1.15.0 and later.
    To use DALI with the TensorFlow version that does not have a prebuilt plugin binary shipped with DALI, make sure that the compiler that is used to build TensorFlow exists on the system during the plugin installation. (Depending on the particular version, you can use GCC 4.8.4, GCC 4.8.5, or GCC 5.4.)
  • In experimental debug and eager modes, the GPU external source is not properly synchronized with DALI internal streams.
    As a workaround, you can manually synchronize the device before returning the data from the callback.
  • Due to some known issues with meltdown/spectra mitigations and DALI, DALI shows best performance when running in Docker with escalated privileges, for example:
    • privileged=yes in Extra Settings for AWS data points
    • --privileged or --security-opt seccomp=unconfined for bare Docker.

Binary builds

NOTE: DALI builds for CUDA 12 dynamically link the CUDA toolkit. To use DALI, install the latest CUDA toolkit.

CUDA 11.0 and CUDA 12.0 builds use CUDA toolkit enhanced compatibility. 
They are built with the latest CUDA 11.x/12.x toolkit respectively but they can run on the latest, 
stable CUDA 11.0/CUDA 12.0 capable drivers (450.80 or later and 525.60 or later respectively).
However, using the most recent driver may enable additional functionality. 
More details can be found in enhanced CUDA compatibility guide.

Install via pip for CUDA 12.0:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda120==1.27.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda120==1.27.0

or for CUDA 11:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.27.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.27.0

Or use direct download links (CUDA 12.0):

Or use direct download links (CUDA 11.0):

FFmpeg source code:

  • This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Libsndfile source code:

DALI v1.26.0

23 May 15:25
Compare
Choose a tag to compare

Key Features and Enhancements

This DALI release includes the following key features and enhancements:

  • Added O_DIRECT mode support to fn.readers.numpy (#4796, #4848).
  • Added an option to filter out iscrowd entries from COCO (#4792).
  • Moved to CUDA 12.1 update 1 (#4798).
  • Made DALI GPU tensors directly convertible to PyTorch (#4800).

Fixed Issues

  • Fixed a memory leak in the fn.experimental.remap operator (#4790).
  • Fixed the recognition of new CuPy ndarrays in fn.external_source (#4793).

Improvements

  • Cumulative dependency update for May, 2023. (#4823)
  • Add O_DIRECT support in numpy_reader (#4796)
  • Add a native dataloader to RN50 PyTorch example (#4807)
  • Fix coverity issues (Apr 2023) (#4803)
  • Move to CUDA 12.1 update 1 (#4798)
  • Make DALI array_interface memory writable (#4800)
  • Add support for filtering in/our iscrowd entries from COCO (#4792)
  • Add bug and question templates to DALI github repo (#4782)
  • Rework conditional-like execution tutorial for arithmetic ops (#4795)
  • Add "depleted" operator trace (#4794)
  • Add "repeat_last" option to ExternalSource and handle it in Pipeline. (#4775)
  • Use dedicated GTC 2023 event links (#4781)

Bug Fixes

  • Fix race condition in the CPU numpy reader (#4848)
  • Update required packages for TL1_python-self-test_conda (#4843)
  • Fix FITS tests with python3.7, reduce memory usage in rand aug tests (#4844)
  • Fix FITS reader test with Python3.6 (#4835)
  • Fix TensorFlow tests (#4837)
  • Fix conda test and tests on Xavier (#4827)
  • Restrict the urllib3 version in tests to <2.0 (#4824)
  • Fix error propagation from the QA test (#4821)
  • Make TL0_python-self-test-base-cuda using the local CUDA toolkit (#4811)
  • Fix scratchpad usage in Remap. Add more documentation to scratchpad. (#4790)
  • Fix the regex that recognizes CuPy arrays. (#4793)

Breaking API changes

There are no breaking changes in this DALI release.

Deprecated features

No features were deprecated in this release.

Known issues:

  • The video loader operator requires that the key frames occur, at a minimum, every 10 to 15 frames of the video stream.
    If the key frames occur at a frequency that is less than 10-15 frames, the returned frames might be out of sync.
  • Experimental VideoReaderDecoder does not support open GOP.
    It will not report an error and might produce invalid frames. VideoReader uses a heuristic approach to detect open GOP and should work in most common cases.
  • The DALI TensorFlow plugin might not be compatible with TensorFlow versions 1.15.0 and later.
    To use DALI with the TensorFlow version that does not have a prebuilt plugin binary shipped with DALI, make sure that the compiler that is used to build TensorFlow exists on the system during the plugin installation. (Depending on the particular version, you can use GCC 4.8.4, GCC 4.8.5, or GCC 5.4.)
  • In experimental debug and eager modes, the GPU external source is not properly synchronized with DALI internal streams.
    As a workaround, you can manually synchronize the device before returning the data from the callback.
  • Due to some known issues with meltdown/spectra mitigations and DALI, DALI shows best performance when running in Docker with escalated privileges, for example:
    • privileged=yes in Extra Settings for AWS data points
    • --privileged or --security-opt seccomp=unconfined for bare Docker.

Binary builds

NOTE: DALI builds for CUDA 12 dynamically link the CUDA toolkit. To use DALI, install the latest CUDA toolkit.

CUDA 11.0 and CUDA 12.0 builds use CUDA toolkit enhanced compatibility. 
They are built with the latest CUDA 11.x/12.x toolkit respectively but they can run on the latest, 
stable CUDA 11.0/CUDA 12.0 capable drivers (450.80 or later and 525.60 or later respectively).
However, using the most recent driver may enable additional functionality. 
More details can be found in enhanced CUDA compatibility guide.

Install via pip for CUDA 12.0:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda120==1.26.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda120==1.26.0

or for CUDA 11:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.26.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.26.0

Or use direct download links (CUDA 12.0):

Or use direct download links (CUDA 11.0):

FFmpeg source code:

  • This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Libsndfile source code:

DALI v1.25.0

24 Apr 12:27
Compare
Choose a tag to compare

Key Features and Enhancements

This DALI release includes the following key features and enhancements:

  • Added the experimental flexible image transport system (FITS) reader (fn.experimental.readers.fits) for the CPU backend (#4591).
  • Added the CPU backend for the histogram equalization operator (fn.experimental.equalize) (#4742).
  • Added the CPU backend for the 2-D convolution for images and video (fn.experimental.filter) (#4764).
  • Added support for feeding pipeline inputs as named arguments in Pipeline.run (#4712).
  • Improved the automatic augmentations and conditional execution in the following ways:
    • Support for CPU inputs in predefined automatic augmentations (#4772).
    • Reduced memory consumption (#4697).
    • Support for conditional execution in debug mode (#4738).
    • EfficientNet training example with DALI AutoAugment (#4678).
    • More predefined policies for AutoAugment (#4753).
    • Support for numerical types in the if predicate and not expression (#4715).
  • Operator improvements:
    • Improved the performance of CPU brightness and contrast operators for uint8 samples (#4737).
    • Improved the fn.readers.webdataset performance (#4708).
    • Support booleans in fn.readers.numpy (#4745).
    • Added support for booleans in the DALI iterator for PyTorch (#4757).

Fixed Issues

  • Fixed possible hangs on a pipeline build or teardown when using fn.experimental.decoder.image (#4727).
  • Fixed D2D copy synchronization that might result in fn.experimental.decoders.video returning incorrect frames for high-resolution videos (#4717).
  • Fixed buffer exhaustion in fn.experimental.decoder.image (#4723).
  • Fixed GPU unary arithmetic operators (for example, math.abs and math.floor) incorrectly processing non-scalar samples (#4746).
  • Fixed host JPEG decoder leaking memory on incorrect files (#4748).
  • Fixed missing source information in the numpy reader output (#4714).
  • Fixed error message in assertion in base_iterator.py (#4726).

Improvements

  • Expose Automatic Augmentation docs (#4760)
  • Rename sample to data in automatic augmentation APIs (#4774)
  • Support CPU samples in predefined automatic augmentations (#4772)
  • Make conditionals work in debug mode (#4738)
  • Improve PyPi DALI description (#4769)
  • Use lookup table for uint8 inputs in mul-add kernel (#4737)
  • Add more AutoAugment policies (#4753)
  • Add CPU filter operator (#4764)
  • Simplify AutoAugment graph (#4751)
  • Add links to DALI related GTC'23 talks (#4743)
  • Make python output unbuffered in tests (#4766)
  • Adjust docs config for newer Sphinx version (#4765)
  • Update DALI_DEPS sha version (#4763)
  • Move enable_conditionals option to regular @pipeline_def (#4747)
  • Adds bool type support to PyTorch DALI integration (#4757)
  • Update deps: pybind, FFmpeg, zstd (#4749)
  • Update TensorFlow version used in tests (#4739)
  • Stop building the DALI TF plugin for conda (#4741)
  • Enable bool support in the numpy reader operator (#4745)
  • Add CPU equalize operator (#4742)
  • Add experimental FITS reader for CPU backend (#4591)
  • Adjust RN50 TF performance test threshold (#4734)
  • Add timestamps to QA test output. (#4733)
  • Update nvJPEG2k to 0.7 version (#4728)
  • Add a requirement for CUDA toolkit for CUDA 12 builds (#4588)
  • DALI Pipeline inputs as named arguments to Pipeline.run() (#4712)
  • Update RN50 PyTorch test speed threshold (#4724)
  • Add links for DALI installations to docs (#4716)
  • Support numerical types in if predicate and not expression (#4715)
  • Reduce memory footprint of conditional execution (#4697)
  • Add EfficientNet example using automatic augmentations with DALI (#4678)
  • Change WDS index version representation to integer + refactor version utilties. (#4708)
  • Update OpenCV build recipe (#4693)
  • Update GTC 2022 sessions' links in the README (#4705)

Bug Fixes

  • Update CLANG version (#4768)
  • Fix the lack of proper error handling in selected tests (#4759)
  • Update fix assert error messages in base_iterator.py (#4726)
  • Fix bug in Arithmetic unary op implementation (#4746)
  • Fix memory leak in host JPEG decoder (#4748)
  • Fix missing source info in the numpy reader output (#4714)
  • Fix buffer exhaustion in the frames_decoder_gpu (#4723)
  • Fix nightly tests after merging RunArg (#4732)
  • Move the --pending and cv.notify_all() inside the critical section to prevent the notification from going unobserved. (#4727)
  • Pass the correct shape to auto augs in the EfficientNet example (#4721)
  • Fix pytorch-lightning example with Python3.6 (#4722)
  • Fix pytroch-lightning notebook example (#4719)
  • Fix D2D copy in the GPU frames decoder (#4717)

Breaking API changes

There are no breaking changes in this DALI release.

Deprecated features

No features were deprecated in this release.

Known issues:

  • The video loader operator requires that the key frames occur, at a minimum, every 10 to 15 frames of the video stream.
    If the key frames occur at a frequency that is less than 10-15 frames, the returned frames might be out of sync.
  • Experimental VideoReaderDecoder does not support open GOP.
    It will not report an error and might produce invalid frames. VideoReader uses a heuristic approach to detect open GOP and should work in most common cases.
  • The DALI TensorFlow plugin might not be compatible with TensorFlow versions 1.15.0 and later.
    To use DALI with the TensorFlow version that does not have a prebuilt plugin binary shipped with DALI, make sure that the compiler that is used to build TensorFlow exists on the system during the plugin installation. (Depending on the particular version, you can use GCC 4.8.4, GCC 4.8.5, or GCC 5.4.)
  • In experimental debug and eager modes, the GPU external source is not properly synchronized with DALI internal streams.
    As a workaround, you can manually synchronize the device before returning the data from the callback.
  • Due to some known issues with meltdown/spectra mitigations and DALI, DALI shows best performance when running in Docker with escalated privileges, for example:
    • privileged=yes in Extra Settings for AWS data points
    • --privileged or --security-opt seccomp=unconfined for bare Docker.

Binary builds

NOTE: DALI builds for CUDA 12 dynamically link the CUDA toolkit. To use DALI, install the latest CUDA toolkit.

CUDA 11.0 and CUDA 12.0 builds use CUDA toolkit enhanced compatibility. 
They are built with the latest CUDA 11.x/12.x toolkit respectively but they can run on the latest, 
stable CUDA 11.0/CUDA 12.0 capable drivers (450.80 or later and 525.60 or later respectively).
However, using the most recent driver may enable additional functionality. 
More details can be found in enhanced CUDA compatibility guide.

Install via pip for CUDA 12.0:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda120==1.25.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda120==1.25.0

or for CUDA 11:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.25.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.25.0

Or use direct download links (CUDA 12.0):

Or use direct download links (CUDA 11.0):

FFmpeg source code:

  • This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Libsndfile source code:

DALI v1.24.0

27 Mar 15:09
Compare
Choose a tag to compare

Key Features and Enhancements

This DALI release includes the following key features and enhancements:

  • Introduced an automatic augmentation module with AutoAugment, RandAugment, and TrivialAugment (#4694, #4699, #4696, #4702, #4704, #4706, #4710).
  • Added CUDA 12.1 support (#4684).
  • Added support for the and, or, and not boolean operators in pipelines (#4629, #4676).

Fixed Issues

  • Reduced memory consumption by video decoder (#4682).

Improvements

  • Update TF dataset API usage to align with 2.13rc (#4707)
  • Rename as_param to mag_to_param (#4710)
  • Add RandAugment and TrivialAugment to auto_aug module (#4704)
  • Add AutoAugment and ImageNet policy (#4702)
  • Fix The Canonical Link Relation in the sphinx documentation (#4703)
  • Rework DALI examples to use native PyTorch amp (#4683)
  • [AA] Add select operator util (#4696)
  • Add augmentations used by AA (#4699)
  • [AA] Add auto augmentation wrapper (#4694)
  • Add simple sanity test for DALI Conditionals in tf.function (#4689)
  • Add support for CUDA 12.1 (#4684)
  • Add CPU-only and variable batch tests for conditionals (#4668)
  • Make daliPipelineHandle a pointer to an opaque C++ structure. (#4599)
  • Enable JPEG fancy upsampling for mixed image decoder (#4662)
  • Release buffered libaviutil packets (#4682)
  • Overcome problem with testing TensorFlow with sanitizers (#4671)
  • New CropMirrorNormalize out of experimental module (#4644)
  • Do not install PaddlePaddle from the wheel in the L3 test (#4665)
  • Enable Python 3.10 tests in CI (#4598)
  • Use nvjpeg2k ROI API directly (#4654)
  • Add a long DALI description in DALI wheel (#4658)
  • Update the DALI roadmap link in the README to use the 2023 version (#4659)
  • Add lazy and and or, and not lazy not support (#4629)
  • Reduce the size of the generated doxygen docs (#4657)
  • Naive histogram custom operator example/template (#4615)

Bug Fixes

  • Do not use numpy.typing when not available (#4706)
  • Fix SkipTest usage for fancy upsampling tests (#4698)
  • Add missing constexpr to set_size in the tensorlayout (#4692)
  • Augment exception handling with ImportError (#4681)
  • Fix the logical expression tests to avoid short-cutting them (#4676)
  • Fix API type check tests for frameworks (#4670)

Breaking API changes

There are no breaking changes in this DALI release.

Deprecated features

No features were deprecated in this release.

Known issues:

  • The experimental.decoder.image may hang during a pipeline build or a teardown.
    The issue has been fixed in nightly builds and will be fixed in release 1.25.
  • The video loader operator requires that the key frames occur, at a minimum, every 10 to 15 frames of the video stream.
    If the key frames occur at a frequency that is less than 10-15 frames, the returned frames might be out of sync.
  • Experimental VideoReaderDecoder does not support open GOP.
    It will not report an error and might produce invalid frames. VideoReader uses a heuristic approach to detect open GOP and should work in most common cases.
  • The DALI TensorFlow plugin might not be compatible with TensorFlow versions 1.15.0 and later.
    To use DALI with the TensorFlow version that does not have a prebuilt plugin binary shipped with DALI, make sure that the compiler that is used to build TensorFlow exists on the system during the plugin installation. (Depending on the particular version, you can use GCC 4.8.4, GCC 4.8.5, or GCC 5.4.)
  • In experimental debug and eager modes, the GPU external source is not properly synchronized with DALI internal streams.
    As a workaround, you can manually synchronize the device before returning the data from the callback.
  • Due to some known issues with meltdown/spectra mitigations and DALI, DALI shows best performance when running in Docker with escalated privileges, for example:
    • privileged=yes in Extra Settings for AWS data points
    • --privileged or --security-opt seccomp=unconfined for bare Docker.

Binary builds

NOTE: DALI builds for CUDA 12 dynamically link the CUDA toolkit. To use DALI, install the latest CUDA toolkit.

CUDA 11.0 and CUDA 12.0 builds use CUDA toolkit enhanced compatibility. 
They are built with the latest CUDA 11.x/12.x toolkit respectively but they can run on the latest, 
stable CUDA 11.0/CUDA 12.0 capable drivers (450.80 or later and 525.60 or later respectively).
However, using the most recent driver may enable additional functionality. 
More details can be found in enhanced CUDA compatibility guide.

Install via pip for CUDA 12.0:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda120==1.24.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda120==1.24.0

or for CUDA 11:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.24.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.24.0

Or use direct download links (CUDA 12.0):

Or use direct download links (CUDA 11.0):

FFmpeg source code:

  • This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Libsndfile source code:

DALI v1.23.0

24 Feb 15:33
ee99d8f
Compare
Choose a tag to compare

Key Features and Enhancements

This DALI release includes the following key features and enhancements:

  • Enabled conditional execution: support for if/else statements with runtime predicates inside pipeline (#4561, #4618, #4602, #4589, #4617).
  • Added GPU experimental.inputs.video operator that supports decoding large videos from memorybuffer across multiple iterations (#4613, #4584, #4603, #4564).
  • Added support for lossless JPEG decoding on CPU and GPU with fn.experimental.decoders.image (#4625, #4600, #4587, #4572, #4592, #4548).
  • Added fn.experimental.tensor_resize operator (#4492).
  • Added fn.experimental.equalize operator (#4575, #4565).
  • Added API for pre-allocation and releasing of memory pools (#4563, #4556).

Fixed Issues

  • Fixed GPU fn.constant operator synchronization issue (#4643).
  • Fixed out-of-bounds access with trailing wildcard in fn.reshape (#4631).
  • Fixed insufficient alignment issues in GPU video decoding (#4622).

Improvements

  • Dependencies update (#4649)
  • Reduce L0 test time (#4645)
  • Extend input API utilities to support input operators (#4642)
  • Add slice_flip_normalize_* to the minimum build (used by imgcodec)
  • VideoInput<MixedBackend> (#4613)
  • Move slice_flip_kernel* to separate compilation units (#4637)
  • Bump nvCOMP to 2.6.1 (#4638)
  • Add fn.experimental.crop_mirror_normalize (#4562)
  • Simplify setup stage of Cast operator (#4633)
  • Move to CUDA 12.0U1 (#4632)
  • Fix the warning in the build with sanitizer (#4626)
  • Optimize CPU time of JPEG lossless decoder (#4625)
  • Support inferring batch size from tensor argument inputs (#4617)
  • reshape: restore the support for trailing wildcard in rel_shape (#4623)
  • Add DALI Conditionals documentation (#4589)
  • Enable nose2 test timer (#4610)
  • New SliceFlipNormalizeGPU kernel (#4356)
  • DataId mechanism for fn.inputs.video operator (#4584)
  • Add experimental.tensor_resize operator (#4492)
  • MixedBackend support for InputOperator (#4603)
  • Fix HasHwDecoder (#4601)
  • Track DataNodes produced by .gpu() in conditionals (#4602)
  • Update the math expression docs (#4568)
  • Clear operator traces before launching the operator (#4605)
  • Skip JPEG lossless tests for compute capability < SM60 (#4600)
  • Add experimental python 3.11 support (#4586)
  • Improve error message when trying to decode JPEG lossless images on the CPU backend (#4587)
  • Improve pipeline graph traversal (#4583)
  • Make .so files patched in one go when the wheel is produced (#4582)
  • Operator trace mechanism (#4564)
  • Add equalize operator (#4575)
  • Add equalize kernel (#4565)
  • Support for JPEG lossless images in GPU fn.experimental.decoders.image (#4572)
  • Add experimental support for if statements in DALI (#4561)
  • Add CodeQL workflow for GitHub code scanning (#4438)
  • Update nvCOMP to 2.6 (#4579)
  • Give the ability to link each part of CUDA toolkit statically (#4570)
  • Fix TL0_python-self-test-base-cuda for CUDA 12 (#4577)
  • Add functions to preallocate pools and release unused pool memory (#4563)
  • Disable strict_overflow warning. (#4567)
  • Remove unused define_graph argument from build pipeline method (#4555)
  • Add release_unused function to memory pools. (#4556)
  • Change CUDA C++ standard to C++17 (#4506)
  • Create axes_utils.h (#4548)

Bug Fixes

  • Fixing API utils (#4651)
  • constant operator: Set proper stream in constant storage. (#4643)
  • Coverity 2023.01-02 (#4641)
  • Allow 1-off discrepancies in the equalize op between GPU and CPU baseline (#4639)
  • Fix pipeline leak in InputOperatorMixedTest (#4630)
  • reshape: Prevent out-of-bounds access with trailing wildcard in rel_shape (#4631)
  • Fix @autoserialize problem with unknown module (#4628)
  • Fix classification of argument input-only operators in AutoGraph (#4618)
  • Fix stack op error message so that it reports dim of offending operand (#4616)
  • Make sure that ulMaxWidth is aligned to 32 bytes in the video decoder (#4622)
  • Fix sanitizer error: memory & pipeline leaks (#4619)
  • Fix rel_shape length validation in reshape (#4595)
  • Fix non-VMM pool release_unused. Don't rely on cudaGetMemInfo in preallocation tests. (#4596)
  • Fix errors reported by LASAN (#4594)
  • Add nvjpeg calls used for lossless jpeg decoding to the stub generator (#4592)
  • Fix passing WITH_DYNAMIC_* falgs to conda build (#4597)
  • Fix pool preallocation tests (#4585)
  • Fix imgcodec fallback and error handling (#4573)
  • Fix CUDA_TARGET_ARCHS handling in CMake 3.18+ (#4559)

Breaking API changes

There are no breaking changes in this DALI release.

Deprecated features

No features were deprecated in this release.

Known issues:

  • The video loader operator requires that the key frames occur, at a minimum, every 10 to 15 frames of the video stream.
    If the key frames occur at a frequency that is less than 10-15 frames, the returned frames might be out of sync.
  • Experimental VideoReaderDecoder does not support open GOP.
    It will not report an error and might produce invalid frames. VideoReader uses a heuristic approach to detect open GOP and should work in most common cases.
  • The DALI TensorFlow plugin might not be compatible with TensorFlow versions 1.15.0 and later.
    To use DALI with the TensorFlow version that does not have a prebuilt plugin binary shipped with DALI, make sure that the compiler that is used to build TensorFlow exists on the system during the plugin installation. (Depending on the particular version, you can use GCC 4.8.4, GCC 4.8.5, or GCC 5.4.)
  • In experimental debug and eager modes, the GPU external source is not properly synchronized with DALI internal streams.
    As a workaround, you can manually synchronize the device before returning the data from the callback.
  • Due to some known issues with meltdown/spectra mitigations and DALI, DALI shows best performance when running in Docker with escalated privileges, for example:
    • privileged=yes in Extra Settings for AWS data points
    • --privileged or --security-opt seccomp=unconfined for bare Docker.

Binary builds

NOTE: DALI builds for CUDA 12 dynamically link the CUDA toolkit. To use DALI, install the latest CUDA toolkit.

CUDA 11.0 and CUDA 12.0 builds use CUDA toolkit enhanced compatibility. 
They are built with the latest CUDA 11.x/12.x toolkit respectively but they can run on the latest, 
stable CUDA 11.0/CUDA 12.0 capable drivers (450.80 or later and 525.60 or later respectively).
However, using the most recent driver may enable additional functionality. 
More details can be found in enhanced CUDA compatibility guide.

Install via pip for CUDA 12.0:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda120==1.23.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda120==1.23.0

or for CUDA 11:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.23.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.23.0

Or use direct download links (CUDA 12.0):

Or use direct download links (CUDA 11.0):

FFmpeg source code:

  • This software uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Libsndfile source code: