mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
added test set (using training data for now)
This commit is contained in:
1 parent
7e5a5bf524
commit
cf7034f0d1
10 files changed
+112
-57
No files matched your search
@@ -0,0 +1,13 @@
|
||||
"""
|
||||
Collection of metrics.
|
||||
"""
|
||||
|
||||
import torch
|
||||
|
||||
|
||||
def get_psnr(image_gt, image_pred):
|
||||
"""
|
||||
Returns the psnr for an image. TODO: add masking
|
||||
"""
|
||||
mean = torch.mean((image_gt - image_pred) ** 2)
|
||||
return -10 * torch.log10(mean)
|
||||
Reference in new issue
Block a user