run-leaderboard-evaluation
하는 일
스킬은 일련의 경로에 대해 주행 에이전트의 CARLA Leaderboard 평가를 실행합니다. 에이전트의 점수를 매기려 하고, 긴 테스트 실행을 올바르게 설정해야 하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓리더보드 경로에서 주행 에이전트를 평가하고 싶을 때.
- ✓긴 평가가 충돌해 체크포인트에서 재개하고 싶을 때.
- ✓전체 실행 전에 한 경로에서 빠른 스모크 테스트를 하고 싶은 경우.
스킬 링크
https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/leaderboard/run-leaderboard-evaluation/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“devtest 경로에서 먼저 제 에이전트를 실행하고, 이어서 재개할 수 있는 체크포인트와 함께 전체 학습 세트를 시작해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 시작 전에 버전, 맵, 에이전트 클래스, 센서 등 전체 설정을 확인합니다. 먼저 짧은 경로 세트로 스모크 테스트를 한 뒤 전체 세트를 실행하고, 체크포인트를 저장합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Run a leaderboard evaluation
Paths.
scripts/…andreferences/…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.
leaderboard_evaluator.py drives your agent through each route, records
infractions, computes a driving score and writes a JSON checkpoint it can resume
from. It is a long-running batch job: routes_devtest.xml is 2 routes,
routes_validation.xml is 20, routes_training.xml is 90 routes in Town12 —
hours of wall clock, so the preflight matters more than usual.
Instructions
Progress:
- [ ] Step 1: Preflight everything (bash scripts/check_env.sh) — clear every FAIL
- [ ] Step 2: Smoke-test on one devtest route
- [ ] Step 3: Run the real set, with a checkpoint you can resume from
- [ ] Step 4: Read the results (read-leaderboard-results)
Step 1: Preflight
source scripts/env.sh
bash scripts/check_env.sh
This is the skill's main value. It checks, before anything expensive: the
leaderboard version, that scenario_runner is on the paired branch, that carla
/ agents / srunner / leaderboard all import, that the agent file exists and
defines the class the evaluator will look for, that the track is valid for the
version, and that Town12/Town13 exist on the running server.
Step 2-3: Run
source scripts/env.sh
# smoke test: one route, debug on
TEAM_AGENT="$LEADERBOARD_ROOT/leaderboard/autoagents/npc_agent.py" \
bash scripts/run_leaderboard.sh --routes-subset 0 --debug 1
# your agent over the validation set, resumable
TEAM_AGENT=~/team_code/my_agent.py TEAM_CONFIG=~/team_code/config.json \
CHECKPOINT_ENDPOINT=~/results/validation.json \
bash scripts/run_leaderboard.sh --routes "$LEADERBOARD_ROOT/data/routes_validation.xml"
# a slice of the training set, 3 repetitions each
bash scripts/run_leaderboard.sh --routes-subset '0-4,10' --repetitions 3
# resume after a crash — picks up where the checkpoint left off
bash scripts/run_leaderboard.sh --resume 1
The wrapper sets the environment, runs the preflight, then calls the evaluator.
The repo's own run_leaderboard.sh does the same thing with less checking — and
note it references DEBUG_CHECKPOINT_ENDPOINT without ever exporting it, so live
results silently go nowhere. This wrapper defaults it next to the checkpoint.
Everything the evaluator accepts, and what it means:
| Flag / env | Meaning |
|---|---|
--routes / ROUTES |
route XML (default data/routes_devtest.xml) |
--routes-subset / ROUTES_SUBSET |
'' = all, 0-4, 1,6,8, or 0-2,5,8-10 |
--repetitions / REPETITIONS |
repeats per route; each gets a fresh TM seed |
--track / CHALLENGE_TRACK_CODENAME |
SENSORS, MAP, SENSORS_QUALIFIER, MAP_QUALIFIER |
--agent / TEAM_AGENT |
the agent .py |
--agent-config / TEAM_CONFIG |
passed to your setup() |
--checkpoint / CHECKPOINT_ENDPOINT |
results JSON; also the resume state |
--debug-checkpoint / DEBUG_CHECKPOINT_ENDPOINT |
live text results, written when --debug >= 2 |
--debug / DEBUG_CHALLENGE |
0 quiet, 1 route/scenario info, 2+ live results |
--record / RECORD_PATH |
CARLA recorder output directory |
--resume / RESUME |
continue from the checkpoint instead of restarting |
--timeout |
per-route client timeout, default 300 s |
--traffic-manager-seed |
fixed per run; repetitions vary it deterministically |
--routes-subset is indices into the file, not route ids. They coincide in the
shipped files because ids are sequential from 0, but not in a hand-edited file.
What the evaluator forces
_setup_simulation applies these regardless of the server's current settings:
synchronous_mode = True, fixed_delta_seconds = 1/20
deterministic_ragdolls = True, spectator_as_ego = False
traffic_manager: synchronous, hybrid_physics_mode = True
per load_world: tile_stream_distance = 650, actor_active_distance = 650
world.reset_all_traffic_lights()
So do not bother setting weather, sync or TM options beforehand — they are overwritten. The 20 Hz tick rate is fixed and is what your agent's per-tick budget is measured against.
Step 4: Aftermath
The evaluator resets the world to async itself in _reset_world_settings, but
only if the run did not time out (`if self.world and self.manager and not
self._client_timed_out
자주 묻는 질문
전체 실행은 얼마나 걸리나요?
학습 세트는 Town12의 90개 경로이므로 몇 시간이 걸릴 수 있어, 확인을 먼저 합니다.
충돌 후 실행을 재개할 수 있나요?
네. 평가기는 실행을 재개할 수 있는 체크포인트를 씁니다.
테스트 세트는 얼마나 큰가요?
devtest 세트는 2개 경로, 검증 세트는 20개, 학습 세트는 90개입니다.
상세 정보
작성자의 원본 설명
Runs the CARLA Leaderboard evaluator over a set of routes with your agent — routes/routes-subset/repetitions/track selection, checkpoint and live-results endpoints, resume after a crash, recording, and the debug levels — for leaderboard 1.0, 2.0 or 2.1. Preflights the whole stack (version pairing, maps, ports, agent class, sensor budget) before spending hours, and hands the world back in async mode. Use when the user asks to "run the leaderboard", "evaluate my agent", "run routes_training", "resume an evaluation", or "reproduce my submission locally".
repo: carla-simulator/carla
인기도
- GitHub 스타
- 15k
- 순위
- #11082
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
create-leaderboard-route
15k카메라 화면에서 웨이포인트와 시나리오 트리거를 배치하고, 확인하고, 순서를 정해 CARLA 리더보드 경로 파일을 만들도록 에이전트를 돕습니다.
package-leaderboard-agent
15k주행 에이전트를 CARLA Leaderboard 제출용 Docker 이미지로 패키징하고, 폴더 구조를 확인하며 이미지가 에이전트를 로드하는지 테스트하도록 돕습니다.
read-leaderboard-results
15kCARLA Leaderboard 결과 파일을 읽고 경로별 점수와 위반 사항을 설명하며, 다른 규칙 버전에서 실행을 다시 채점하도록 에이전트를 돕습니다.
write-leaderboard-agent
15k올바른 클래스, 트랙 제한 안의 센서 구성, 작동하는 시작 파일을 갖춘 CARLA Leaderboard용 주행 에이전트를 작성하도록 에이전트를 돕습니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.