From 9490ef76125c3fbfee362039b816702f3241735d Mon Sep 17 00:00:00 2001 From: JonathonLuiten Date: Mon, 10 Jul 2023 18:45:55 -0400 Subject: [PATCH 1/4] fixed tensorboard update images by adding batch dimension (#9) --- train.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/train.py b/train.py index 6192c8b..f919db2 100644 --- a/train.py +++ b/train.py @@ -162,9 +162,9 @@ def training_report(tb_writer, iteration, Ll1, loss, l1_loss, elapsed, testing_i images = torch.cat((images, image.unsqueeze(0)), dim=0) gts = torch.cat((gts, gt_image.unsqueeze(0)), dim=0) if tb_writer and (idx < 5): - tb_writer.add_images(config['name'] + "_view_{}/render".format(viewpoint.image_name), image, global_step=iteration) + tb_writer.add_images(config['name'] + "_view_{}/render".format(viewpoint.image_name), image[None], global_step=iteration) if iteration == testing_iterations[0]: - tb_writer.add_images(config['name'] + "_view_{}/ground_truth".format(viewpoint.image_name), gt_image, global_step=iteration) + tb_writer.add_images(config['name'] + "_view_{}/ground_truth".format(viewpoint.image_name), gt_image[None], global_step=iteration) l1_test = l1_loss(images, gts) psnr_test = psnr(images, gts).mean() @@ -204,4 +204,4 @@ if __name__ == "__main__": training(lp.extract(args), op.extract(args), pp.extract(args), args.test_iterations, args.save_iterations) # All done - print("\nTraining complete.") \ No newline at end of file + print("\nTraining complete.") From f4dfb3d3bf9931aae5ff47e096320468cc71104e Mon Sep 17 00:00:00 2001 From: Pythonix Huang <370048201@qq.com> Date: Tue, 11 Jul 2023 17:15:52 +0800 Subject: [PATCH 2/4] Fix spelling error (posititon to position as README said) --- arguments/__init__.py | 2 +- scene/gaussian_model.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arguments/__init__.py b/arguments/__init__.py index 582acf3..4ab86f4 100644 --- a/arguments/__init__.py +++ b/arguments/__init__.py @@ -72,7 +72,7 @@ class OptimizationParams(ParamGroup): self.position_lr_init = 0.00016 self.position_lr_final = 0.0000016 self.position_lr_delay_mult = 0.01 - self.posititon_lr_max_steps = 30_000 + self.position_lr_max_steps = 30_000 self.feature_lr = 0.0025 self.opacity_lr = 0.05 self.scaling_lr = 0.001 diff --git a/scene/gaussian_model.py b/scene/gaussian_model.py index 8cea495..20a81d4 100644 --- a/scene/gaussian_model.py +++ b/scene/gaussian_model.py @@ -126,7 +126,7 @@ class GaussianModel: self.xyz_scheduler_args = get_expon_lr_func(lr_init=training_args.position_lr_init*self.spatial_lr_scale, lr_final=training_args.position_lr_final*self.spatial_lr_scale, lr_delay_mult=training_args.position_lr_delay_mult, - max_steps=training_args.posititon_lr_max_steps) + max_steps=training_args.position_lr_max_steps) def update_learning_rate(self, iteration): ''' Learning rate scheduling per step ''' From 3855ce81b15631e6ec77193b8c2797d57883d69d Mon Sep 17 00:00:00 2001 From: bkerbl Date: Tue, 11 Jul 2023 19:35:24 +0200 Subject: [PATCH 3/4] Instructions for Focal Fossa --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 88a4f48..4632d35 100644 --- a/README.md +++ b/README.md @@ -289,7 +289,7 @@ cmake --build build --target install --config RelWithDebInfo ``` You may specify a different configuration, e.g. ```Debug``` if you need more control during development. -#### Ubuntu +#### Ubuntu 22.04 You will need to install a few dependencies before running the project setup. ```shell # Dependencies @@ -300,6 +300,14 @@ cmake -Bbuild . cmake --build build --target install ``` +#### Ubuntu 20.04 +Backwards compatibility with Focal Fossa is not fully tested, but building SIBR should still work by first invoking +```shell +git checkout fossa_compatibility +git submodule update --init +``` +and then continuing with the steps for Ubuntu 22.04. + ### Navigation in SIBR Viewers The SIBR interface provides several methods of navigating the scene. By default, you will be started with an FPS navigator, which you can control with ```W, A, S, D, Q, E``` for camera translation and ```I, K, J, L, U, O``` for rotation. Alternatively, you may want to use a Trackball-style navigator (select from the floating menu). You can also snap to a camera from the data set with the ```Snap to``` button or find the closest camera with ```Snap to closest```. The floating menues also allow you to change the navigation speed. You can use the ```Scaling Modifier``` to control the size of the displayed Gaussians, or show the initial point cloud. From d0378eca90424f03c786541247c81f3f01bc0b2f Mon Sep 17 00:00:00 2001 From: bkerbl Date: Tue, 11 Jul 2023 20:05:11 +0200 Subject: [PATCH 4/4] Mention 11.6 trouble --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4632d35..b500b4a 100644 --- a/README.md +++ b/README.md @@ -71,8 +71,8 @@ The optimizer uses PyTorch and CUDA extensions in a Python environment to produc ### Software Requirements - Conda (recommended for easy setup) -- C++ Compiler for PyTorch extensions (we *recommend* Visual Studio 2019 for Windows) -- CUDA 11 SDK for PyTorch extensions (we used 11.8) +- C++ Compiler for PyTorch extensions (we used Visual Studio 2019 for Windows) +- CUDA SDK 11.7+ for PyTorch extensions (we used 11.8, known issues with 11.6) - C++ Compiler and CUDA SDK must be compatible ### Setup @@ -269,8 +269,8 @@ We provide two interactive iewers for our method: remote and real-time. Our view - CUDA-ready GPU with Compute Capability 7.0+ (only for Real-Time Viewer) ### Software Requirements -- C++ Compiler (we *recommend* Visual Studio 2019 for Windows) -- CUDA 11 Developer SDK (we used 11.8) +- C++ Compiler (we used Visual Studio 2019 for Windows) +- CUDA SDK 11 (we used 11.8) - CMake (recent version, we used 3.24) - 7zip (only on Windows)