You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[video processor] support torchcodec and decrease cuda memory usage (#38880)
* don't move the whole video to GPU
* add torchcodec
* add tests
* make style
* instrucblip as well
* consistency
* Update src/transformers/utils/import_utils.py
Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com>
* Update src/transformers/utils/import_utils.py
Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com>
* Update src/transformers/video_utils.py
Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com>
---------
Co-authored-by: Pavel Iakubovskii <qubvel@gmail.com>
Please note that you may need to restart your runtime after installation.
1503
1508
"""
1504
1509
1510
+
TORCHCODEC_IMPORT_ERROR="""
1511
+
{0} requires the TorchCodec (https://github.com/pytorch/torchcodec) library, but it was not found in your environment. You can install it with:
1512
+
```
1513
+
pip install torchcodec
1514
+
```
1515
+
Please note that you may need to restart your runtime after installation.
1516
+
"""
1517
+
1505
1518
# docstyle-ignore
1506
1519
CV2_IMPORT_ERROR="""
1507
1520
{0} requires the OpenCV library but it was not found in your environment. You can install it with:
0 commit comments