Git Product home page Git Product logo

pytorch-yolo's Introduction

Under Construction........

pytorch implementation of yolov1

here is the paper

write this code for learning purpose, learned from this repository

network architecture will be like this

Abstruct

Pytorch implementation of yolov1

implementation details

  • Image preprocessing:

I don't use mean substracting and std deviation as the preprocessing tricks, because not all the case we can know the mean and std of a dataset, for example, a live camera video flow.Yolo source code and the paper both suggests that no mean subtracting and std deviation applied:

The source code in yolov2:

    load_args args = {0};
    args.w = net->w;
    args.h = net->h;
    args.paths = paths;
    args.n = imgs;
    args.m = plist->size;
    args.classes = classes;
    args.jitter = jitter;
    args.num_boxes = side;
    args.d = &buffer;
    args.type = REGION_DATA;

    args.angle = net->angle;
    args.exposure = net->exposure;
    args.saturation = net->saturation;
    args.hue = net->hue;

In yolov2 paper:

During training we use standard data augmentation tricks including random
crops, rotations, and hue, saturation, and exposure shifts.
  • Image Channel

I'm using OpenCV as my image reading library, so the RGB order is BGR, If you want to use my code to predict image, or videos, please change your channel order to BGR

  • Compatibility

I use Python3.5 to write the code, I've already tried my best to maintain the compatibility as possible, e.g. the result int / int is float in Python3.5 I tried my best to avoid using / sign, but I Can't make any promises about the compatibility. Please use Python3.5!

pytorch-yolo's People

Contributors

weiaicunzai avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

zfxu

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.