游戏与仿真

jev-drone

@RomanSlack79PythonMIT更新于 2026-09-17可当场跑

基于MuJoCo的纯摄像头自主无人机,内置2.5Hz运行的小型TypeSafe Jev判断模型。

英文原文

Camera-only autonomous drone in MuJoCo with a small judgment model (TypeSafe Jev) in the loop at 2.5Hz

RomanSlack/jev-drone

它在哪儿调用了 Jev

from typesafe_sdk import TypeSafeClient, Choice, Noul, Score

tactics.py:12

链接指向我们抓取当天的那个 commit,行号是准的。

它问 Jev 的问题

下面是从这个项目源码里原样取出来的 question 组合。

取自 tactics.py:65

  1. risk打分

    How dangerous is the drone's immediate situation?

    • 0clear and open
    • 1tight but manageable
    • 2about to hit something

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    risk: { type: 'score', instructions: 'How dangerous is the drone\'s immediate situation?',
      criteria: ['clear and open', 'tight but manageable', 'about to hit something'] },
  },
});

取自 tunnel_tactics.py:54

  1. risk打分

    How close is this aircraft to hitting something?

    • 0open tunnel
    • 1must commit to a move now
    • 2impact unavoidable

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    risk: { type: 'score', instructions: 'How close is this aircraft to hitting something?',
      criteria: ['open tunnel', 'must commit to a move now', 'impact unavoidable'] },
  },
});

同类的其他项目