Documentación oficial sobre Jest
- Instalaciones de desarrollo (super test es útil para probar Express)
npm install -D jest @types/jest ts-jest supertest
Documentación oficial sobre Jest
npm install -D jest @types/jest ts-jest supertest
Documentación oficial sobre Jest
npm install -D jest @types/jest ts-jest supertest
Más información - Docs Oficiales
npm i -D typescript @types/node
function create() { | |
// Load a map from a 2D array of tile indices | |
const level = [ | |
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], | |
[ 0, 1, 2, 3, 0, 0, 0, 1, 2, 3, 0 ], | |
[ 0, 5, 6, 7, 0, 0, 0, 5, 6, 7, 0 ], | |
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], | |
[ 0, 0, 0, 14, 13, 14, 0, 0, 0, 0, 0 ], | |
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], | |
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], |
""" | |
In this script, we demonstrate how to use DINOBot to do one-shot imitation learning. | |
You first need to install the following repo and its requirements: https://github.com/ShirAmir/dino-vit-features. | |
You can then run this file inside that repo. | |
There are a few setup-dependent functions you need to implement, like getting an RGBD observation from the camera | |
or moving the robot, that you will find on top of this file. | |
""" | |
import torch | |
import numpy as np |