GithubHelp home page GithubHelp logo

tianboji / ivcds Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14.01 MB

Code for paper "IvCDS: An End-to-end Driver Simulator For Personal In-vehicle Conversational Assistant"

License: Apache License 2.0

Shell 2.68% Python 61.02% Jupyter Notebook 36.30%
human-vehicle-interaction natural-language-processing task-oriented-dialogue user-simulation

ivcds's Introduction

IvCDS: An End-to-end Driver Simulator For Personal In-vehicle Conversational Assistant

This repository is the code for our paper (see this link).

Citation (BibTeX)

If you are interested in our work, please cite it by:

@Article{ijerph192315493,
    AUTHOR = {Ji, Tianbo and Yin, Xuanhua and Cheng, Peng and Zhou, Liting and Liu, Siyou and Bao, Wei and Lyu, Chenyang},
    TITLE = {IvCDS: An End-to-End Driver Simulator for Personal In-Vehicle Conversational Assistant},
    JOURNAL = {International Journal of Environmental Research and Public Health},
    VOLUME = {19},
    YEAR = {2022},
    NUMBER = {23},
    ARTICLE-NUMBER = {15493},
    URL = {https://www.mdpi.com/1660-4601/19/23/15493},
    ISSN = {1660-4601},
    DOI = {10.3390/ijerph192315493}
}

File Structure

  • Files for IvCDS are stored in directory simulator/, including the ablation study.

  • Files for baselines are stored in directory baselines/

  • Directory data/ contains the processed KVRET dataset

Requirement

  • Python=3.8
  • Pytorch
  • Transformers=4.18.0

Our model: IvCDS

  • Files for training, inference and ablation study are available in directory simulator/.

  • run_clm.py is the file for training, while 0-train-gpt-2.sh is the running script.

  • inference/0-infer-gpt2.sh is the script for inference.

  • inference/eval.ipynb is a jupyter file for the evaluation after IvCDS's training&inference.

  • Directory ablation/ includes all scripts for ablation study. We provide three example scripts, please check any of them.

Baseline models

  • Files For baselines is under directory baselines/.

  • We use T5-large as an example, where 0-train-ALL-t5-large.sh and 1-eval-ALL-t5-large.sh are the files for training and inference, respectively.

  • The evaluation of baselines uses the exact same file as IvCDS, see inference/eval.ipynb.

  • All baseline models in this paper are pretrained, and they can be found on HuggingFace Models.

Notes

  1. Before running a bash script, please modify the paths in it to the paths of your own environment.
  2. The training of IvCDS takes about two hours on a single RTX 3090.
  3. Checkpoints for models in our paper are available in this link.
  4. The paper is still under review and this repository is at an early stage. The instructions may still lack details, and we will update it in the future.
  5. If you encounter any problem, please email me by [email protected].

ivcds's People

Contributors

tianboji avatar

Watchers

 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.