From a625f4c326fe691ac8e342f42f8f4fddb0cf7f47 Mon Sep 17 00:00:00 2001 From: Isabelle Bouchard Date: Tue, 19 Mar 2024 16:53:02 -0400 Subject: [PATCH] move lpips in metrics --- .../{lpipsPyTorch => metrics/lpipPyTorch}/__init__.py | 0 .../{lpipsPyTorch => metrics/lpipPyTorch}/modules/lpips.py | 0 .../{lpipsPyTorch => metrics/lpipPyTorch}/modules/networks.py | 0 .../{lpipsPyTorch => metrics/lpipPyTorch}/modules/utils.py | 0 scripts/metrics.py | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-) rename gaussian_splatting/{lpipsPyTorch => metrics/lpipPyTorch}/__init__.py (100%) rename gaussian_splatting/{lpipsPyTorch => metrics/lpipPyTorch}/modules/lpips.py (100%) rename gaussian_splatting/{lpipsPyTorch => metrics/lpipPyTorch}/modules/networks.py (100%) rename gaussian_splatting/{lpipsPyTorch => metrics/lpipPyTorch}/modules/utils.py (100%) diff --git a/gaussian_splatting/lpipsPyTorch/__init__.py b/gaussian_splatting/metrics/lpipPyTorch/__init__.py similarity index 100% rename from gaussian_splatting/lpipsPyTorch/__init__.py rename to gaussian_splatting/metrics/lpipPyTorch/__init__.py diff --git a/gaussian_splatting/lpipsPyTorch/modules/lpips.py b/gaussian_splatting/metrics/lpipPyTorch/modules/lpips.py similarity index 100% rename from gaussian_splatting/lpipsPyTorch/modules/lpips.py rename to gaussian_splatting/metrics/lpipPyTorch/modules/lpips.py diff --git a/gaussian_splatting/lpipsPyTorch/modules/networks.py b/gaussian_splatting/metrics/lpipPyTorch/modules/networks.py similarity index 100% rename from gaussian_splatting/lpipsPyTorch/modules/networks.py rename to gaussian_splatting/metrics/lpipPyTorch/modules/networks.py diff --git a/gaussian_splatting/lpipsPyTorch/modules/utils.py b/gaussian_splatting/metrics/lpipPyTorch/modules/utils.py similarity index 100% rename from gaussian_splatting/lpipsPyTorch/modules/utils.py rename to gaussian_splatting/metrics/lpipPyTorch/modules/utils.py diff --git a/scripts/metrics.py b/scripts/metrics.py index e6fd54292..901c3d193 100644 --- a/scripts/metrics.py +++ b/scripts/metrics.py @@ -19,7 +19,7 @@ from PIL import Image from tqdm import tqdm -from gaussian_splatting.lpipsPyTorch import lpips +from gaussian_splatting.metrics.lpipsPyTorch import lpips from gaussian_splatting.utils.image import psnr from gaussian_splatting.utils.loss import ssim