google / nerfies

This is the code for Deformable Neural Radiance Fields, a.k.a. Nerfies.
https://nerfies.github.io
Apache License 2.0
1.59k stars 215 forks source link

ndarray or scalar arguments, got <class 'list'> at position 0. #53

Open atarilover123 opened 2 years ago

atarilover123 commented 2 years ago

I'm getting this error on the "initialize model" cell. UnfilteredStackTrace: TypeError: broadcast_to requires ndarray or scalar arguments, got <class 'list'> at position 0.

asinghka commented 2 years ago

I changed

jnp.broadcast_to([last_sample_z], z_vals[..., :1].shape) to jnp.broadcast_to(last_sample_z, z_vals[..., :1].shape)

in line 107 of model_utils.py and that fixed it for me.

CurtinComputing commented 1 year ago

Hi blackz5, It dose not work for me. Did you try it on the colab?

asinghka commented 1 year ago

No, I have run it locally and changed the file as describe above.