Giter Site home page Giter Site logo

kazuhito00 / imagedatagenerator-examples Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 18.35 MB

Tensorflow2(Keras)のImageDataGeneratorのJupyter上での実行例。

License: MIT License

Jupyter Notebook 100.00%
imagedatagenerator imagedatagenerator-jupyter ricap cutmix mixup cutout mixup-cutmix dataaugmentation

imagedatagenerator-examples's Introduction

Binder

ImageDataGenerator-examples

ImageDataGenerator-examplesはImageDataGeneratorによるデータ拡張のJupyter上での実行例です。

Note

Random Erasing、RICAP、Mixup、Cutmixの手法はImageDataGeneratorに実装されていないため、別リポジトリからクローンしてきて実行しています。

それぞれのソースコードの権利は各作者様に帰属します。

Cutout/Random Erasing(yu4u様)

https://github.com/yu4u/cutout-random-erasing

RICAP(koshian2様)

https://github.com/koshian2/keras-ricap

Mixup

https://github.com/Kazuhito00/mixup

Cutmix

https://github.com/Kazuhito00/cutmix

Requirement

  • Tensorflow 2.x

Usage

Jupyter上でImageDataGenerator-examples.ipynbを開いて実行してください。

Examples

以下の実行例を実装しています。

  • ランダム回転

  • ランダム水平シフト

  • ランダム垂直シフト

  • ランダムシアー(せん断)

  • ランダムズーム

  • ランダムチャンネルシフト

  • ランダム輝度変更

  • ランダム水**転

  • ランダム垂直反転

  • リスケール(各画素を等倍)

  • 各サンプルの平均を0にする

  • データセット全体で入力の平均を0にする

  • Albumentationsを用いたデータ拡張(preprocessing_function経由)

  • Cutout

  • Random Erasing

  • Mixup

  • Cutmix

  • RICAP

ToDo

  • ChangeBackground
  • AugMix

Author

高橋かずひと(https://twitter.com/KzhtTkhs)

License

ImageDataGenerator-examples is under MIT license.

また、ハリネズミ、マンタ、犬、猫の画像はフリー素材ぱくたそ様の写真を利用しています。

imagedatagenerator-examples's People

Contributors

kazuhito00 avatar

Stargazers

 avatar  avatar

Watchers

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