Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

wrong with "img = drr(rotations, translations, parameterization="euler_angles", convention="ZXY")" #360

Closed
LeoLi3602 opened this issue Jan 2, 2025 · 0 comments

Comments

@LeoLi3602
Copy link

Traceback (most recent call last):

File D:\ProgramData\anaconda3\envs\torch\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)

File d:\codes\tmp\drrtest.py:33
img = drr(rotations, translations, parameterization="euler_angles", convention="ZXY")

File D:\ProgramData\anaconda3\envs\torch\lib\site-packages\torch\nn\modules\module.py:1194 in _call_impl
return forward_call(*input, **kwargs)

File D:\ProgramData\anaconda3\envs\torch\lib\site-packages\diffdrr\drr.py:166 in forward
img = self.render(self.density, source, target, mask_to_channels, **kwargs)

File D:\ProgramData\anaconda3\envs\torch\lib\site-packages\diffdrr\drr.py:189 in render
img = self.renderer(

File D:\ProgramData\anaconda3\envs\torch\lib\site-packages\torch\nn\modules\module.py:1194 in _call_impl
return forward_call(*input, **kwargs)

File D:\ProgramData\anaconda3\envs\torch\lib\site-packages\diffdrr\renderers.py:44 in forward
alphas = _get_alphas(

File D:\ProgramData\anaconda3\envs\torch\lib\site-packages\diffdrr\renderers.py:111 in _get_alphas
alphas = _filter_intersections_outside_volume(alphas, source, target, dims, eps)File D:\ProgramData\anaconda3\envs\torch\lib\site-packages\diffdrr\renderers.py:119 in _filter_intersections_outside_volume
alphas = alphas[..., good_idxs.any(dim=[0, 1])]

_**TypeError: any() received an invalid combination of arguments - got (dim=list, ), but expected one of:

  • ()
    didn't match because some of the keywords were incorrect: dim
  • (int dim, bool keepdim)
  • (name dim, bool keepdim**_

When I run the sample program, the error occurred. Look the message, how to resolve it?
Python 3.9

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant