Code Monkey home page Code Monkey logo

rotation-yolov5's Introduction

the rotation detection

Requirement

torch==1.6
shapely==1.7.1
opencv==4.2.0.34

inference

you can download the weights(password is 4ud5) for ship detection by my dataset(not DOTA) to test the demo.

$ python detect.py

image

train

what format my model need

Not much different from yolo dataset,just add an angle and we define the box attribute w is always longer than h!

So wo define the box label is (cls, c_x, c_y, Longest side,short side, angle)

Attention!we define angle is a classify question,so we define 180 classes for angle.

For Example: image Range for angle is [-90,90), so wo should add 90 in angle while make your dataset label and then your label's Range should be [0,179) image

modify yaml

models/yolov5m.yaml: set nc to your dataset class num; data/wheat0.yaml:set nc to your dataset class num, and set names to your dataset class name;

$ python train.py

update

2021.1.4---correct some BUG for training

details

If you have any question,welcome discuss with me by This or email to [email protected]

rotation-yolov5's People

Contributors

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