eigenvivek / DiffDRR

Auto-differentiable digitally reconstructed radiographs in PyTorch
https://vivekg.dev/DiffDRR
MIT License
148 stars 21 forks source link

#TypeError: any() received an invalid combination of arguments - got (dim=list, ) #341

Closed YCIT-Coder closed 3 weeks ago

YCIT-Coder commented 3 weeks ago

I executed the code in ReadMe and had some problems. The operation result shows the following contents: TypeError: any() received an invalid combination of arguments - got (dim=list, ), but expected one of:

The error appears in the renderers.py file, line 119, the call of tensor.any(). The dim parameter passes in a list, but the specified dim parameter is type int in the pytorch official API. Please help the project developer to solve it, thank you.

YCIT-Coder commented 3 weeks ago

OK. The version of Pytorch should be 2.2+.

eigenvivek commented 3 weeks ago

correct, I'll update the environment.yml