Giter Club home page Giter Club logo

dpft's Introduction

Linux Docker Python

Dual Perspective Fusion Transformer

Prerequisites

  • ubuntu
  • docker
  • nvidia-docker

Dataset

  1. Get the dataset from https://github.com/kaist-avelab/K-Radar

  2. Structure the dataset according to

    K-Radar Data Structure
    .
    |
    +---data/
    |   |
    |   +---kradar/
    |   |   |
    |   |   +---raw/
    |   |   |   |
    |   |   |   +---1/
    |   |   |   |   |
    |   |   |   |   +---cam-front/
    |   |   |   |   |
    |   |   |   |   +---cam-left/
    |   |   |   |   |
    |   |   |   |   +---cam-rear/
    |   |   |   |   |
    |   |   |   |   +---cam-right/
    |   |   |   |   |
    |   |   |   |   +---description.txt
    |   |   |   |   |
    |   |   |   |   +---info_calib/
    |   |   |   |   |
    |   |   |   |   +---info_frames/
    |   |   |   |   |
    |   |   |   |   +---info_label/
    |   |   |   |   |
    |   |   |   |   +---info_label_v2/
    |   |   |   |   |
    |   |   |   |   +---info_matching/
    |   |   |   |   |
    |   |   |   |   +---os1-128/
    |   |   |   |   |
    |   |   |   |   +---os2-64/
    |   |   |   |   |
    |   |   |   |   +---radar_tesseract/
    |   |   |   |   |
    |   |   |   |   +---...
    |   |   |   |
    |   |   |   +---2, 3... 
    
    

Install

docker build -t dprt:0.0.1 .

Run

docker run \
    --name dprt \
    -it \
    --gpus all \
    -e DISPLAY \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v <path to repository>:/app \
    -v <path to data>:/data \
    dprt:0.0.1 bash

Prepare

python -m dprt.prepare --src /data/kradar/raw/ --cfg /app/config/kradar.json --dst /data/kradar/processed/

Train

python -m dprt.train --src /data/kradar/processed/ --cfg /app/config/kradar.json

Evaluate

python -m dprt.evaluate --src /data/kradar/processed/ --cfg /app/config/kradar.json --checkpoint /app/log/<path to checkpoint>

Citation

If DPFT is useful or relevant to your research, please kindly recognize our contributions by citing our paper:

@article{fent2024dpft,
    title={DPFT: Dual Perspective Fusion Transformer for Camera-Radar-based Object Detection}, 
    author={Felix Fent and Andras Palffy and Holger Caesar},
    journal={arXiv preprint arXiv:2404.03015},
    year={2024}
}

FAQ

No CUDA runtime is found
  1. Install nvidia-container-runtime

    sudo apt-get install nvidia-container-runtime
    
  2. Edit/create the /etc/docker/daemon.json with content:

    {
        "runtimes": {
            "nvidia": {
                "path": "/usr/bin/nvidia-container-runtime",
                "runtimeArgs": []
            } 
        },
        "default-runtime": "nvidia" 
    }
    
  3. Restart docker daemon:

    sudo systemctl restart docker
    

    Reference: https://stackoverflow.com/questions/59691207/docker-build-with-nvidia-runtime

    If this doesn't solve the problem, try:

    DOCKER_BUILDKIT=0 docker build -t dprt:0.0.1 .
    

    Reference: https://stackoverflow.com/questions/59691207/docker-build-with-nvidia-runtime

fatal error: cusolverDn.h: No such file or directory
  1. Export CUDA path:

    export PATH=/usr/local/cuda/bin:$PATH
    

    Reference: microsoft/DeepSpeed#2684

dpft's People

Contributors

tumftm avatar

Stargazers

Big-faced Cat avatar  avatar WBC-ML avatar  avatar  avatar  avatar Felix Nobis avatar Miao Zhang avatar  avatar Chen Peiwei avatar zzp avatar  avatar noringname avatar Guiyong Zheng avatar huhupy avatar Ruibin Zhang avatar  avatar  avatar Philipp Wolters avatar Felix Fent avatar Dominik Kulmer avatar  avatar  avatar  avatar

Watchers

 avatar

dpft's Issues

where's 'calib_camera_lidar.txt' file

Hi,

Thank you for your work! May I ask where I can find the 'calib_camera_lidar.txt' file? Since I downloaded the data from Google Driver and there's no 'calib_camera_lidar.txt' file inside 'info_calib' folder.

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.