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

Evaluation Error #72

Open
gjgjgjfff opened this issue Aug 9, 2023 · 5 comments
Open

Evaluation Error #72

gjgjgjfff opened this issue Aug 9, 2023 · 5 comments

Comments

@gjgjgjfff
Copy link

Traceback (most recent call last):
File "/share/home/drliuqi/gjf/3D-Reconstruction/mega-nerf-main/mega_nerf/eval.py", line 30, in
main(_get_eval_opts())
File "/share/home/drliuqi/anaconda3/envs/mega-nerf/lib/python3.9/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 345, in wrapper
return f(*args, **kwargs)
File "/share/home/drliuqi/gjf/3D-Reconstruction/mega-nerf-main/mega_nerf/eval.py", line 26, in main
Runner(hparams).eval()
File "/share/home/drliuqi/gjf/3D-Reconstruction/mega-nerf-main/mega_nerf/runner.py", line 323, in eval
val_metrics = self._run_validation(0)
File "/share/home/drliuqi/gjf/3D-Reconstruction/mega-nerf-main/mega_nerf/runner.py", line 427, in _run_validation
results, _ = self.render_image(metadata_item)
File "/share/home/drliuqi/gjf/3D-Reconstruction/mega-nerf-main/mega_nerf/runner.py", line 587, in render_image
result_batch, _ = render_rays(nerf=nerf, bg_nerf=bg_nerf,
File "/share/home/drliuqi/gjf/3D-Reconstruction/mega-nerf-main/mega_nerf/rendering.py", line 88, in render_rays
results = _get_results(nerf=nerf,
File "/share/home/drliuqi/gjf/3D-Reconstruction/mega-nerf-main/mega_nerf/rendering.py", line 195, in _get_results
_inference(results=results,
File "/share/home/drliuqi/gjf/3D-Reconstruction/mega-nerf-main/mega_nerf/rendering.py", line 324, in _inference
model_chunk = nerf(typ == 'coarse', xyz_chunk, sigma_noise=sigma_noise)
File "/share/home/drliuqi/anaconda3/envs/mega-nerf/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "/share/home/drliuqi/gjf/3D-Reconstruction/mega-nerf-main/mega_nerf/models/mega_nerf.py", line 22, in forward
cluster_distances = torch.cdist(x[:, self.cluster_dim_start:3], self.centroids[:, self.cluster_dim_start:])
TypeError: 'bool' object is not subscriptable
can you help me?thanks!

@ghd98522
Copy link

I'm having the same issue, did you fix it?

@gjgjgjfff
Copy link
Author

I'm having the same issue, did you fix it?

no,do you have any idea?

@ghd98522
Copy link

ghd98522 commented Aug 24, 2023 via email

@A-pril
Copy link

A-pril commented Aug 29, 2023

This problem has been bothering me for a long time, and I can't solve it either @.*** @.***

---- Replied Message ---- From @.> Date 08/22/2023 15:32 To @.> Cc @.>@.> Subject Re: [cmusatyalab/mega-nerf] Evaluation Error (Issue #72) I'm having the same issue, did you fix it? no,do you have any idea? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

This answer maybe help you, just fix the config's setting

@gjgjgjfff
Copy link
Author

This problem has been bothering me for a long time, and I can't solve it either @.*** @.***

---- Replied Message ---- From @.> Date 08/22/2023 15:32 To _@**._> Cc _@.>@._> Subject Re: [cmusatyalab/mega-nerf] Evaluation Error (Issue #72) I'm having the same issue, did you fix it? no,do you have any idea? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: _@_.*>

This answer maybe help you, just fix the config's setting

Thank you very much! It works for me.
I have another problem, when I try to train mega-nerf on my own dataset, it gives error:
Exception: Train metrics not finite: {'psnr': nan, 'depth_variance': tensor(nan, device='cuda:0'), 'photo_loss': tensor(nan, device='cuda:0', grad_fn=), 'loss': tensor(nan, device='cuda:0', grad_fn=)}
do you have any idea?

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