GithubHelp home page GithubHelp logo

dl_tools's Introduction

Tools

Some useful tools for computer vision/deep learning.

Usage

yolo2coco.py

将数据集修改成YOLO格式。$ROOT_PATH是根目录(默认目录为当前目录下面的yolo_data文件夹,也可以直接创建一个),文件结构如下:

└── $ROOT_PATH

  ├── classes.txt

  ├── images

  └──labels
  • classes.txt 是类的声明,一行一类。

  • images 目录包含所有图片 (format:jpg )

  • labels 目录包含所有标签(与图片同名,format: txt)

配置好后,执行:python yolo2coco.py --root_path $ROOT_PATH --random_split ,然后你就能看见生成的 annotations, 包括 ``train.json val.json` `test.json` (默认随机划分成8:1:1)

  • --root_path 输入根目录$ROOT_PATH的位置。
  • --random_split 为划分参数,如果没有这个参数则只保存train.json文件

dataset_mean_var.py

执行:python yolo2coco.py --file_path $IMAGE_PATH --step $INTERVAL

  • --file_path 输入图片地址。

  • --step 可选,默认为1,选择图片的间隔,如间隔为10,则只计算1/10。

split_yolo_dataset.py

随机划分数据集(yolo数据格式的划分),按train:val:test = 8:1:1保存。 执行:python split_dataset_yolo.py --root_path $ROOT_PATH

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.