Commit dc73eff4 authored by Ruilong Li's avatar Ruilong Li
Browse files

update readme performance

parent 0c7b5320
......@@ -10,11 +10,11 @@ python examples/trainval.py
## Performance Reference
| trainval (35k, 1<<16) | Lego | Mic | Materials |
| - | - | - | - |
| Time | 378s | 357s | 360s |
| PSNR | 36.22 | 36.55 | 29.59 |
| FPS | 12.08 | 25.54 | 9.65 |
| trainval (20k, 1<<18) | Lego | Mic | Materials |
| - | - | - | - | - |
| Time | 300s | 272s | 258s |
| PSNR | 36.28 | 36.16 | 29.76 |
| FPS | 11.49 | 21.48 | 8.86 |
Tested with the default settings on the Lego test set.
......
......@@ -71,7 +71,7 @@ if __name__ == "__main__":
train_dataset = SubjectLoader(
subject_id=scene,
root_fp="/home/ruilongli/data/nerf_synthetic/",
split="train",
split="trainval",
num_rays=1024,
# color_bkgd_aug="random",
)
......@@ -120,9 +120,9 @@ if __name__ == "__main__":
optimizer = torch.optim.Adam(
radiance_field.parameters(),
lr=1e-2,
betas=(0.9, 0.99),
# betas=(0.9, 0.99),
eps=1e-15,
weight_decay=1e-6,
# weight_decay=1e-6,
)
scheduler = torch.optim.lr_scheduler.MultiStepLR(
optimizer, milestones=[10000, 15000, 18000], gamma=0.33
......@@ -201,7 +201,7 @@ if __name__ == "__main__":
)
# if time.time() - tic > 300:
if step >= 5_000 and step % 5000 == 0 and step > 0:
if step >= 20_000 and step % 5000 == 0 and step > 0:
# evaluation
radiance_field.eval()
......@@ -247,7 +247,6 @@ if __name__ == "__main__":
"acc_binary_train.png",
((acc > 0).float().cpu().numpy() * 255).astype(np.uint8),
)
print("acc", acc[acc > 0].min())
imageio.imwrite(
"rgb_train.png",
(rgb.cpu().numpy() * 255).astype(np.uint8),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment