Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError when running tests #424

Open
zshn25 opened this issue Nov 25, 2024 · 0 comments
Open

AssertionError when running tests #424

zshn25 opened this issue Nov 25, 2024 · 0 comments

Comments

@zshn25
Copy link

zshn25 commented Nov 25, 2024

=================================== FAILURES ===================================
____________________________ test_detect_collision _____________________________

    def test_detect_collision() -> None:
        pred_centroid = np.array([0.0, 0.0])
        pred_yaw = np.array([1.0])
        pred_extent = np.array([5., 2., 2.])
    
        target_agents_dtype = np.dtype([('centroid', '<f8', (2,)),
                                        ('extent', '<f4', (3,)),
                                        ('yaw', '<f4'), ('track_id', '<u8')])
    
        target_agents = np.array([
            ([1000.0, 1000.0], [5., 2., 2.], 1.0, 1),  # Not in range
            ([0., 0.], [5., 2., 2.], 1.0, 2),  # In range
            ([0., 0.], [5., 2., 2.], 1.0, 3),  # In range
        ], dtype=target_agents_dtype)
    
        collision = detect_collision(pred_centroid, pred_yaw, pred_extent, target_agents)
>       assert collision == (CollisionType.SIDE, 2)
E       assert (<CollisionType.FRONT: 0>, 2) == (<CollisionType.SIDE: 2>, 2)
E         
E         At index 0 diff: <CollisionType.FRONT: 0> != <CollisionType.SIDE: 2>
E         Use -v to get more diff

l5kit/tests/evaluation/metrics_test.py:246: AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant