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

RuntimeError: shape '[60, 60, -1]' is invalid for input of size 3072 in llff dataset #15

Open
Zzzhewang opened this issue Sep 29, 2022 · 2 comments

Comments

@Zzzhewang
Copy link

Hi cassie,
thank you so much for your amazing works! i have encountered some problems when running the llff data set. It said that RuntimeError: shape '[60, 60, -1]' is invalid for input of size 3072. how can i fix this problem? Look forward for your replying. thanks again!
Traceback (most recent call last):
File "run_nerf_clip.py", line 885, in
train()
File "run_nerf_clip.py", line 805, in train
rgb_img = rgb.view(sample_scale, sample_scale, -1)
RuntimeError: shape '[60, 60, -1]' is invalid for input of size 3072

@HannahHaensen
Copy link

@Zzzhewang were you able to fix this`? i faced the same problem

@cassiePython
Copy link
Owner

You should change the number of sampled rays to patch-size * patch-size.

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