mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-20 14:45:38 +08:00
Merge branch 'master' of github.com:ethanweber/mattport
This commit is contained in:
commit
1f719b49c0
75 files changed
+22314
-8752
No files matched your search
@@ -56,7 +56,7 @@ def main():
|
||||
trainer = Trainer(config, local_rank=0, world_size=1)
|
||||
trainer.setup(test_mode=True)
|
||||
avg_psnr = 0
|
||||
for step, image_idx in enumerate(config.data.validation_image_indices):
|
||||
for step, image_idx in enumerate(config.data.val_image_indices):
|
||||
with torch.no_grad():
|
||||
psnr = trainer.test_image(image_idx=image_idx, step=step)
|
||||
avg_psnr = (step * avg_psnr + psnr) / (step + 1)
|
||||
|
||||
Reference in new issue
Block a user