albertpumarola / D-NeRF

MIT License
523 stars 67 forks source link

about argument "z_vals" in "batchify_rays" function #11

Open 2j1ejyu opened 2 years ago

2j1ejyu commented 2 years ago

In function "batchify_rays" from the code, you put 'z_vals' in "render_rays" with shape (N_rays, ~) while the chunked 'ray_batch' has the shape of (chunk, ~). Therefore, an error occurs with the issue of size mismatch at the line "pts = rays_o[...,None,:] + rays_d[...,None,:] * z_vals[...,:,None]" in 'render_rays'