Code Monkey home page Code Monkey logo

semantic_bevnet's Introduction

BEVNet

Source code for our work "Semantic Terrain Classification for Off-Road Autonomous Driving"

TODOs

  • source code upload
  • model weights upload
  • dataset upload
  • Instructions on dataset generation
  • Instructions on inference

Datasets

Datasets should be put inside data/. For example, data/semantic_kitti_4class_100x100.

Download links

Running the pretrained models

Model weights

SemanticKITTI

RELLIS

Run the models

First extract the model weights

cd /path/to/bevnet/experiments
unzip /path/to/zip/file

To run the models on the validation set, cd to bevnet/bevnet, then run

# Single-frame model
python test_single.py --model_file ../experiments/kitti4_100/single/include_unknown/default-logs/model.pth.4 --test_env kitti4

# Recurrent model
python test_recurrent.py --model_file ../experiments/kitti4_100/recurrent/include_unknown/default-logs/model.pth.2 --test_env kitti4

Training

BEVNet-S

Example:

cd experiments
bash train_kitti4-unknown_single.sh kitti4_100/single/include_unknown/default.yaml <tag> arg1 arg2 ...

Logs and model weights will be stored in a subdirectory of the config file like this: experiments/kitti4_100/single/include_unknown/default-<tag>-logs/

  • <tag> is useful when you want to use the same config file but different hyperparameters. For example, if you want to do some debugging you can use set <tag> to debug.
  • arg1 arg2 ... are command line arguments supported by train_single.py. For example, you can pass --batch_size=4 --log_interval=100, etc.

BEVNet-R

The command line formats are the same as BEVNet-S Example:

cd experiments
bash train_kitti4-unknown_recurrent.sh kitti4_100/recurrent/include_unknown/default.yaml <tag> \
--n_frame=6 --seq_len=20 --frame_strides 1 10 20 \
--resume kitti4_100/single/include_unknown/default-logs/model.pth.4 \
--resume_epoch 0

Logs and model weights will be stored in a subdirectory of the config file experiments/kitti4_100/recurrent/include_unknown/default-<tag>-logs/.

semantic_bevnet's People

Contributors

jhlee0513 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.