Key Features and Enhancements
This DALI release includes the following key features and enhancements:
- Improved
fn.experimental.decoders.video
video decoder: (#5830, #5814)- Improved seeking and reset behavior
- Added support for frame padding with configurable modes
- Added frame selection options
- Added
build_index
option to control the generation of a frame index
- Added CPU support to
dali.fn.experimental.warp_perspective
(#5829, #5815)- Thank you @5had3z for your contribution!
- Introduced new (experimental) C API (#5796, #5797, #5798, #5799)
Fixed Issues
- Introduced AvUniquePtr to avoid memory leaks in frames decoder (#5834)
- Removed an unnecessary host sync in operators taking pinned inputs. (#5822)
- Fixed host-side access to pinned CPU buffers produced with non-host order (#5820)
- Fixed handling of empty batches in GPU arithmetic operators. (#5818)
Improvements
- Fix data paths in TL3 short tests (#5845)
- Revert change of batch size in SSD LT3 to 64 due to convergence problem (#5846)
- Update VERSION to 1.48.0
- Fix coverity issues 25/03 (#5843)
- Bump up FFmpeg to 7.1.1 (#5838)
- Reorganize video decoder sources (#5836)
- Dependency update 2025-03 (#5833)
- C API 2.0 Tensor and TensorList (#5799)
- Update documentation of audio decoder operator (supported formats) (#5803)
- Removes RN50 benchmark tests, move to DALI_EXTRA for RN50 DL FW iter tests (#5824)
- Improve video decoder seeking and reset behavior (#5830)
- Warp Perspective CPU Impl (#5829)
- Remove ScratchpadAllocator and ScratchpadEstimator (#5810)
- Code modernization and refactoring in Pipeline, OpSpec and InputOperator (#5826)
fn.experimental.decoders.video
improvements (#5814)- C API 2.0 helpers (#5798)
- C API 2.0 initialization and error handling (#5797)
- Limit the max. tensor list size in TensorTest (#5823)
- Relax DisplacementTest.Sphere constraints from 0.005 to 0.006 (#5821)
- Restrict dm-tree version for Python 3.8 and 3.9 (#5819)
- Add C API header and C language build test. (#5796)
- Expose DLPack support in the docs (#5817)
Bug Fixes
- Fix usage of unique_ptr for arrays in data_objects_test (#5837)
- Introduce AvUniquePtr to avoid memory leaks in frames decoder (#5834)
- tensor_shape.h warning fix (#5831)
- Enhanced Video Codec Support and Error Handling (#5825)
- Fix documentation for warp_perspective, requires 3x3 shape, not flattened 1D (#5815)
- Remove an unwanted potential host sync in operators taking pinned inputs. (#5822)
- Fix host-side access to pinned CPU buffers produced with non-host order (#5820)
- Fix handling of empty batches in GPU arithmetic operators. (#5818)
Breaking API changes
There are no breaking changes in this DALI release.
Deprecated features
No features were deprecated in this release.
Known issues:
- The following operators:
experimental.readers.fits
,experimental.decoders.video
, andexperimental.inputs.video
do not currently support checkpointing. - 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.48.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda120==1.48.0
or just:
pip install nvidia-dali-cuda120==1.48.0
pip install nvidia-dali-tf-plugin-cuda120==1.48.0
For CUDA 11:
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-cuda110==1.48.0
pip install --extra-index-url https://developer.download.nvidia.com/compute/redist/ nvidia-dali-tf-plugin-cuda110==1.48.0
or just:
pip install nvidia-dali-cuda110==1.48.0
pip install nvidia-dali-tf-plugin-cuda110==1.48.0
Or use direct download links (CUDA 12.0):
- https://developer.download.nvidia.com/compute/redist/nvidia-dali-cuda120/nvidia_dali_cuda120-1.48.0-py3-none-manylinux2014_x86_64.whl
- https://developer.download.nvidia.com/compute/redist/nvidia-dali-cuda120/nvidia_dali_cuda120-1.48.0-py3-none-manylinux2014_aarch64.whl
- https://developer.download.nvidia.com/compute/redist/nvidia-dali-tf-plugin-cuda120/nvidia_dali_tf_plugin_cuda120-1.48.0.tar.gz
Or use direct download links (CUDA 11.0):
- https://developer.download.nvidia.com/compute/redist/nvidia-dali-cuda110/nvidia_dali_cuda110-1.48.0-py3-none-manylinux2014_x86_64.whl
- https://developer.download.nvidia.com/compute/redist/nvidia-dali-cuda110/nvidia_dali_cuda110-1.48.0-py3-none-manylinux2014_aarch64.whl
- https://developer.download.nvidia.com/compute/redist/nvidia-dali-tf-plugin-cuda110/nvidia_dali_tf_plugin_cuda110-1.48.0.tar.gz
FFmpeg source code:
Libsndfile source code: