We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0529934 commit e870fdeCopy full SHA for e870fde
diffdrr/pose.py
@@ -19,6 +19,8 @@ class RigidTransform(torch.nn.Module):
19
20
def __init__(self, matrix):
21
super().__init__()
22
+ if specimen.extrinsic.matrix.dim() == 2:
23
+ matrix = matrix.unsqueeze(0)
24
self.register_buffer("matrix", matrix)
25
26
def __len__(self):
notebooks/api/06_pose.ipynb
@@ -95,6 +95,8 @@
95
"\n",
96
" def __init__(self, matrix):\n",
97
" super().__init__()\n",
98
+ " if specimen.extrinsic.matrix.dim() == 2:\n",
99
+ " matrix = matrix.unsqueeze(0)\n",
100
" self.register_buffer(\"matrix\", matrix)\n",
101
102
" def __len__(self):\n",
0 commit comments