Giter Club home page Giter Club logo

adapt's Introduction

ADAPT

PyTorch implementation of the paper "ADAPT: Vision-Language Navigation with Modality-Aligned Action Prompts" (CVPR 2022).

Prerequisites

Installation

The environment installation of ADAPT follows that in Recurrent-VLN-BERT.
1.Install the Matterport3D Simulator. Notice that this code uses the old version (v0.1) of the simulator.
2. the versions of packages in the environment can be found here.
3. Install the Pytorch-Transformers of this version.

Data Preparation

Please follow the instructions below to prepare the data in directories:

R2R Navigation

Two-phase Training

At the first stage, run the following scripts until the performance is converged in Val Unseen:

PREFIX=baseline python r2r_src/train.py --vlnbert prevalent --aug data/prevalent/prevalent_aug.json --batchSize 16 --lr 1e-5 

At the second stage, run the following scripts using the Best Val Unseen model at the first stage:

PREFIX=ADAPT python r2r_src/train.py --vlnbert prevalent --aug data/prevalent/prevalent_aug.json --batchSize 16 --lr 1e-6   --ADAPT --load snap/baseline/state_dict/best_val_unseen --finetune

Acknowledgements

The implementation relies on resources from Recurrent-VLN-BERT. We thank the original authors for their open-sourcing.

adapt's People

Contributors

expectorlin avatar

Stargazers

Shuo Feng avatar  avatar Jia Zeng avatar learning... avatar zzp avatar yan avatar Guanqi Chen avatar Mingjie avatar  avatar

Watchers

 avatar

adapt's Issues

R2R Test Unseen

Thank you so much for the great work you do. how can I get the results of the Test Unseen? How would you generate the predicted json file?

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.