游戏与仿真
基于MuJoCo的纯摄像头自主无人机,内置2.5Hz运行的小型TypeSafe Jev判断模型。
Camera-only autonomous drone in MuJoCo with a small judgment model (TypeSafe Jev) in the loop at 2.5Hz
from typesafe_sdk import TypeSafeClient, Choice, Noul, Score链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
risk打分How dangerous is the drone's immediate situation?
0 — clear and open1 — tight but manageable2 — about to hit somethingimport { 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'] },
},
});risk打分How close is this aircraft to hitting something?
0 — open tunnel1 — must commit to a move now2 — impact unavoidableimport { 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'] },
},
});