FlexiCubes icon indicating copy to clipboard operation
FlexiCubes copied to clipboard

issues during implementation

Open MHassan1122 opened this issue 1 year ago • 3 comments

Hi dear @frankshen07 hope you will be in good health. i tried my best to employ this amazing project but stuck in one step as you can see the following error (flexicube) C:\Users\admin\FlexiCubes\examples>python optimize.py --ref_mesh data/inputmodels/block.obj --out_dir out/block Traceback (most recent call last): File "C:\Users\admin\FlexiCubes\examples\optimize.py", line 88, in mv, mvp = render.get_random_camera_batch(FLAGS.batch, iter_res=FLAGS.train_res, device=device) ValueError: too many values to unpack (expected 2)

i tried with different version of kaolin=0.13.0 but not a able to tacke this issue. I use window 10 with RTXGEFORCE. another question is that can we use this for single view reconstruction purpose. Is it possible or not.

MHassan1122 avatar Jan 26 '24 13:01 MHassan1122

Apologies for the issues caused by the Kaolin merge. I've added back the previous functions we used to produce the paper's results, which do not depend on Kaolin. The error should be resolved now with the latest commit.

Re. single-view reconstruction, our code only supports multi-view reconstruction.

frankshen07 avatar Jan 30 '24 16:01 frankshen07

@frankshen07 Thanks for your response. as you mentioned that there is no depend on Koalin. i used the optimization.ipynb for implementation, when I run cell 6, errors are occured which is related to nvdiffrast as you can know that you import nvdiffrast in render.py like import nvdiffrast.torch as dr Here is the attached file for your evaluation. cuda error

MHassan1122 avatar Feb 01 '24 09:02 MHassan1122

I also tried to run in prompt according to given instruction but same error as arise in the optimization.ipynb

(flexicube) C:\Users\admin\FlexiCubes\examples>python optimize.py --ref_mesh data/inputmodels/block.obj --out_dir out/block Traceback (most recent call last): File "C:\Users\admin\FlexiCubes\examples\optimize.py", line 90, in target = render.render_mesh_paper(gt_mesh, mv, mvp, FLAGS.train_res) File "C:\Users\admin\FlexiCubes\examples\render.py", line 124, in render_mesh_paper rast, db = dr.rasterize( File "C:\Users\admin\anaconda3\envs\flexicube\lib\site-packages\nvdiffrast\torch\ops.py", line 310, in rasterize return _rasterize_func.apply(glctx, pos, tri, resolution, ranges, grad_db, -1) File "C:\Users\admin\anaconda3\envs\flexicube\lib\site-packages\nvdiffrast\torch\ops.py", line 246, in forward out, out_db = _get_plugin(gl=True).rasterize_fwd_gl(raster_ctx.cpp_wrapper, pos, tri, resolution, ranges, peeling_idx) RuntimeError: Cuda error: 304[cudaGraphicsGLRegisterBuffer(&s.cudaPosBuffer, s.glPosBuffer, cudaGraphicsRegisterFlagsWriteDiscard);]

MHassan1122 avatar Feb 01 '24 09:02 MHassan1122