touch-slide / README.md
carohiguera's picture
adding dataset and readme
466860e
metadata
license: cc-by-nc-4.0
tags:
  - sparsh
  - DIGIT
  - SSL pre-training
pretty_name: touch-slide

Dataset Details

Touch-Slide is a dataset inspired by YCB-Slide. Its purpose is to increase the amount of data from multiple DIGIT sensors for self-supervised learning (SSL) pre-training of the Sparsh model. Touch-Slide consists of human-sliding interactions on toy kitchen objects using the DIGIT sensor. We used 9 objects, as shown below, and collected 5 trajectories for each, resulting in a total of 180k frames.

Touch-Slide

This is a visual example of how the dataset was collected, showcasing sliding interactions that capture trajectories rich in shear forces:

a b

Uses

This dataset does not include labels and is intended for self-supervised training only. It is specifically designed for training the Sparsh models listed in the Hugging Face Sparsh collection.

Please refer to the Sparsh repo for further information about usage.

Dataset Structure

The dataset consists of 5 trajectories for each object. Each trajectory is stored as a pickle file, containing binarized tactile images. The structure is as follows:

Touch-Slide
β”œβ”€β”€ object_0 # eg: bread
β”‚   β”œβ”€β”€ dataset_0.pkl
β”‚   β”œβ”€β”€ ...
β”‚   β”œβ”€β”€ dataset_4.pkl
β”œβ”€β”€ object_1 # eg: corn
β”œβ”€β”€ ...

This is a sample code for loading the dataset in pickle format and extracting the images:

def load_pickle_dataset(file_dataset):
    with open(file_dataset, "rb") as f:
        all_frames = pickle.load(f)
    return all_frames

def load_bin_image(io_buf):
    img = Image.open(io.BytesIO(io_buf))
    img = np.array(img)
    return img

frames = load_pickle_dataset('bread/dataset_0.pkl')
img = load_bin_image(frames[0])

BibTeX entry and citation info

@inproceedings{
    higuera2024sparsh,
    title={Sparsh: Self-supervised touch representations for vision-based tactile sensing},
    author={Carolina Higuera and Akash Sharma and Chaithanya Krishna Bodduluri and Taosha Fan and Patrick Lancaster and Mrinal Kalakrishnan and Michael Kaess and Byron Boots and Mike Lambeta and Tingfan Wu and Mustafa Mukadam},
    booktitle={8th Annual Conference on Robot Learning},
    year={2024},
    url={https://openreview.net/forum?id=xYJn2e1uu8}
}