🧪 새 튜토리얼이 계속 업데이트 중 — 로봇 팔부터 센서까지
본문으로 건너뛰기

8단계: pi0.5 배포 커맨드라인 ​

배포는 통일해서 lerobot-rollout을 사용합니다. 사용법과 파라미터는 커맨드라인 설명을 참고하세요.

Ubuntu ​

  • 기존 dataset 삭제(있는 경우)
Shell
sudo chmod 666 /dev/ttyACM*
sudo rm -rf /home/<사용자명>/.cache/huggingface/lerobot/<사용자명>/rollout_lerobot_my_dataset_shake_hands
export TOKENIZERS_PARALLELISM=false
  • 배포 커맨드라인
Shell
lerobot-rollout  \
  --strategy.type=base \
  --robot.type=so101_follower \
  --robot.port=/dev/ttyACM0 \
  --robot.cameras="{ front: {type: opencv, index_or_path: 0, width: 1280, height: 720, fps: 30, fourcc: "MJPG"}}" \
  --robot.id=my_follower_arm \
  --policy.path=/home/<사용자명>/Downloads/lerobot_output/shake/pi05/50K/pretrained_model \
  --task="Shake Hands" \
  --duration=60 \
  --display_data=false

Mac ​

  • 기존 dataset 삭제(있는 경우)
Shell
sudo rm -rf /Users/<사용자명>/.cache/huggingface/lerobot/<사용자명>/rollout_lerobot_my_dataset_shake_hands
  • 배포 커맨드라인
Shell
lerobot-rollout  \
  --strategy.type=base \
  --robot.type=so101_follower \
  --robot.port=/dev/tty.usbmodem5AAF2193061 \
  --robot.cameras="{front: {type: opencv, index_or_path: 0, width: 1280, height: 720, fps: 30, fourcc: "MJPG"}}" \
  --robot.id=my_follower_arm \
  --policy.freeze_vision_encoder=false \
  --policy.dtype=bfloat16 \
  --policy.compile_model=true \
  --policy.device=cpu \
  --policy.path=/Users/<사용자명>/Downloads/7-lerobot/shake/pi05/50K/pretrained_model \
  --task="Shake Hands" \
  --duration=60 \
  --display_data=false

image.png

image.png

추론이 매우 느린 이유 ​

  • dataset이 너무 작습니다

  • 그래픽 카드의 VRAM이 부족합니다. 50 시리즈 그래픽 카드가 필요합니다