From 299181130d63893e75c9c1ee4a9d41bb8823a861 Mon Sep 17 00:00:00 2001 From: Anton Sychev Date: Thu, 24 Jul 2025 15:01:10 +0200 Subject: [PATCH] added: part for cuda_render compilation bugfix: compilation error related with uint8 --- README.md | 12 ++++++++++++ cuda_renderer/mpi_cuda.cu | 1 + 2 files changed, 13 insertions(+) diff --git a/README.md b/README.md index 9b49a2c..7b3b885 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,18 @@ See `llff/math/pose_math.py` for the code that generates these path trajectories #### Render video with CUDA You can build this in the `cuda_renderer/` directory by calling `make`. +In order to use make, you must install the following dependencies: + +``` +sudo apt install nvidia-cuda-toolkit +sudo apt-get install build-essential +sudo apt-get install g++ +sudo apt-get install make +sudo apt-get install libeigen3-dev +sudo apt-get install libglew-dev +sudo apt install openmpi-bin libopenmpi-dev +``` + Uses CUDA to render out a video. Specify the height of the output video in pixels (-1 for same resolution as the MPIs), the factor for cropping the edges of the video (default is 1.0 for no cropping), and the compression quality (crf) for the saved MP4 file (default is 18, lossless is 0, reasonable is 12-28). ``` ./cuda_renderer mpidir height crop crf diff --git a/cuda_renderer/mpi_cuda.cu b/cuda_renderer/mpi_cuda.cu index d6514d1..1b89fa1 100644 --- a/cuda_renderer/mpi_cuda.cu +++ b/cuda_renderer/mpi_cuda.cu @@ -1,3 +1,4 @@ +#include #include "mpi_cuda.h"