Giter VIP home page Giter VIP logo

yolov2-pytorch's Introduction

YOLOv2 in PyTorch

Another PyTorch implementation of YOLOv2 object detection algorithm. I tried to make it a bit cleaner than some other implementations.

  • There is a Jupyter notebook that you can use to test your own images or run the pretrained models on your camera.
  • I tested this on PyTorch 0.4.1 but it should also work with 0.4.0.
  • Training is not implemented. I started working on it but I never got to finish it.

How to run the notebook?

  • You need to download pretrained weights in order to run the notebook. You can download them here:
    YOLOv2 608x608 COCO
    Tiny YOLO VOC 2007+2012
  • After that, you need to create a folder named weights and put them inside this folder.
  • Now you should be able to run it if you have the required packages installed.

An easy way to get required packages installed

  1. You should have Anaconda installed on your machine: https://conda.io/docs/user-guide/install/index.html
  2. Download environment.yml file by running this command:
wget https://raw.githubusercontent.com/furkanu/yolov2-pytorch/master/environment.yml
  1. Then, run the command below to create the conda environment with the required packages installed. The environment will be named "yolov2-pytorch" but you can change it by editing the first line of the environment.yml file.
conda env create -f environment.yml
  1. After your environment has been created successfully, you can run these commands to add a kernel that you can select when running the notebook.
#replace "yolov2-pytorch" with your environment name if you changed it.
source activate yolov2-pytorch 
python -m ipykernel install --user --name yolov2-pytorch --display-name "yolov2-pytorch"

References

This project took inspiration and/or code from these projects and courses/tutorials:

yolov2-pytorch's People

Contributors

furkanu avatar

Watchers

James Cloos 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.