Code Monkey home page Code Monkey logo

fowm's Introduction

Finetuning Offline World Models in the Real World

Official PyTorch implementation of Finetuning Offline World Models in the Real World (CoRL 2023 Oral)

Paper | Website | Dataset (sim) | Dataset (real)

Framework

Installation

Install dependencies using conda:

conda env create -f environment.yaml
conda activate fowm

Training

After installing dependencies, you can train an agent by

python src/train_off2on.py task=antmaze-medium-play-v2

Supported tasks from D4RL: antmaze-medium-play-v2, antmaze-medium-diverse-v2, hopper-medium-v2, hopper-medium-replay-v2.

To run experiments on xArm tasks, first download our released offline datasets

python scripts/download_datasets.py

Datasets will be saved at the directory data:

data
├── xarm_lift_medium
├── xarm_lift_medium_replay
├── xarm_push_medium
└── xarm_push_medium_replay

Then start training with

python src/train_off2on.py modality=all task=xarm_lift dataset_dir=data/xarm_lift_medium_replay

You can choose xarm_lift or xarm_push as task and use dataset_dir to specify the offline dataset.

The training script supports both local logging as well as cloud-based logging with Weights & Biases. To use W&B, provide a key by setting the environment variable WANDB_API_KEY=<YOUR_KEY> and add your W&B project and entity details to cfgs/config.yaml.

Citation

If you find our work useful in your research, please consider citing with the following BibTeX:

@inproceedings{feng2023finetuning,
  title={Finetuning Offline World Models in the Real World},
  author={Feng, Yunhai and Hansen, Nicklas and Xiong, Ziyan and Rajagopalan, Chandramouli and Wang, Xiaolong},
  booktitle={Proceedings of the 7th Conference on Robot Learning (CoRL)},
  year={2023}
}

License & Acknowledgements

This repository is licensed under the MIT license. The codebase is based on the original implementations of TD-MPC.

fowm's People

Contributors

fyhmer avatar tmats avatar

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.