We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 552d3fb + 5cd9283 commit ccf10a2Copy full SHA for ccf10a2
1 file changed
roboreg/util/transform.py
@@ -64,7 +64,7 @@ def generate_ht_optical(
64
) -> torch.Tensor:
65
ht_optical = torch.zeros(4, 4, dtype=dtype, device=device)
66
if batch_size is not None:
67
- ht_optical = ht_optical.unsqueeze(0).expand(batch_size, -1, -1)
+ ht_optical = ht_optical.unsqueeze(0).repeat(batch_size, 1, 1)
68
ht_optical[..., 0, 2] = (
69
1.0 # OpenCV-oriented optical frame, in quaternions: [0.5, -0.5, 0.5, -0.5] (w, x, y, z)
70
)
0 commit comments