henry000 commited on
Commit
f71cbde
·
1 Parent(s): 478977c

✅ [Pass] test for model output dimension

Browse files
Files changed (1) hide show
  1. tests/model/test_yolo.py +1 -1
tests/model/test_yolo.py CHANGED
@@ -33,7 +33,7 @@ def test_yolo_forward_output_shape():
33
 
34
  # Forward pass through the model
35
  output = model(dummy_input)
36
- output_shape = [x.shape for x in output]
37
  assert output_shape == [
38
  torch.Size([2, 3, 20, 20, 85]),
39
  torch.Size([2, 3, 80, 80, 85]),
 
33
 
34
  # Forward pass through the model
35
  output = model(dummy_input)
36
+ output_shape = [x.shape for x in output[0]]
37
  assert output_shape == [
38
  torch.Size([2, 3, 20, 20, 85]),
39
  torch.Size([2, 3, 80, 80, 85]),