Coder Social home page Coder Social logo

syc-hjy / mvitac Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ligerfotis/mvitac

0.0 0.0 0.0 961 KB

Self-Supervised Visual-Tactile Representation Learning via Multimodal Contrastive Training

Home Page: https://sites.google.com/view/mvitac/home

Python 18.17% Jupyter Notebook 81.83%

mvitac's Introduction

MViTac: Multimodal Visual-Tactile Representation Learning through Self-Supervised Contrastive Pre-Training

The repository was jointly developed with Vedant Dave

Project Website

This repository contains the implementation for training and evaluating the MVitAC model. The model is trained using contrastive learning on the Calandra dataset. The code is developed and tested on Ubuntu 22.04 with Python 3.10.

Overview

  1. mvitac.ipynb: This notebook contains the procedures for pretraining the MViTac model using contrastive learning. It covers configuration setup, model architecture, training, and evaluation.
  2. evaluate.ipynb: A notebook dedicated to evaluating pretrained models. It provides metrics and visual results to understand the model's performance.
  3. contrastive_learning_dataset.py: A script that prepares datasets specifically for contrastive learning.
  4. generate_dataset.py: This script generates datasets, likely preprocessing and structuring data in a way suitable for training and evaluation.
  5. model.py: Defines the architecture of the MVitAC model.
  6. utils.py: Contains utility functions that assist in training, evaluation, and other tasks.
  7. config.py: Contains configuration settings and parameters that dictate various aspects of training and evaluation.

How to Use

  1. Setup: Ensure all dependencies are installed. This can typically be done using a requirements.txt file.
  2. Data Preparation: - Download the dataset from this link and place it in the mvitac/calandradataset/ folder. Use the generate_dataset.py script to prepare your data. This will preprocess and structure your data into a suitable format.
  3. Training: Open the mvitac.ipynb notebook and follow the steps to pretrain the MViTac model.
  4. Evaluation: Once the model is trained, use the evaluate.ipynb notebook to train a linear classifier on the top of the learned representations to evaluate its performance on test data.
  5. Utilities: The utils.py script contains helper functions. It's integrated into the training and evaluation notebooks, so there's no need to run it separately.

Notes

  • Ensure the data paths in the configuration are correctly set.
  • Monitor the training progress to ensure convergence. Adjust hyperparameters in config.py if necessary.
  • For custom datasets, ensure they are structured correctly and update data paths in the configuration.

Cite

@misc{dave2024multimodal,
  title={Multimodal Visual-Tactile Representation Learning through Self-Supervised Contrastive Pre-Training}, 
  author={Vedant Dave and Fotios Lygerakis and Elmar Rueckert},
  year={2024},
  eprint={2401.12024},
  archivePrefix={arXiv},
  primaryClass={cs.RO}

}

License

MIT License

Copyright (c) [2023] [Chair of Cyber-Physical Systems]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.