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
* remove poetry and simplify docker file
* run docker on self hosted for GPU tests
* ensure scikit build
* updating README
* fix: missing scikit-build
* adding trt requirement for local tests
* revert pyproject.toml to support skbuild automatically again
* remove docker from makefile
* good luck
* einer geht noch
* remove requirements.txt deps
* solving how to install torch as buidl req
* add some magic
* update setuptools
* upgrade pip
* update readme
Copy file name to clipboardexpand all lines: README.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
VPF stands for Video Processing Framework. It’s set of C++ libraries and Python bindings which provides full HW acceleration for video processing tasks such as decoding, encoding, transcoding and GPU-accelerated color space and pixel format conversions.
4
4
5
-
VPF also supports exporting GPU memory objects such as decoded video frames to PyTorch tensors without Host to Device copies. Check the [Wiki page](https://github.com/NVIDIA/VideoProcessingFramework/wiki/Building-from-source) on how to build from source.
5
+
VPF also supports exporting GPU memory objects such as decoded video frames to PyTorch tensors without Host to Device copies.
6
6
7
7
## Prerequisites
8
8
VPF works on Linux(Ubuntu 20.04 and Ubuntu 22.04 only) and Windows
@@ -61,8 +61,8 @@ please make sure to enable the `video` driver capability: https://docs.nvidia.co
61
61
the `NVIDIA_DRIVER_CAPABILITIES` environment variable in the container or the `--gpus` command line parameter (e.g.
62
62
`docker run -it --rm --gpus 'all,"capabilities=compute,utility,video"' nvidia/cuda:12.1.0-base-ubuntu22.04`).
63
63
64
-
Please note that some examples have additional dependencies https://github.com/NVIDIA/VideoProcessingFramework/blob/73a14683a17c8f1c7fa6dd73952f8813bd34a11f/setup.py#L26-L31
65
-
that need to be installed via pip. Samples using PyTorch will require an optional extension which can be installed via
64
+
Please note that some examples have additional dependencies that need to be installed via pip (`pip install .[samples]`).
65
+
Samples using PyTorch will require an optional extension which can be installed via
66
66
```bash
67
67
pip install src/PytorchNvCodec # install Torch extension if needed (optional), requires "torch" to be installed before
68
68
```
@@ -78,15 +78,14 @@ After resolving those you should be able to run `make run_samples_without_docker
78
78
```pwsh
79
79
# Indicate path to your FFMPEG installation (with subfolders `bin` with DLLs, `include`, `lib`)
To check whether VPF is correctly installed run the following Python script
85
84
```python
86
85
import PyNvCodec
87
86
```
88
-
Please note that some examples have additional dependencies https://github.com/NVIDIA/VideoProcessingFramework/blob/73a14683a17c8f1c7fa6dd73952f8813bd34a11f/setup.py#L26-L31
89
-
that need to be installed via pip. Samples using PyTorch will require an optional extension which can be installed via
87
+
Please note that some examples have additional dependencies (`pip install .[sampels]`) that need to be installed via pip.
88
+
Samples using PyTorch will require an optional extension which can be installed via
90
89
91
90
```bash
92
91
pip install src/PytorchNvCodec # install Torch extension if needed (optional), requires "torch" to be installed before
@@ -101,14 +100,15 @@ are required)
101
100
102
101
```bash
103
102
DOCKER_BUILDKIT=1 docker build \
104
-
--tag vpf-gpu-all \
105
-
-f docker/Dockerfile.gpu \
106
-
--build-arg GEN_PYTORCH_EXT=1 \
107
-
--build-arg GEN_OPENGL_EXT=1 \
103
+
--tag vpf-gpu \
104
+
-f docker/Dockerfile \
105
+
--build-arg PIP_INSTALL_EXTRAS=torch \
108
106
.
109
-
docker run -it --rm --gpus=all vpf-gpu-all
107
+
docker run -it --rm --gpus=all vpf-gpu
110
108
```
111
109
110
+
`PIP_INSTALL_EXTRAS` can be any subset listed under `project.optional-dependencies` in [pyproject.toml](pyproject.toml).
111
+
112
112
## Documentation
113
113
114
114
A documentation for Video Processing Framework can be generated from this repository:
0 commit comments