-
Notifications
You must be signed in to change notification settings - Fork 668
Expand file tree
/
Copy pathsetup.py.in
More file actions
100 lines (90 loc) · 4.09 KB
/
Copy pathsetup.py.in
File metadata and controls
100 lines (90 loc) · 4.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Copyright (c) 2017-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from setuptools import setup, find_namespace_packages
setup(name='nvidia-dali-cuda@CUDA_VERSION_SHORT_DIGIT_ONLY@',
description='NVIDIA DALI @DALI_FLAVOR@ for CUDA @CUDA_VERSION_SHORT@. Git SHA: @GIT_SHA@',
long_description='''NVIDIA DALI
===========
The NVIDIA Data Loading Library (DALI) is a library for data loading and
pre-processing to accelerate deep learning applications. It provides a
collection of highly optimized building blocks for loading and processing
image, video and audio data. It can be used as a portable drop-in replacement
for built in data loaders and data iterators in popular deep learning frameworks.
Deep learning applications require complex, multi-stage data processing pipelines
that include loading, decoding, cropping, resizing, and many other augmentations.
These data processing pipelines, which are currently executed on the CPU, have become a
bottleneck, limiting the performance and scalability of training and inference.
DALI addresses the problem of the CPU bottleneck by offloading data preprocessing to the
GPU. Additionally, DALI relies on its own execution engine, built to maximize the throughput
of the input pipeline. Features such as prefetching, parallel execution, and batch processing
are handled transparently for the user.
In addition, the deep learning frameworks have multiple data pre-processing implementations,
resulting in challenges such as portability of training and inference workflows, and code
maintainability. Data processing pipelines implemented using DALI are portable because they
can easily be retargeted to TensorFlow, PyTorch, MXNet and PaddlePaddle.
For more details please check the
`latest DALI Documentation <https://docs.nvidia.com/deeplearning/dali/user-guide/docs/index.html>`_.
.. image:: https://raw.githubusercontent.com/NVIDIA/DALI/main/dali.png
:width: 800
:align: center
:alt: DALI Diagram
''',
long_description_content_type="text/x-rst",
url='https://github.com/NVIDIA/dali',
version='@DALI_VERSION@',
author='NVIDIA Corporation',
license='Apache License 2.0',
packages=find_namespace_packages(
include=['nvidia.dali*'],
),
include_package_data=True,
zip_safe=False,
python_requires='>=3.9, <3.14',
classifiers=[
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
],
py_modules = [
'rec2idx',
'wds2idx'
],
scripts = [
'tfrecord2idx',
],
entry_points = {
'console_scripts': [
'rec2idx = rec2idx:main',
'wds2idx = wds2idx:main'
],
},
install_requires=[
# gast and astunparse are required for AutoGraph.
# Currently supported range of versions.
'astunparse >= 1.6.0, <= 1.6.3',
'gast >= 0.3.3, <= 0.6.0',
# the latest astunparse (1.6.3) doesn't work with any other six than
# 1.16 or later on python 3.12 due to import six.moves
'six >= 1.16, <= 1.17',
'dm-tree <= 0.1.8; python_version<"3.10"',
'dm-tree <= 0.1.9; python_version>="3.10"',
'packaging <= 25.0',
'nvtx',
'makefun',
@DALI_INSTALL_REQUIRES_NVIMGCODEC@
@DALI_INSTALL_REQUIRES_NVCOMP@
],
)