Code Monkey home page Code Monkey logo

carkeypoints's Introduction

CarKeypoints

This repository contains inference code for using a modified stacked-hourglass to detect semantic keypoints on cars.

The network outputs a likelihood of keypoint presence over every pixel of an input image (the input image is a 64 x 64 car bounding box).

Here is a 3D wireframe with reference keypoints.

Setup

This code assumes you have the following packages installed.

  • Torch7
  • Torch packages: nn, cunn, cudnn, image, nngraph

Downloading the pre-trained model

Download the pre-trained model here.

Running the inference code

To perform inference on a set of images, first edit valid.txt and add paths to the images you need to run inference on. These images must only contain cropped car bounding boxes (i.e., from any image that contains a car, pick only one car bounding box and crop the region of the image contained within that bounding box). These are the only kind of images the model has been trained on.

Then, run the inference script.

inference.lua

This will write a results.txt file (you can edit the name and path of this output file in inference.lua).

Running with arguments

You must have a valid.txt file and a model.t7 following the instructions above. All arguments must be used. If you do not you must create a absolute path dir /abosolute/path/to/ with a valid.txt file and a model.t7. The generated results.txt will also be located there

Torch 7

th inference.lua ./valid.txt ./model.t7 ./results.txt

Lua

lua inference.lua ./valid.txt ./model.t7 ./results.txt

carkeypoints's People

Contributors

junaidcs032 avatar krrish94 avatar nagakanaparthy 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.