yenchenlin / nerf-pytorch

A PyTorch implementation of NeRF (Neural Radiance Fields) that reproduces the results.
MIT License
5.49k stars 1.06k forks source link

fix the bug about the image dimension #20

Closed WeiChengTseng closed 3 years ago

WeiChengTseng commented 3 years ago

In the load_blender.py, the target image dimension in cv2.resize should be represented as (W, H). Here is the reference for cv2.resize. https://www.tutorialkart.com/opencv/python/opencv-python-resize-image/

This bug is relatively minor since the images from the official NeRF paper are all square. However, if we use the data collected on our own, it will cause a size mismatch error.

yenchenlin commented 3 years ago

Thank you!