Skip to content

Commit

Permalink
fix pusht data_dir path
Browse files Browse the repository at this point in the history
  • Loading branch information
aliberts committed Mar 8, 2024
1 parent 54b05bf commit f1e2837
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lerobot/common/datasets/pusht.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
import torch
import torchrl
import tqdm
from diffusion_policy.common.replay_buffer import ReplayBuffer as DiffusionPolicyReplayBuffer
from diffusion_policy.env.pusht.pusht_env import pymunk_to_shapely
from tensordict import TensorDict
from torchrl.data.replay_buffers.samplers import SliceSampler
from torchrl.data.replay_buffers.storages import TensorStorage
from torchrl.data.replay_buffers.writers import Writer

from diffusion_policy.common.replay_buffer import ReplayBuffer as DiffusionPolicyReplayBuffer
from diffusion_policy.env.pusht.pusht_env import pymunk_to_shapely
from lerobot.common.datasets.abstract import AbstractExperienceReplay
from lerobot.common.datasets.utils import download_and_extract_zip

Expand Down Expand Up @@ -111,7 +111,7 @@ def __init__(
)

def _download_and_preproc(self):
raw_dir = self.data_dir / "raw"
raw_dir = self.data_dir.parent / f"{self.data_dir.name}_raw"
zarr_path = (raw_dir / PUSHT_ZARR).resolve()
if not zarr_path.is_dir():
raw_dir.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit f1e2837

Please sign in to comment.