ashawkey / nerf2mesh

[ICCV2023] Delicate Textured Mesh Recovery from NeRF via Adaptive Surface Refinement
https://me.kiui.moe/nerf2mesh/
MIT License
907 stars 88 forks source link

RuntimeError: width and height must be divisible by 8 #93

Open op10ds opened 1 year ago

op10ds commented 1 year ago

I am trying to create a mesh from the /bonsai dataset (but i also tried the /garden dataset and the result was the same, both included in the Mip-NeRF 360 ). I am using WSL2, to be precise. The process proceeds correctly until the creation of the mesh. Here i get the following error:

out, out_db = _get_plugin().rasterize_fwd_cuda(raster_ctx.cpp_wrapper, pos, tri, resolution, ranges, peeling_idx) RuntimeError: width and height must be divisible by 8

The command i executed was: python main.py data/bonsai --workspace trial_bonsai -O --data_format colmap --bound 1 --downscale 4 --dt_gamma 0 --stage 0 --clean_min_f 16 --clean_min_d 10 --visibility_mask_dilation 50 --iters 15000 --decimate_target 1e5 --sdf --texture_size 2048 --ssaa 1 --n_eval 1

Do you have any hints?

aiyb1314 commented 10 months ago

Same problem. Could you tell me how to solve?

freshlu11 commented 10 months ago

Same problem, adjust --downscale to make W and H can be divisible by 8, this works for me.