Instructions to use ReasoningKingdom/LITOperator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LeRobot
How to use ReasoningKingdom/LITOperator with LeRobot:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Sync the cleaned tree
Browse files1234567891011121314151617181920212223242526272829303132333435#!/usr/bin/env python3"""lit_robot_api.py — the LeRobot glue for lit_robot.LITOperator.
from lit_robot_api import default_operator op = default_operator() program = op(frame) # [action, ...] open-loop
A frame is the usual LeRobot observation dict: cameras, `observation.state`, task. The community tree's canonical codec root is`1g0rrr/demo3_frames_grab3`."""import osimport sys
HERE = os.path.dirname(os.path.abspath(__file__))SANDBOX = os.path.dirname(HERE)REPO = os.path.dirname(SANDBOX)sys.path.insert(0, os.path.join(REPO, "lit_operator"))sys.path.insert(0, SANDBOX)
from lit_robot import LITOperator # noqa: E402
REPO_ID = "lerobot/community_dataset_v3"ROOT = "1g0rrr/demo3_frames_grab3"TREE = os.path.join(REPO, "weights", "LITOperator-community_open_selfboot.safetensors")
def lerobot_operator(tree=TREE, repo=REPO_ID, root=ROOT): from lit_stream import make_codec codec, _info = make_codec(repo, root) return LITOperator(tree, codec)
default_operator = lerobot_operatorsandbox/lerobot_host/lit_robot_api.pyAdded+35