Giter VIP home page Giter VIP logo

data-augmentation-1's Introduction

数据集扩充

中文(zh-cn) | English(en)

通用目标检测深度学习数据集扩充方法(尤其针对Yolo)


具体实现

数据集扩充方法详细说明

按从左到右,从上到下顺序排列

image.png


如何运行

  • 安装所需依赖

    pip install -r requirements.txt
  • 将原始图片和标注数据放到data/

  • 运行

    • python main.py 生成所有数据在data/文件夹下
    • 执行对应.py文件生成指定扩充图像数据
  • 使用

    os.chdir(dirname)
    (name, appidx) = os.path.splitext(filename)
    img = np.array(Image.open(filename))  # Image读入的图片形式
    
    somealgo_img = somealgo(np.copy(img))	# 复制一份传入扩充算法
    somealgo_img.save(name + "_somealgo" + appidx)	# 将扩充图像写入本地
    saveSomeAlgoLabel(name) # 自动生成对应的标注(部分算法需要手动标注)

开发环境

  • 操作系统: macOS Catalina 10.15.5
  • 开发语言: python 3.7.4
  • 主要依赖: numpy | cv2 | PIL | shutil

关于作者

姓名👤 张喆 | doubleZ
学校🏫 同济大学
联系方式✉️ [email protected]

data-augmentation-1's People

Contributors

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