sitr_dataset / README.md
hgupt3's picture
Update README.md
06f7191 verified
metadata
license: mit
language:
  - en
task_categories:
  - zero-shot-image-classification
  - zero-shot-classification
  - feature-extraction
  - image-feature-extraction
  - tabular-classification
  - tabular-regression
  - depth-estimation
tags:
  - tactile
  - robotics
pretty_name: Sensor-Invariant Tactile Representation
size_categories:
  - 1M<n<10M

SITR Dataset & Weights

This repository hosts both the dataset and pre-trained model weights for the Sensor-Invariant Tactile Representation (SITR) paper. The dataset supports training and evaluating models for sensor-invariant tactile representations across simulated and real-world settings, while the pre-trained weights enable immediate deployment and fine-tuning for various tactile perception tasks.

The codebase implementing SITR is available on GitHub: SITR Codebase

For more details on the underlying methods and experiments, please visit our project website and read the arXiv paper.


Pre-trained Model Weights

The pre-trained model weights are available for immediate use in inference or fine-tuning. These weights were trained on our large-scale simulated dataset and have been validated across multiple real-world sensors.

Downloading the Weights

wget https://huggingface.co/datasets/hgupt3/sitr_dataset/resolve/main/checkpoints.zip
unzip checkpoints.zip -d your_desired_directory

Weights Directory Structure

The weights directory contains the following structure:

checkpoints/
β”œβ”€β”€ SITR_B18.pth              # Base pre-trained model weights (371MB)
β”œβ”€β”€ classification/           # Classification task weights
β”‚   └── SITR_base/            # Base model with fine-tuned head for classification on 1 sensor
β”‚       β”œβ”€β”€ sensor_0000.pth   # Weights for sensor 0
β”‚       β”œβ”€β”€ sensor_0001.pth   # Weights for sensor 1
β”‚       └── ...
└── pose_estimation/          # Pose estimation task weights
    └── SITR_base/            # Base model with fine-tuned head for classification on 1 sensor
        β”œβ”€β”€ sensor_0000.pth   # Weights for sensor 0
        β”œβ”€β”€ sensor_0001.pth   # Weights for sensor 1
        └── ...

You can use the SITR_B18.pth weight for:

  1. Zero-shot inference on new tactile data
  2. Fine-tuning for specific tasks
  3. Feature extraction for downstream applications

For detailed usage instructions and examples, please refer to the SITR Codebase.


Dataset Overview

The SITR dataset consists of three main parts:

  1. Simulated Tactile Dataset
    A large-scale synthetic dataset generated using physics-based rendering (PBR) in Blender. This dataset spans 100 unique simulated sensor configurations with tactile signals, calibration images, and corresponding surface normal maps. It includes 10K unique contact configurations generated using 50 high-resolution 3D meshes of common household objects, resulting in a pre-training dataset of 1M samples.

  2. Classification Tactile Dataset
    Data collected from 7 real sensors (including variations of GelSight Mini, GelSight Hex, GelSight Wedge, and DIGIT). For the classification task, 20 objects are pressed against each sensor at various poses and depths, accumulating 1K tactile images per object (140K images in total, with 20K per sensor). We used 16 objects for our classification experiments, as some items were deemed unsuitable (this was decided before experimentation). The dataset is provided as separate train (80%) and test sets (20%).

  3. Pose Estimation Tactile Dataset
    For pose estimation, tactile signals are recorded using a modified Ender-3 Pro 3D printer equipped with 3D-printed indenters. This setup provides accurate ground truth (x, y, z coordinates) for contact points, where all coordinates are specified in millimeters. Data were collected for 6 indenters across 4 sensors, resulting in 1K samples per indenter (24K images in total, 6K per sensor). This dataset is also organized into train (80%) and test sets (20%).


Download and Setup

Simulated Tactile Dataset

The simulated dataset is split into two parts due to its size:

  • renders_part_aa.zip
  • renders_part_ab.zip

Download both files using:

wget https://huggingface.co/datasets/hgupt3/sitr_dataset/resolve/main/renders_part_aa
wget https://huggingface.co/datasets/hgupt3/sitr_dataset/resolve/main/renders_part_ab

To merge and unzip:

  1. Merge the parts into a single zip file:
cat renders_part_aa renders_part_ab > renders.zip
rm renders_part_aa renders_part_ab  # Remove the split files
  1. Unzip the merged file:
unzip renders.zip -d your_desired_directory
rm renders.zip

Real-World Datasets (Classification & Pose Estimation)

Download the classification dataset:

wget https://huggingface.co/datasets/hgupt3/sitr_dataset/resolve/main/classification_dataset.zip
unzip classification_dataset.zip -d your_desired_directory
rm classification_dataset.zip

Download the pose estimation dataset:

wget https://huggingface.co/datasets/hgupt3/sitr_dataset/resolve/main/pose_dataset.zip
unzip pose_dataset.zip -d your_desired_directory
rm pose_dataset.zip

Each dataset contains:

  • train_set/ (80% of the data)
  • test_set/ (20% of the data)

File Structure

1. Simulated Tactile Dataset

data_root/
β”œβ”€β”€ sensor_0000/
β”‚   β”œβ”€β”€ calibration/          # Calibration images
β”‚   β”‚   β”œβ”€β”€ 0000.png          # Background image
β”‚   β”‚   β”œβ”€β”€ 0001.png
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ samples/              # Tactile sample images
β”‚   β”‚   β”œβ”€β”€ 0000.png
β”‚   β”‚   β”œβ”€β”€ 0001.png
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ dmaps/                # (Optional) Depth maps
β”‚   β”‚   β”œβ”€β”€ 0000.npy
β”‚   β”‚   └── ...
β”‚   └── norms/                # (Optional) Surface normals
β”‚       β”œβ”€β”€ 0000.npy
β”‚       └── ...
β”œβ”€β”€ sensor_0001/
└── ...

2. Classification Dataset

Each of the train_set/ and test_set/ directories follows this structure:

train_set/  (or test_set/)
β”œβ”€β”€ sensor_0000/
β”‚   β”œβ”€β”€ calibration/          # Calibration images
β”‚   β”œβ”€β”€ samples/              # Organized by class
β”‚   β”‚   β”œβ”€β”€ class_0000/
β”‚   β”‚   β”‚   β”œβ”€β”€ 0000.png
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   β”œβ”€β”€ class_0001/
β”‚   β”‚   β”‚   β”œβ”€β”€ 0000.png
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   └── ...
β”œβ”€β”€ sensor_0001/
└── ...

3. Pose Estimation Dataset

Each of the train_set/ and test_set/ directories is structured as follows:

train_set/  (or test_set/)
β”œβ”€β”€ sensor_0000/
β”‚   β”œβ”€β”€ calibration/          # Calibration images
β”‚   β”œβ”€β”€ samples/              # Tactile sample images
β”‚   β”‚   β”œβ”€β”€ 0000.png
β”‚   β”‚   β”œβ”€β”€ 0001.png
β”‚   β”‚   └── ...
β”‚   └── locations/            # Pose/Location data
β”‚       β”œβ”€β”€ 0000.npy
β”‚       β”œβ”€β”€ 0001.npy
β”‚       └── ...
β”œβ”€β”€ sensor_0001/
└── ...

Citation

If you use this dataset or model weights in your research, please cite:

@misc{gupta2025sensorinvarianttactilerepresentation,
    title={Sensor-Invariant Tactile Representation},
    author={Harsh Gupta and Yuchen Mo and Shengmiao Jin and Wenzhen Yuan},
    year={2025},
    eprint={2502.19638},
    archivePrefix={arXiv},
    primaryClass={cs.RO},
    url={https://arxiv.org/abs/2502.19638}
}

License

This dataset and model weights are licensed under the MIT License. See the LICENSE file for details.

If you have any questions or need further clarification, please feel free to reach out.