stable-dreamfusion icon indicating copy to clipboard operation
stable-dreamfusion copied to clipboard

AttributeError: module 'gridencoder' has no attribute 'grid_encode_forward'

Open SpicyMelonYT opened this issue 2 years ago • 8 comments

AttributeError: module 'gridencoder' has no attribute 'grid_encode_forward'

Here is the detailed error message:

image image image

SpicyMelonYT avatar Nov 15 '22 17:11 SpicyMelonYT

Just giving a ping! I would love an answer to this thank you!

SpicyMelonYT avatar Nov 16 '22 18:11 SpicyMelonYT

Hello, I have the same problem, and how do you deal with it?

Castrol68 avatar Apr 25 '23 16:04 Castrol68

No clue sorry, I never received help and stopped trying. Try asking Bing Chat Or Chatgpt!

SpicyMelonYT avatar Apr 25 '23 16:04 SpicyMelonYT

Any news on this?

luis-guerraf avatar Jul 15 '23 16:07 luis-guerraf

unfortunately no, i think this issue is burried under so much. Maybe try making another issue about it and it will cause all the "post duplicate" nazi's to show up and maybe help LOL

SpicyMelonYT avatar Jul 15 '23 17:07 SpicyMelonYT

haha I fixed it on my end at least. I had replaced import _gridencoder with gridencoder (no underscore) following this advice https://github.com/eladrich/latent-nerf/issues/7#issuecomment-1416687218. I guess the name should match the name assigned to the CUDAExtension, rather than the package, in setup.py.

luis-guerraf avatar Jul 15 '23 19:07 luis-guerraf

yeah taking out the underscores are usually how to do it. But i tried that a long time ago, didn't fix it for me unfortunately!

SpicyMelonYT avatar Jul 16 '23 23:07 SpicyMelonYT

I fixed it by downgrading my CUDA version from 12.1 to 11.7, and then re-building the extensions. I am running on Windows without WSL.

ruiqixu37 avatar Jul 25 '23 22:07 ruiqixu37