simple-dlss-demo
A simple demo with two input color and depth arrays and output a super-resolution array
Requirements
- An NVIDIA GPU; tensor cores increase performance when available.
- A C++14 capable compiler. The following choices are recommended and have been tested:
- Windows: Visual Studio 2019
- Linux: GCC/G++ 7.5 or higher
- Vulkan SDK for DLSS support. (for ubuntu, just run
apt install vulkan-tools
) - CUDA Driver higher than 520.x.x
Compilation (Windows & Linux)
Begin by cloning this repository and all its submodules using the following command:
$ git clone --recursive https://github.com/cnmozzie/simple-dlss-demo
$ cd simple-dlss-demo
Then, use CMake to build the project: (on Windows, this must be in a developer command prompt)
simple-dlss-demo$ cmake . -B build
simple-dlss-demo$ cmake --build build --config RelWithDebInfo -j
If the build succeeds, you can now run the code via the build/testbed_dlss
executable.
Check the output with python
>>> import numpy as np
>>> import matplotlib.pyplot as plt
>>> x=np.load('out.npy')
>>> plt.imshow(x)
<matplotlib.image.AxesImage object at 0x00000193CA1FF7C0>
>>> plt.show()