Giter Club home page Giter Club logo

rtm3d_nuscenes's Introduction

RTM3D

Installation

Conda Environment

1. Create Conda Env

conda create -n capstone python=3.8 numpy cudatoolkit=10.2

2. Install PyTorch and Torchvision

Instalasi PyTorch dan Torchvision dapat mengikuti dua cara tergantung dari GPU yang digunakan. Untuk GPU terkini atau yang dipakai pada notebook dapat menginstall langsung melalui pip:

pip install torch==1.9.0 torchvision==0.10

Jika menggunakan GPU lama (Cuda Compute < 3.5), dapat mendownload .whl terlebih dahulu pada blog Nelson Liu. Setelahnya dapat melakukan installasi melalui pip:

pip install ./torch-1.9.0+cu102-cp38-cp38-linux_x86_64.whl
pip install ./torchvision-0.10.0+cu102-cp38-cp38-linux_x86_64.whl

3. Install Requirements

Package/library lainnya yang diperlukan dapat diinstal melalui requirements.txt:

pip install -r requirements.txt

4. Compile Deformable Convolution (DCNv2)

Clone DCNv2 for PyTorch > 1.8 from ruhyadi/DCNv2_18

cd src/lib/models/networks
rm -rf DCNv2
git clone https://github.com/ruhyadi/DCNv2_18 ./DCNv2

Build DCNv2 from scrach

cd DCNv2
python setup.py build develop

5. Compile IoU3D

Clone IoU3D from ruhyadi/iou3d

cd src/lib/utils
rm -rf iou3d
git clone https://github.com/ruhyadi/iou3d ./iou3d

Build IoU3D from scract

cd iou3d
python setup.py install

Failed on PyTorch 1.9.0, but can inference model.

Docker

Docker image can be build with:

docker build -t username/rtm3d:latest .

Or you can pull docker image (recommend) with:

docker pull -t ruhyadi/rtm3d:latest

Then you can run docker container in interactive mode with:

./runDocker.sh

Dataset Preparation

Convert nuScenes to KITTI

python src/tools/export_nuscenes.py

Generate Image List

python src/tools/create_sets_nuscenes.py

Convert nuScenes to COCO

python src/tools/nuscenes_to_coco.py

Inference

python ./src/faster.py \
    --demo ./demo_kitti_format/data/kitti/image \
    --calib_dir ./demo_kitti_format/data/kitti/calib/ \
    --load_model ./weights/model_res18_1.pth \
    --gpus 0 \
    --vis \
    --arch res_18

rtm3d_nuscenes's People

Contributors

ruhyadi avatar yutong-gannis avatar

Stargazers

 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.