Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe this is a potential bug. #7

Closed
bruinxiong opened this issue Aug 24, 2021 · 1 comment
Closed

Maybe this is a potential bug. #7

bruinxiong opened this issue Aug 24, 2021 · 1 comment

Comments

@bruinxiong
Copy link

bruinxiong commented Aug 24, 2021

In line 50-52 of nerfactor/nerfactor/util/vis.py,
#############################
img = xm.io.img.load(path)
img = img[:, :, :3] # discards alpha
hw = img.shape[:2]
#############################
The pred_lvis.png has no third channel similar to grey image.
So, it should be changed to this as follows:
#############################
Img = xm.io.img.load(path
if len(img.shape) == 2:
stacked_img = np.stack((img,)*3, axis=-1)
img = stacked_img
img = img[:, :, :3] # discards alpha
hw = img.shape[:2]
#############################

xiumingzhang pushed a commit that referenced this issue Aug 31, 2021
@xiumingzhang
Copy link
Collaborator

xiumingzhang commented Aug 31, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants