Git Product home page Git Product logo

nle-dm's Introduction

NLE-DM

The official pytorch implementation of NLE-DM (Natural-Language Explanations for Decision Making).

image

Usage

  • Clone this repo and prepare the environment.
git clone https://github.com/lab-sun/NLE-DM.git
cd NLE_DM
conda env create -f environment.yml --name NLE_DM
conda activate NLE_DM
  • Download the dataset, create the foler Data and release it into the Data;
BDD10K for the pre-training and obtain the semantic segmentation of road scene
BDD_OIA for the Act-Rea sub-network (jointly predict actions and reasons)
BDD_AD for the Act-Desc sub-network  (jointly predict actions and descriptions)
  • Download the pretrained weight, create the foler weight and put into the weight (optional);

  • To train the network, select the appropriate .py in the folder of train

pre_train.py: To pretrain the network.
train_act_exp.py: To train the Act-Rea sub-network
train_act_des.py: To train the Act-Desc sub-network
  • To obatin the prediction results, select the appropriate .py in the folder of predict
predict_act_rea.py: To jointly predict the driving actions and correpsonding reasons.
predict_act_desc.py: To jointly predict the driving actions and environment descriptions.

Dataset (Download)

Download the datasets and then extract it in the folder of Data

Pretrained weights (Download)

bdd10k_resnet50_1.pth: weight of pre-training on BDD10K
act_rea_resnet50.pth: weight of Act-Rea sub-network
act_des_resnet50.pth: weight of Act-Desc sub-network (backbone: ResNet 50)

Note

Citation

If you use our NEL-DM network or BDD-AD dataset in an academic work, please cite:

@ARTICLE{10144484,
  author={Feng, Yuchao and Hua, Wei and Sun, Yuxiang},
  journal={IEEE Transactions on Intelligent Transportation Systems}, 
  title={NLE-DM: Natural-Language Explanations for Decision Making of Autonomous Driving Based on Semantic Scene Understanding}, 
  year={2023},
  volume={},
  number={},
  pages={1-12},
  doi={10.1109/TITS.2023.3273547}}

If you have any questions, pleas feel free to contact us!

Contact: [email protected]

Website: https://yuxiangsun.github.io/

nle-dm's People

Contributors

fyctime052 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mshosseiniazad

nle-dm's Issues

BDD-OIA dataset

Dear Authors,
Thank you for your excellent work!
While training the Act-Rea sub-network, I downloaded the "lastframe" of the BDD-OIA dataset and encountered an issue. In the "train_25k_images_actions.json" file, the number of action categories is listed as 5, which contrasts with the paper stating 4 action categories. Could you please advise on how to resolve this discrepancy?
Thank you very much for your consideration!

nuScene data

Hello, thank you for such excellent work.
In your paper, you tested your model on nuScene data that you annotated, but I am sorry I didn't find it in the current repository. Could you please provide the nuScene data you annotated?

BDD_AD dataset and BDD_OIA dataset

Hello, thank you for such excellent work. I want to ask you a question, why not align the BDD_AD dataset with the BDD_OIA dataset, that is, jointly optimize the two sub-networks and train two tasks together?

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.