Giter Site home page Giter Site logo

augment's Introduction

augment

  • 自用的数据增强代码
  • 除了90,180,270旋转外都用到了augement库,因为旋转的时候它会截断边界,所以采用了opencv的方式
    pip install -r requirement.txt
    python demo_label_file.py

  • name 总的标签list name = ['person' ]

  • select_aug_dict 选择的数据增强方式,每种方式都是独立的,详情见 config/test.yaml
    select_aug_dict = { 'flipud', 'fliplr', 'randomrotate', 'rotateleft90', 'rotateleft180', 'rotateleft270', 'randomscale', 'saferandomcrop', 'randombrightness', 'randomhsv', 'colorjitter', 'randomrgb', 'perspective', 'motionblur', 'mediablur', 'glassblur', 'randomsnow', 'randomrain', 'randomsunflare'}

  • 只针对select_label里的标签进行augment,不在这里面的,不做augment,并且保存的xml也只包含select_label的标签

  • select_label的范围 <= name list
    select_label = {'bj', 'bj_bpmh', 'bj_bpps', 'bj_wkps', 'bjdsyc', 'byq_hxq', 'hxq_gjbs','hxq_gjtps', 'ywzt_yfyc', 'ywzt_yfzc', 'yw_gkxfw', 'yw_nc', 'gbps', 'sly_dmyw', 'jyz_pl', 'xmbhzc', 'xmbhyc', 'kgg_ybh', 'kgg_ybf','kgg_wyb', 'person', 'aqmzc', 'wcaqm', 'wcgz', 'gzzc', 'hand', 'hand_xy', 'xy'}

augment's People

Contributors

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