Coder Social home page Coder Social logo

luuthienxuan / zed-yolo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stereolabs/zed-yolo

0.0 1.0 0.0 9.38 MB

3D Object detection using Yolo and the ZED in Python and C++

Home Page: https://www.stereolabs.com/

License: MIT License

Makefile 0.29% C# 0.20% Batchfile 0.47% Python 6.54% Shell 0.22% C 76.71% Cuda 10.71% C++ 4.74% Objective-C 0.03% Dockerfile 0.09%

zed-yolo's Introduction

Stereolabs ZED - YOLO 3D

This package lets you use YOLO (v2 or v3), the deep learning object detector using the ZED stereo camera in Python 3 or C++.

1. Setup

The setup detailed setup instructions are available in the Darknet repository.

This is a brief explanation on how to enable the ZED camera support.

Prerequisites

Preparing Darknet installation

cuDNN

In order to get the best performance, cuDNN should be install before compiling darknet. Heads over to this TensorFlow documentation article which explains how to setup both CUDA and cuDNN on Ubuntu and Windows.

OpenCV

OpenCV binaries can be downloaded and install from opencv.org.

Alternatively, on Ubuntu :

sudo apt install pkg-config libopencv-dev

CMake

On Windows, download and install CMAKE using the binary available here.

On Ubuntu, cmake can be installed using the package manager, i.e : sudo apt install cmake

However the default version of cmake might be too old, it can easily be updated using the script (located in this repository):

sudo bash cmake_apt_update.sh

Compiling Darknet

Download and compile darknet, following the instructions:

ZED Support Using CMake (recommended)

If the ZED SDK is installed, CMake will automatically detect it and compile with the ZED support. During the CMake configuration, a message will confirm that the ZED SDK was found.

...
-- A library with BLAS API found.
-- ZED SDK enabled
-- Found OpenMP_C: -fopenmp (found version "4.5")
...

ZED support Using Makefile

To enable the ZED support in YOLO using the Makefile, simply enable GPU and ZED_CAMERA, it's also recommended to enable CUDNN for improved performances.

2. Launching the sample

Download the yolo weights, either yolov3 or yolov3-tiny for instance, and put them in the local folder.

./uselib data/coco.names cfg/yolov3.cfg yolov3.weights zed_camera

SVO files are also supported :

./uselib data/coco.names cfg/yolov3.cfg yolov3.weights /path/to/svo/file.svo

How to use YOLO 3D in Python

The native support is currently only in C++.

For the Python version please refer to instructions in zed_python_sample

Using Docker

A DockerFile is provided in the docker folder

Legacy repository

The original YOLO 3D C++ sources are available in the legacy branch

zed-yolo's People

Contributors

adesun avatar adujardin avatar alexeyab avatar avensun avatar bgasiorzewski avatar bonzoq avatar ilyaovodov avatar jinyu121 avatar judwhite avatar mhaghighat avatar ming-yang avatar nadeenudantha avatar oldgalileo avatar pjreddie avatar puneetkohli avatar r0l1 avatar rakeshjasti avatar rus-l avatar salbatron avatar saratrajput avatar sberan avatar sivagnanamn avatar stereomatchingkiss avatar testpersonal avatar tigerhawkvok avatar timonsku avatar tinohager avatar vinjn avatar vinliao avatar

Watchers

 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.