Skip to content

Commit

Permalink
rm EpisodeSampler from viz
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 committed Aug 28, 2024
1 parent 1ce418e commit 11287b6
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lerobot/scripts/visualize_dataset_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,6 @@
from lerobot.common.utils.utils import init_logging


class EpisodeSampler(torch.utils.data.Sampler):
def __init__(self, dataset, episode_index):
from_idx = dataset.episode_data_index["from"][episode_index].item()
to_idx = dataset.episode_data_index["to"][episode_index].item()
self.frame_ids = range(from_idx, to_idx)

def __iter__(self):
return iter(self.frame_ids)

def __len__(self):
return len(self.frame_ids)


def run_server(
dataset: LeRobotDataset,
episodes: list[int],
Expand Down

0 comments on commit 11287b6

Please sign in to comment.