Jittor / JNeRF

JNeRF is a NeRF benchmark based on Jittor. JNeRF re-implemented instant-ngp and achieved same performance with original paper.
Apache License 2.0
640 stars 74 forks source link

fix cudaErrorIllegalAddress #43

Open gdhy9064 opened 2 years ago

gdhy9064 commented 2 years ago

Use cfg.n_rays_per_batch instead of default n_rays_per_batch 4096 in JNeRF/python/jnerf/models/position_encoders/hash_encoder/grid_encode.py which may cause cudaErrorIllegalAddress below when cfg.n_rays_per_batch much greater than 4096.

code=700( cudaErrorIllegalAddress ) cudaMemcpy(a.ptr, var->mem_ptr, var->size, cudaMemcpyDeviceToHost)
Jittor commented 2 years ago

Thanks!