Git Product home page Git Product logo

wesnet's Introduction

WESNet(Weakly Supervised Extrinsics Self-Calibration of SVS)

This is the implementation of WESNet using PyTorch. Here is our paper.

Network Architecture

Requirements

For training:

  • CUDA
  • PyTorch
  • Other requirements (such as visiualization of loss curve) pip install -r requirements.txt

For data preprocessing:

  • OpenCV
  • Eigen

Dataset Download

Download our surround-view dataset containing original fisheye images from here (password:cblf), and extract. The labels of the calibration site images consisting of the 2D pixel coordinates and corresponding 3D world coordinates of the selected corners are also provided in 'C_f.zip'.

Data Preparation

  • Labels: Before training, make sure that each lable file contains the same number of point pairs, we suggest keeping at least 15 pairs.
  • Augmentation: Add the disturbance within a certain range to the original dataset for data augmentation. To prove efficiency, we implemented it in C++ (see prepare_training.cpp), and don't forget to change the directory to your own directory when reading and saving images.

Train

python train.py --dataset_directory $TRAIN_DIRECTORY --batch_size $BATCH_SIZE --enable_visdom

TRAIN_DIRECTORY is the directory of training data generated in data preparation.

--enable_visdom is to help visiualize the loss curve in the training process.

View config.py for more argument details (num_epochs, learning rate, etc).

Inference

python inference.py --image_path $IMAGE_PATH$ --detector_weights $DETECTOR_WEIGHTS

IMAGE_PATH is the directory of testing data generated in data preparation, in which the organization of folders and names of testing images is the same as the training set.

DETECTOR_WEIGHTS is the model of trained weights.

Demo Video

See our project website to see some demo videos.

wesnet's People

Contributors

dokidoki-yo 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.