跳到正文
Skillpedia
分析与电子表格15k · #11081

read-leaderboard-results

它能做什么

该技能读取并解释 CARLA Leaderboard 运行的输出。适合想知道自己的智能体为什么失分的开发者。

适用场景

  • ✓当你有 Leaderboard 结果文件,并希望解释其分数的时候。
  • ✓当你想查看哪些路线和违规拉低了分数的时候。
  • ✓当数字与在线排行榜不一致,你需要重新计分的时候。

技能链接

https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/leaderboard/read-leaderboard-results/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/leaderboard/read-leaderboard-results/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请读取我的 results.json,告诉我哪些路线得分最低以及原因,并按 2.1 规则重新计分。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会总结该文件,列出每条路线的驾驶得分、路线完成度和扣分,然后仔细查看得分最低的路线。它可以在不重新运行的情况下,按另一版本的规则重新计算分数。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Read leaderboard results

Paths. scripts/… and references/… below are relative to the directory holding this SKILL.md. Your working directory is the user's project, not that directory, so prefix them with its absolute path or the command is not found.

driving score = route completion × infraction penalty

Route completion is the percentage of the route driven. The infraction penalty starts at 1.0 and is reduced by what you did wrong — and how it is reduced is the one thing that changed between 2.0 and 2.1.

Instructions

Progress:
- [ ] Step 1: Read the file (summary)
- [ ] Step 2: Drill into the routes that scored badly
- [ ] Step 3: If the numbers disagree with the online leaderboard, rescore

Step 1: Summary

python3 scripts/read_results.py ~/results/results.json

Prints entry status and eligibility, the declared sensors, progress, a per-route table (driving score / route % / penalty / top infractions), and the global record with mean and standard deviation.

Two fields decide whether the run counts at all:

  • entry_status — Finished, Started, Rejected, Crashed or Invalid.
  • eligible — True only for Finished. One crashed route out of 90 makes the entire entry ineligible, not just that route.

Step 2: Drill in

python3 scripts/read_results.py results.json --route RouteScenario_3 -v

Full scores, meta (route length, game and wall-clock duration) and every infraction message with its location. The -v messages are what tell you where the ego hit something, which is the difference between "collided" and "collided at the Accident scenario in the third junction".

Reading a score:

Symptom Read as
route % high, penalty low drives the route but breaks rules
route % low, penalty 1.0 clean but stops early — check vehicle_blocked, route_dev, route_timeout
status Agent got blocked ActorBlockedTest fired; the ego stood still too long
status Agent crashed an exception in run_step, or a watchdog timeout
eligible: false with good scores some route did not finish; find it and fix it
outside_route_lanes large driving on the wrong lane; it reduces route completion, not the penalty

Step 3: Rescore across versions

python3 scripts/read_results.py results.json --as 2.1   # 2.0 result, 2.1 rules
python3 scripts/read_results.py results.json --as 2.0

This is exact for constant-penalty infractions, because the infraction counts are what both formulas consume and the file stores them precisely. Verified round-trip: rescoring a 2.0 file --as 2.0 reproduces its stored scores to the cent.

The difference is large and not a constant offset:

pedestrian collisions on a completed route 2.0 2.1
1 50.0 50.0
2 25.0 33.3
5 3.1 16.7

2.0 multiplies (P = Π p_j^n_j), so the first infraction is cheap and later ones are nearly free — which rewarded stopping early. 2.1 sums (P = 1/(1+Σ c_j n_j)), so every infraction costs the same absolute amount. Full coefficient tables in references/scoring.md.

min_speed_infractions and outside_route_lanes scale with a percentage the file does not store, so rescoring leaves them out and says so — those routes come out as an upper bound.

Compare and merge

python3 scripts/read_results.py before.json after.json --diff
python3 scripts/read_results.py shard0.json --merge shard1.json shard2.json --out all.json

--diff matches by route id and reports the score delta plus which infraction counts changed. --merge joins shards from parallel runs; it does not recompute the global record — use the leaderboard's own scripts/merge_statistics.py when you need an official global score.

Examples

Example 1: "what did my agent score?"

read_results.py results.json. The global driving score mean is the number that would rank you; the std dev tells you how much of it is luck.

Example 2: "why is my score 12 when route completion is 95%?"

--route <id> -v. A penalty of ~0.13 with 95% completion means several infractions. Under 2.0 that is roughly three collisions; the messages name them.

Example 3: "my local score doesn't match my submission"

Check which version produced the file: master and leaderboard-2.0 score multiplicatively, the live leaderboard has scored additively since March 2025. --as 2.1 converts

常见问题

驾驶得分是如何计算的?

路线完成度乘以违规扣分系数。

为什么一条路线崩溃就如此重要?

只有状态为 Finished 的运行才算有效,因此一条路线崩溃会使整个条目失去资格。

两个版本之间有什么变化?

违规扣分的减少方式:在 2.0 中是乘法的,在 2.1 中是加法的。

详情

作者的原始描述

Reads a CARLA Leaderboard results.json — per-route driving score, route completion, infraction penalty and the infraction lists — explains how the score was computed for that leaderboard version, and rescores an existing result under the other version's rules (2.0 multiplicative vs 2.1 additive) without re-running anything. Also diffs two runs and merges sharded result files. Use when the user asks "what did I score", "why is my score low", "did my agent pass", "why don't my scores match the leaderboard", or hands over a results.json.

repo: carla-simulator/carla

热度

GitHub 星标
15k
排名
#11081
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能