From 08761ab8592a144781c91ee1a263d0a818ab5da2 Mon Sep 17 00:00:00 2001 From: Ruilong Li Date: Sat, 17 Sep 2022 22:47:15 +0000 Subject: [PATCH] example with vanilla nerf --- README.md | 14 +++++++----- examples/datasets/nerf_synthetic.py | 1 + examples/trainval.py | 35 +++++++++++++++++++++++++---- nerfacc/volumetric_rendering.py | 1 - 4 files changed, 40 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index b97daf23..c8f166ef 100644 --- a/README.md +++ b/README.md @@ -31,17 +31,19 @@ python examples/trainval.py vanilla --train_split train Performance on test set: -| | Lego | -| - | - | -| Paper PSNR (train set) | 32.54 | -| Our PSNR (train set) | 33.21 | -| Our PSNR (trainval set) | 33.66 | -| Our train time & test FPS | 45min; 0.43FPS | +| | Lego | Mic | Materials | Chair | Hotdog | +| - | - | - | - | - | - | +| Paper PSNR (train set) | 32.54 | 32.91 | 29.62 | 33.00 | 36.18 | +| Our PSNR (train set) | 33.21 | 33.36 | 29.48 | 32.79 | 35.54 | +| Our PSNR (trainval set) | 33.66 | - | - | - | - | - | +| Our train time & test FPS | 45min; 0.43FPS | 44min; 1FPS | 37min; 0.33FPS* | 44min; 0.57FPS* | 50min; 0.15 FPS* | For reference, vanilla NeRF paper trains on V100 GPU for 1-2 days per scene. Test time rendering takes about 30 secs to render a 800x800 image. Our model is trained on a TITAN X. Note: We only use a single MLP with more samples (1024), instead of two MLPs with coarse-to-fine sampling as in the paper. Both ways share the same spirit to do dense sampling around the surface. Our fast rendering inheritly skip samples away from the surface so we can simplly increase the number of samples with a single MLP, to achieve the same goal with coarse-to-fine sampling, without runtime or memory issue. +*FPS for some scenes are tested under `--test_chunk_size=8192` (default is `81920`) to avoid OOM. +