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

NaN or Inf found in input tensor #34

Open
xiaoqidaov2 opened this issue Aug 29, 2024 · 1 comment
Open

NaN or Inf found in input tensor #34

xiaoqidaov2 opened this issue Aug 29, 2024 · 1 comment

Comments

@xiaoqidaov2
Copy link

xiaoqidaov2 commented Aug 29, 2024

train_mouth这里报错是什么原因
tb_writer.add_images(config['name'] + "view{}_mouth/depth".format(viewpoint.image_name), (render_pkg["depth"] / render_pkg["depth"].max())[None], global_step=iteration)

/root/anaconda3/envs/TalkingGaussian/lib/python3.8/site-packages/tensorboardX/summary.py:286: RuntimeWarning: invalid value encountered in cast
tensor = (tensor * 255.0).astype(np.uint8)
NaN or Inf found in input tensor

debug后发现

render_pkg["depth"]
tensor([[[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.],
...,
[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.],
[0., 0., 0., ..., 0., 0., 0.]]], device='cuda:0')

@xiaoqidaov2
Copy link
Author

找到问题了,lms 存在大量负数

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