GithubHelp home page GithubHelp logo

convert_tools's Introduction

数据转化

重要介绍

仅仅对于labelme标注工具产生的文件

本仓库包含以下内容:

  1. 在label_adjust.py中能够对错误标签进行转化。
  2. 在label_adjust.py中能够对类别数量进行统计。
  3. 在rotated_adjust能够将十字标注转化为旋转的进行框,针对已存在标签和未存在标签都适用。

内容列表

安装

创建虚拟环境

$ conda create -n convert python=3.8 -y

安装依赖

$ pip install -r requirement.txt

使用说明

输出每个类的数量(--paths_adjust --suffix tif,进行校正)

$ python labels_adjust.py --dir your dataset file --paths_adjust --suffix tif

将十字标注方式转化为旋转的矩形框(这个针对从头开始标注的)

$ python rotated_adjust.py --dir your dataset file

将十字标注方式转化为旋转的矩形框(这个针对数据集原本就有矩形标注框的)

$ python rotated_adjust.py --dir your dataset file --use-labels --temp-labels null-label

这中标注方式是在原来有矩形标注的对象上标注十字,标注的label就是temp-labels指定的(这里为null-label),会根据null-label所标注十字所生成的旋转矩形框与原来所有的正矩形框求IOU,把IOU最大的label赋给这个临时的null-label

convert_tools's People

Contributors

ddgrcf avatar

Stargazers

 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.