diff --git a/.gitignore b/.gitignore index be8a80c..e96fb55 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ *.npz *.dae data/* -logs/* \ No newline at end of file +logs/* +.vscode/ \ No newline at end of file diff --git a/load_blender.py b/load_blender.py index 1caa8e5..7b3654e 100644 --- a/load_blender.py +++ b/load_blender.py @@ -81,7 +81,11 @@ def load_blender_data(basedir, half_res=False, testskip=1): imgs_half_res = np.zeros((imgs.shape[0], H, W, 4)) for i, img in enumerate(imgs): - imgs_half_res[i] = cv2.resize(img, (H, W), interpolation=cv2.INTER_AREA) + # According to the api defined in the link below, the dimension + # should be represented as (W, H). + # https://www.tutorialkart.com/opencv/python/opencv-python-resize-image/ + imgs_half_res[i] = cv2.resize(img, (W, H), interpolation=cv2.INTER_AREA) + # imgs_half_res[i] = cv2.resize(img, (H, W), interpolation=cv2.INTER_AREA) imgs = imgs_half_res # imgs = tf.image.resize_area(imgs, [400, 400]).numpy()