fix
This commit is contained in:
parent
d878ec27d5
commit
8b4a1c7a7f
|
@ -41,8 +41,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libfdk-aac-dev \
|
libfdk-aac-dev \
|
||||||
libopus-dev \
|
libopus-dev \
|
||||||
libsvtav1-dev libsvtav1enc-dev libsvtav1dec-dev \
|
libsvtav1-dev libsvtav1enc-dev libsvtav1dec-dev \
|
||||||
libdav1d-dev \
|
libdav1d-dev
|
||||||
python3-dev
|
|
||||||
|
|
||||||
|
|
||||||
# Install gh cli tool
|
# Install gh cli tool
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import enum
|
import enum
|
||||||
import sys
|
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
|
@ -265,9 +264,9 @@ class DynamixelMotorsBus:
|
||||||
except Exception:
|
except Exception:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
print(
|
print(
|
||||||
"\nTry running `python lerobot/common/robot_devices/motors/dynamixel.py` to make sure you use the correct port."
|
"\nTry running `python lerobot/common/robot_devices/motors/dynamixel.py` to make sure you are using the correct port.\n"
|
||||||
)
|
)
|
||||||
sys.exit(1)
|
raise
|
||||||
|
|
||||||
self.port_handler.setBaudRate(BAUD_RATE)
|
self.port_handler.setBaudRate(BAUD_RATE)
|
||||||
self.port_handler.setPacketTimeoutMillis(TIMEOUT_MS)
|
self.port_handler.setPacketTimeoutMillis(TIMEOUT_MS)
|
||||||
|
|
|
@ -20,21 +20,6 @@ import pytest
|
||||||
from lerobot.scripts.visualize_dataset import visualize_dataset
|
from lerobot.scripts.visualize_dataset import visualize_dataset
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
|
||||||
"repo_id",
|
|
||||||
["lerobot/pusht"],
|
|
||||||
)
|
|
||||||
def test_visualize_dataset(tmpdir, repo_id):
|
|
||||||
rrd_path = visualize_dataset(
|
|
||||||
repo_id,
|
|
||||||
episode_index=0,
|
|
||||||
batch_size=32,
|
|
||||||
save=True,
|
|
||||||
output_dir=tmpdir,
|
|
||||||
)
|
|
||||||
assert rrd_path.exists()
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"repo_id",
|
"repo_id",
|
||||||
["lerobot/pusht"],
|
["lerobot/pusht"],
|
||||||
|
|
Loading…
Reference in New Issue