henry000 commited on
Commit
2218dc8
·
1 Parent(s): f71cbde

✅ [Pass] modified output index

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[0]]
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[-1]]
37
  assert output_shape == [
38
  torch.Size([2, 3, 20, 20, 85]),
39
  torch.Size([2, 3, 80, 80, 85]),