From 45b7ebb7c005409ea77d9887583003d2f3a94584 Mon Sep 17 00:00:00 2001 From: pengzhenghao Date: Thu, 8 Aug 2024 13:51:28 -0700 Subject: [PATCH] format --- .../test_component/test_lane_line_detector.py | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/metadrive/tests/test_component/test_lane_line_detector.py b/metadrive/tests/test_component/test_lane_line_detector.py index 77fd6d1c2..3fa091eea 100644 --- a/metadrive/tests/test_component/test_lane_line_detector.py +++ b/metadrive/tests/test_component/test_lane_line_detector.py @@ -263,7 +263,30 @@ 1.0, ] -pg_gt_3 = [0.17424996197223663, 0.17563384771347046, 0.179901123046875, 0.18740931153297424, 0.19884595274925232, 0.21538487076759338, 0.23903638124465942, 0.273365318775177, 0.32519838213920593, 0.40924975275993347, 0.5638853311538696, 1.0, 1.0, 0.5454577803611755, 0.18278196454048157, 0.11083516478538513, 0.08044067770242691, 0.06391915678977966, 0.05373150855302811, 0.04698386788368225, 0.04233507066965103, 0.03907269984483719, 0.03683317080140114, 0.03535793721675873, 0.034397244453430176, 0.03412747383117676, 0.034522198140621185, 0.0353609174489975, 0.036836810410022736, 0.03908421844244003, 0.04233531653881073, 0.04698418080806732, 0.05373169109225273, 0.06391977518796921, 0.08044077455997467, 0.11082261800765991, 0.18277062475681305, 0.45523008704185486, 0.7089459300041199, 0.8811144232749939, 1.0, 0.40924930572509766, 0.325198233127594, 0.2732689678668976, 0.23903624713420868, 0.21538473665714264, 0.19884586334228516, 0.1874106079339981, 0.17990022897720337, 0.17563492059707642, 0.49999988079071045, 0.012532129883766174, 0.5, 0.5, 0.5, 1.3244441561255371e-06, 0.17424996197223663, 0.03450844809412956, 0.035360947251319885, 0.03683680295944214, 0.03908339887857437, 0.04233534261584282, 0.04698362201452255, 0.273365318775177, 0.19455832242965698, 0.40924975275993347, 0.1108340248465538, 0.18278250098228455, 0.5611181855201721, 0.5454577803611755, 0.18278196454048157, 0.11083516478538513, 0.08044067770242691, 0.06391915678977966, 0.05373150855302811, 0.04698386788368225, 0.04233507066965103, 0.03907269984483719, 0.03683317080140114, 0.03535793721675873, 0.034397244453430176, 0.03412747383117676, 0.034522198140621185, 0.0353609174489975, 0.036836810410022736, 0.03908421844244003, 0.04233531653881073, 0.04698418080806732, 0.05373169109225273, 0.06391977518796921, 0.08044077455997467, 0.11082261800765991, 0.18277062475681305, 0.45523008704185486, 0.7089459300041199, 0.7421090602874756, 0.7847582697868347, 0.08044064044952393, 0.0639198049902916, 0.053731828927993774, 0.23903624713420868, 0.1288066953420639, 0.11896516382694244, 0.11209990084171295, 0.17990022897720337, 0.17563492059707642, 0.3000001609325409, 0.43000006675720215, 0.0, 0.5, 0.5, 0.699988842010498, 0.4299999475479126, 0.0, 0.5, 0.5, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0] +pg_gt_3 = [ + 0.17424996197223663, 0.17563384771347046, 0.179901123046875, 0.18740931153297424, 0.19884595274925232, + 0.21538487076759338, 0.23903638124465942, 0.273365318775177, 0.32519838213920593, 0.40924975275993347, + 0.5638853311538696, 1.0, 1.0, 0.5454577803611755, 0.18278196454048157, 0.11083516478538513, 0.08044067770242691, + 0.06391915678977966, 0.05373150855302811, 0.04698386788368225, 0.04233507066965103, 0.03907269984483719, + 0.03683317080140114, 0.03535793721675873, 0.034397244453430176, 0.03412747383117676, 0.034522198140621185, + 0.0353609174489975, 0.036836810410022736, 0.03908421844244003, 0.04233531653881073, 0.04698418080806732, + 0.05373169109225273, 0.06391977518796921, 0.08044077455997467, 0.11082261800765991, 0.18277062475681305, + 0.45523008704185486, 0.7089459300041199, 0.8811144232749939, 1.0, 0.40924930572509766, 0.325198233127594, + 0.2732689678668976, 0.23903624713420868, 0.21538473665714264, 0.19884586334228516, 0.1874106079339981, + 0.17990022897720337, 0.17563492059707642, 0.49999988079071045, 0.012532129883766174, 0.5, 0.5, 0.5, + 1.3244441561255371e-06, 0.17424996197223663, 0.03450844809412956, 0.035360947251319885, 0.03683680295944214, + 0.03908339887857437, 0.04233534261584282, 0.04698362201452255, 0.273365318775177, 0.19455832242965698, + 0.40924975275993347, 0.1108340248465538, 0.18278250098228455, 0.5611181855201721, 0.5454577803611755, + 0.18278196454048157, 0.11083516478538513, 0.08044067770242691, 0.06391915678977966, 0.05373150855302811, + 0.04698386788368225, 0.04233507066965103, 0.03907269984483719, 0.03683317080140114, 0.03535793721675873, + 0.034397244453430176, 0.03412747383117676, 0.034522198140621185, 0.0353609174489975, 0.036836810410022736, + 0.03908421844244003, 0.04233531653881073, 0.04698418080806732, 0.05373169109225273, 0.06391977518796921, + 0.08044077455997467, 0.11082261800765991, 0.18277062475681305, 0.45523008704185486, 0.7089459300041199, + 0.7421090602874756, 0.7847582697868347, 0.08044064044952393, 0.0639198049902916, 0.053731828927993774, + 0.23903624713420868, 0.1288066953420639, 0.11896516382694244, 0.11209990084171295, 0.17990022897720337, + 0.17563492059707642, 0.3000001609325409, 0.43000006675720215, 0.0, 0.5, 0.5, 0.699988842010498, 0.4299999475479126, + 0.0, 0.5, 0.5, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 +] def test_pg_map(render=False):