ashawkey / stable-dreamfusion

Text-to-3D & Image-to-3D & Mesh Exportation with NeRF + Diffusion.
Apache License 2.0
8.2k stars 721 forks source link

Error: numpy.ufunc size changed, may indicate binary incompatibility. Expected 232 from C header, got 216 from PyObject #119

Open mothormothormothor opened 1 year ago

mothormothormothor commented 1 year ago

Hi there,

I got back to dreamfusion since a while and getting this error in the colab notebook when hitting "start training" cell:

numpy.ufunc size changed, may indicate binary incompatibility. Expected 232 from C header, got 216 from PyObject

I already tried to downgrade numpy to 1.16.1 but that doesn't seem to work. Does somebody got a clue on how to solve this ? I'd appreciate every help :-)

Thanks Moto

rmkeezer commented 1 year ago

I ran into the same problem, it seems PyMCubes updated last night and is causing the issue for some reason. I solved it for myself by setting PyMCubes==0.1.2 in the requirements.txt before installing the requirements.

In the colab notebook, I added ! sed -i 's/PyMCubes/PyMCubes==0.1.2/g' requirements.txt right after %cd stable-dreamfusion in the install dependencies section and it seems to work.

ashawkey commented 1 year ago

@rmkeezer Thanks for the information! I have opened a new issue there.

ashawkey commented 1 year ago

@mothormothormothor This has been fixed by the author in mcubes latest 0.1.4 now, you could try again!