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

Questions about data formats #4

Open
xiaoyaozaixmu opened this issue Nov 1, 2024 · 0 comments
Open

Questions about data formats #4

xiaoyaozaixmu opened this issue Nov 1, 2024 · 0 comments

Comments

@xiaoyaozaixmu
Copy link

Hi, I'm very inspired by your code, but I'm currently having some problems, running the main file in the pixelnerf folder keeps showing the following problem:

File "C:\Users\15638\Desktop\Clean-Torch-NeRFs-main\PixelNeRF\main.py", line 49, in
rgb, _, __ = render_rays(net, rays_od, bound=bound, N_samples=N_samples, device=device, ref=ref_dataset)

File "C:\Users\15638\Desktop\Clean-Torch-NeRFs-main\PixelNeRF\Render.py", line 14, in render_rays
f_projection = ref.feature_matching(pts)

File "D:\work\software\anaconda3\envs\pixelnerf\Lib\site-packages\torch\utils_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)

File "C:\Users\15638\Desktop\Clean-Torch-NeRFs-main\PixelNeRF\Dataset.py", line 89, in feature_matching
ref_pos = torch.einsum("kij,kbsj->kbsi", self.R_t, (pos - camera_pos).double())

File "D:\work\software\anaconda3\envs\pixelnerf\Lib\site-packages\torch\functional.py", line 402, in einsum
return _VF.einsum(equation, operands) # type: ignore[attr-defined]

RuntimeError: expected scalar type Double but found Float

I made the changes based on the bugs, but the problem is still there,I've tried many methods but failed to solve the problem, please help me to solve it when you see 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

1 participant