Skip to content

Instantly share code, notes, and snippets.

@maujim
Last active April 20, 2025 18:54
Show Gist options
  • Save maujim/78ee3f6d4737d6d03823f39f585d9991 to your computer and use it in GitHub Desktop.
Save maujim/78ee3f6d4737d6d03823f39f585d9991 to your computer and use it in GitHub Desktop.
code for robot hackathon demo
uv run lerobot/lerobot/scripts/train.py \
--dataset.repo_id=maujim/place_bagel_on_jig3 \
--policy.type=act \
--output_dir=outputs/train/dot-30k \
--job_name=dot-30k \
--policy.device=cuda --steps=30000
uv run lerobot/lerobot/scripts/train.py \
--dataset.repo_id=maujim/place_bagel_on_jig3 \
--policy.type=act \
--output_dir=outputs/train/dot-30k \
--job_name=dot-30k \
--policy.device=cuda --steps=30000
@ZhiYingSun
Copy link

ZhiYingSun commented Apr 20, 2025

from fish_audio_sdk import Session, TTSRequest, ReferenceAudio

session = Session("your_api_key")

# Option 1: Using a reference_id
with open("output1.mp3", "wb") as f:
    for chunk in session.tts(TTSRequest(
        reference_id="MODEL_ID_UPLOADED_OR_CHOSEN_FROM_PLAYGROUND",
        text="Hello, world!"
    )):
        f.write(chunk)

@ZhiYingSun
Copy link

python lerobot/scripts/control_robot.py \
  --robot.type=so100 \
  --control.type=record \
  --control.fps=30 \
  --control.single_task="Place bagel on jig" \
  --control.repo_id=${HF_USER}/place_bagel_on_jig3 \
  --control.tags='["so100","Place Bagel"]' \
  --control.warmup_time_s=6 \
  --control.episode_time_s=20 \
  --control.reset_time_s=7 \
  --control.num_episodes=20 \
  --control.push_to_hub=true --control.display_data=true --control.resume=true

@ZhiYingSun
Copy link

python lerobot/scripts/control_robot.py \
  --robot.type=so100 \
  --control.type=teleoperate --control.display_data=true

@ZhiYingSun
Copy link

python lerobot/scripts/control_robot.py
--robot.type=so100 \
--control.type=record \
--control.fps=30
--control.single_task="Go to the Red Jam."
--control.repo_id=${HF_USER}/TraveltoJam4
--control.tags='["so100","GotoJam"]'
--control.warmup_time_s=6
--control.episode_time_s=12
--control.reset_time_s=7
--control.num_episodes=5
--control.push_to_hub=true --control.resume=true --control.display_data=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment