From 5a772b177d2c8e28ec346758e57cc64eab5ec564 Mon Sep 17 00:00:00 2001 From: Yosshi999 Date: Thu, 30 Nov 2023 14:57:43 +0900 Subject: [PATCH] Bugfix: shape confusion in resizing (#2565) Co-authored-by: Justin Kerr Co-authored-by: Brent Yi --- nerfstudio/data/dataparsers/dycheck_dataparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nerfstudio/data/dataparsers/dycheck_dataparser.py b/nerfstudio/data/dataparsers/dycheck_dataparser.py index 50a581f28..d9d4c8f4c 100644 --- a/nerfstudio/data/dataparsers/dycheck_dataparser.py +++ b/nerfstudio/data/dataparsers/dycheck_dataparser.py @@ -322,7 +322,7 @@ class Dycheck(DataParser): for frame in frame_names: cv2.imwrite( str(self.data / f"rgb/{d}x/{frame}.png"), - cv2.resize(cv2.imread(str(self.data / f"rgb/1x/{frame}.png")), (h, w)), + cv2.resize(cv2.imread(str(self.data / f"rgb/1x/{frame}.png")), (w, h)), ) CONSOLE.print("finished")