Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in the Colab Notebook:HyperNeRF Training.ipynb #25

Open
corlangerak opened this issue Apr 20, 2022 · 2 comments
Open

Error in the Colab Notebook:HyperNeRF Training.ipynb #25

corlangerak opened this issue Apr 20, 2022 · 2 comments

Comments

@corlangerak
Copy link

HI
I was trying to run the colab notebook Nerfies Training v2.ipynb
after having run the Nerfies Capture Processing v2.ipynb on a video.

I got stuck on an error that I don't understand due to my lack of knowledge.
maybe someone can help.
This is the error the notebook produced


UnfilteredStackTrace Traceback (most recent call last)
in ()
34 use_warp_jacobian=train_config.use_elastic_loss,
---> 35 use_weights=train_config.use_elastic_loss)
36

26 frames
UnfilteredStackTrace: TypeError: broadcast_to requires ndarray or scalar arguments, got <class 'list'> at position 0.

The stack trace below excludes JAX-internal frames.
The preceding is the original exception that occurred, unmodified.


The above exception was the direct cause of the following exception:

TypeError Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/jax/_src/numpy/util.py in _check_arraylike(fun_name, *args)
293 if not _arraylike(arg))
294 msg = "{} requires ndarray or scalar arguments, got {} at position {}."
--> 295 raise TypeError(msg.format(fun_name, type(arg), pos))
296
297

TypeError: broadcast_to requires ndarray or scalar arguments, got <class 'list'> at position 0.

Thanks in advanced

@corlangerak corlangerak changed the title Error in the Colab Notebook:Nerfies Training v2.ipynb Error in the Colab Notebook:HyperNeRF Training.ipynb Apr 20, 2022
@antoine-lag
Copy link

I think it means you have to cast the list object to an ndarray

@hsauod
Copy link

hsauod commented Jun 17, 2022

@corlangerak hi Corlangerak, I faced the same issue. Did you fixed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants