Giter Site home page Giter Site logo

ajay1994 / introtocomputervision Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tanmaniac/introtocomputervision

0.0 1.0 0.0 1.35 MB

C++/CUDA solutions, slides, and resources for Udacity's Intro to Computer Vision (UD810) course.

License: MIT License

CMake 1.60% Dockerfile 0.33% Shell 0.24% C++ 80.31% Cuda 17.52%

introtocomputervision's Introduction

Intro to Computer Vision (Udacity UD810)

Lecture slides, problem sets, and C++ solutions to UD810.

Prerequisites

I try to accelerate all of the assignments with CUDA, so you will need an Nvidia GPU along with CUDA toolkit installed. This repository is developed on:

  • Ubuntu 17.10 + CUDA 9.1; Intel Core i7 6800k + GeForce GTX 1080

You will need:

From here, there are two options: building in Docker or just building locally on a host machine.

Containerized Build in Docker (Recommended!)

This is the suggested approach to building this project since all of the dependencies are included in the Docker image.

  • Install Docker-CE as described for your distribution on the Docker docs.
  • Install nvidia-docker2 as described in the nvidia-docker docs. The container provided in this repo needs the nvidia Docker runtime to run.
  • Clone this repo and build/run the Docker container:
git clone --recursive https://github.com/tanmaniac/IntroToComputerVision.git
cd IntroToComputerVision/Docker
# Build the Docker container
./build.sh
# Run the container
./run.sh

This will drop you into a shell where you can follow the build steps below. The IntroToComputerVision directory (this one) is mapped to ${HOME}/IntroToComputerVision in the Docker container.

Build on host

  • Build OpenCV 3.4.1 as directed in the OpenCV documentation. Make sure to add the -DWITH_CUDA=ON CMake flag to compile CUDA features.
  • Install Eigen as described in its documentation.
  • gnuplot, which you can install from your distro repository. On Ubuntu:
sudo apt install gnuplot

Building

# Navigate to wherever you cloned this repo first
mkdir build && cd build
cmake ..
make -j

If you want to use NVIDIA debugging tools, like cuda-memcheck or the NVIDIA Visual Profiler, compile with Debug flags:

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j

Note that this increases runtime of some kernels by around 100x, so only compile in debug mode if you need it.

Running

Build outputs are placed in the bin directory. All of the executables are configured with YAML files in the config directory. You can edit these to change the input parameters to each of the assignments. For example, with Problem Set 0, all you need to do (after building) is:

cd bin
./ps0

introtocomputervision's People

Contributors

tanmaniac 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.