nerfstudio-project / nerfstudio

A collaboration friendly studio for NeRFs
https://docs.nerf.studio
Apache License 2.0
9.43k stars 1.28k forks source link

TypeError: eager() got an unexpected keyword argument 'mode' #2615

Open KutayDemiray opened 11 months ago

KutayDemiray commented 11 months ago

Describe the bug I am trying to train a NeRF with my image data (that I ran through colmap), following the instructions in this page. Running ns-train nerfacto --data {PROCESSED_DATA_DIR} yields TypeError: eager() got an unexpected keyword argument 'mode'. I have also tried this with mipnerf and instant-ngp and received the same error.

To Reproduce Steps to reproduce the behavior:

  1. Use colmap to process data as instructed (no problems here)
  2. Run ns-train nerfacto --data {PROCESSED_DATA_DIR}
  3. See error

Expected behavior Model training without issues (hopefully)

Additional context I am using the following:

Here is the gist of full error: https://gist.github.com/KutayDemiray/3df91a2b60ce91edf726aa0072ca0bb7

HeaIn commented 11 months ago

I've made a temporary adjustment by transforming errors into warnings, achieved by adding the following code in this location.

import torch._dynamo
torch._dynamo.config.suppress_errors = True

I'm aware that this isn't the ideal solution. Hope someone with a better fix will come forward.

lw112 commented 10 months ago

I got the same warning, I think it's because essentially cuda 12.2 is not supported. I downgraded to cuda 11.8, now the warning is gone.

liuyi0316 commented 2 weeks ago

i checked my version of cuda with 11.8, but still faced the same problem