Giter Site home page Giter Site logo

gaopeng5 / dji-tello-collision-avoidance-pydnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dronefreak/dji-tello-collision-avoidance-pydnet

0.0 0.0 0.0 7.04 MB

This repo provides a collision avoidance approach for the DJI-Tello using PyDNet.

Python 100.00%

dji-tello-collision-avoidance-pydnet's Introduction

PyDNet based Collision Avoidance

This repository contains the source code of pydnet-based collision avoidance implemented on a DJI-Tello drone, as proposed in the paper "Towards real-time unsupervised monocular depth estimation on CPU", IROS 2018.

For more details on the research: arXiv

Requirements

  • Tensorflow 1.8 (recomended)
  • python packages such as opencv, matplotlib
  • PyDNet Framework
  • Monodepth Framework

Run PyDNet on Tello feed

To run pydnet, just launch

python3 tello_pydnet_interface.py --checkpoint_dir /checkpoint/IROS18/pydnet --resolution [1,2,3]

Please note that the velocity commands have been commented out. You could either uncomment them or create your own navigation algorithm.

Navigation Algorithm

Navigation towards the region of most depth. Yawing action performed till the maximum depth region is in and around 20% from the frame center.

Train PyDNet from Scratch

Requirements

  • monodepth (https://github.com/mrharicot/monodepth) framework by Clément Godard

After you have cloned the monodepth repository, add to it the scripts contained in training_code folder from this repository (you have to replace the original monodepth_model.py script). Then you can train pydnet inside monodepth framework.

Evaluate PyDNet on Eigen split

To get results on the Eigen split, just run

python3 experiments.py --datapath PATH_TO_KITTI --filenames PATH_TO_FILELIST --checkpoint_dir /checkpoint/IROS18/pydnet --resolution [1,2,3]

This script generates disparity.npy, that can be evaluated using the evaluation tools by Clément Godard

PyDNet for collision avoidance

dji-tello-collision-avoidance-pydnet's People

Contributors

mattpoggi avatar dronefreak 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.