मुख्य सामग्री पर जाएँ
Skillpedia
टेस्टिंग15k · #11082

run-leaderboard-evaluation

यह क्या करती है

यह स्किल एक ड्राइविंग एजेंट का CARLA Leaderboard मूल्यांकन कई रूटों पर चलाती है। यह उन डेवलपर्स के लिए है जो अपने एजेंट का स्कोर लेना चाहते हैं और लंबे टेस्ट रन को सही तरीके से सेट करना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप अपने ड्राइविंग एजेंट को Leaderboard रूट पर परखना चाहते हैं।
  • ✓जब लंबा मूल्यांकन क्रैश हो गया और आप चेकपॉइंट से उसे फिर शुरू करना चाहते हैं।
  • ✓जब आप पूरे रन से पहले एक रूट पर त्वरित स्मोक टेस्ट चाहते हैं।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/carla-simulator/carla/blob/ue58-dev/Skills/leaderboard/run-leaderboard-evaluation/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“पहले मेरे एजेंट को devtest रूट पर चलाइए, फिर पूरे प्रशिक्षण सेट को ऐसे चेकपॉइंट के साथ चलाइए जिससे मैं दोबारा शुरू कर सकूँ।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट शुरू करने से पहले पूरे सेटअप की जाँच करता है, जिसमें वर्ज़न, मैप, एजेंट क्लास और सेंसर शामिल हैं। वह पहले छोटे रूट सेट पर स्मोक टेस्ट चलाता है, फिर पूरा सेट चलाता है और चेकपॉइंट सेव करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Run a leaderboard evaluation

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.

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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

create-leaderboard-route

15k

यह आपके एजेंट को CARLA Leaderboard की रूट फ़ाइल बनाने में मदद करती है, जिसमें वेपॉइंट और सीन ट्रिगर कैमरे से लगाए जाते हैं।

अन्यविविध

package-leaderboard-agent

15k

यह आपके एजेंट को CARLA Leaderboard के लिए Docker इमेज बनाने में मदद करती है, और जाँचती है कि इमेज में एजेंट सही लोड होता है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

read-leaderboard-results

15k

यह आपके एजेंट को CARLA Leaderboard की नतीजा फ़ाइल पढ़कर हर रूट का स्कोर समझाने और दूसरे नियम संस्करण में फिर से स्कोर करने में मदद करती है।

डेटाएनालिसिस और स्प्रेडशीट

write-leaderboard-agent

15k

यह आपके एजेंट को CARLA Leaderboard के लिए ड्राइविंग एजेंट लिखने में मदद करती है, सही क्लास और चलने लायक शुरुआती फ़ाइल के साथ।

AI और एजेंटएजेंट

मिलती-जुलती skills