Skip to content

Instantly share code, notes, and snippets.

@aalavian
aalavian / reading_sample.py
Created January 26, 2022 22:01
Sample Reader Snapshot attachment for Medium post!
dataset = S3Dataset("dataset_name", "0.0.1")
sample = self.dataset[idx] # get sample
sample_video = sample["video"] # get the scene of predicted and target trajectories