Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nnaakkaaii committed Jul 14, 2024
1 parent 29c28b8 commit f644551
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hrdae/conf
2 changes: 1 addition & 1 deletion hrdae/models/losses/triplet.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def forward(
) -> Tensor:
num_frames = positive[0].size(1)

anchor = latent[0].unsqueeze(1).expand(-1, num_frames, -1, -1, -1)
anchor = latent[0].expand(-1, num_frames, -1, -1, -1)
pos_dist = torch.norm(anchor - positive[0], p=2, dim=[2, 3, 4])
neg_dist = torch.norm(anchor - negative[0], p=2, dim=[2, 3, 4])

Expand Down
1 change: 1 addition & 0 deletions test/models/test_vr_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def test_vr_model():
optimizer,
scheduler,
criterion,
False,
)
with TemporaryDirectory() as tempdir:
model.train(
Expand Down

0 comments on commit f644551

Please sign in to comment.