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 a27e9e5 commit 2aadd27Copy full SHA for 2aadd27
gpudrive/datatypes/trajectory.py
@@ -157,8 +157,6 @@ def __init__(
157
self.mean_x = mean_pos_xy[:, 0]
158
self.mean_y = mean_pos_xy[:, 1]
159
160
- self.demean_positions()
161
-
162
@classmethod
163
def from_tensor(
164
cls,
@@ -195,8 +193,8 @@ def demean_positions(self):
195
193
mean_y_reshaped = self.mean_y.view(-1, 1, 1)
196
194
197
# Apply to x and y coordinates
198
- self.pos_xy[..., 0] -= mean_x_reshaped
199
- self.pos_xy[..., 1] -= mean_y_reshaped
+ self.pos_xy[..., 10:, 0] -= mean_x_reshaped
+ self.pos_xy[..., 10:, 1] -= mean_y_reshaped
200
201
self.pos_x = self.pos_xy[..., 0].unsqueeze(-1)
202
self.pos_y = self.pos_xy[..., 1].unsqueeze(-1)
0 commit comments