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

indices_.reshape(indices_.shape[0], 1024, -1, indices_.shape[2]) error in run_nerf_deform.py #7

Open
aishoot opened this issue Aug 24, 2022 · 8 comments

Comments

@aishoot
Copy link

aishoot commented Aug 24, 2022

Nice work! Thanks your sharing code. When I rendering.sh one video, there is a problem in this line:

  try:
      indices_ = indices_.reshape(indices_.shape[0], 1024, -1, indices_.shape[2])
  except:
      pdb.set_trace()

I printed the shape of the tensor indices_:

indices_ shape: torch.Size([4, 28544, 2])

28544 cannot be divided by 1024. So what is the reason? And any suggestions?

@yaleimeng
Copy link

while running " sh run.sh 1" , I meet the same error。 what is wrong?
File "NeRFs/run_nerf_deform.py", line 290, in gather_indices
indices_ = indices_.reshape(indices_.shape[0], args.N_rand, -1, indices_.shape[2])
RuntimeError: shape '[4, 850, -1, 2]' is invalid for input of size 131072

@sstzal
Copy link
Owner

sstzal commented Sep 2, 2022

Is your input image size 512*512?

@yaleimeng
Copy link

yaleimeng commented Sep 2, 2022

yes, I use the 1.mp4 when running sh process_data.sh .
and the *.jpg files in dataset/1/0/xxx_imgs are 512×512 pixel 。

@sstzal
Copy link
Owner

sstzal commented Sep 2, 2022

You can try to debug. I'll check the relevant code when I'm free.

@aishoot
Copy link
Author

aishoot commented Sep 2, 2022

Is your input image size 512*512?

yes

@essen900718
Copy link

@aishoot Hi, may I ask have you solved the problem yet ?

@FengAB2
Copy link

FengAB2 commented Dec 12, 2023

@aishoot Hi, have you solved the problem yet ?

@FengAB2
Copy link

FengAB2 commented Dec 12, 2023

You can try to debug. I'll check the relevant code when I'm free.

I have encountered the same problem and would like to ask if you know how to solve 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

5 participants