All Projects → Kazuhito00 → TFLite-ModelMaker-EfficientDet-Colab-Hands-On

Kazuhito00 / TFLite-ModelMaker-EfficientDet-Colab-Hands-On

Licence: Apache-2.0 license
TensorFlow Lite Model Makerで物体検出を行うハンズオン用資料です(Hands-on for object detection with TensorFlow Lite Model Maker)

Programming Languages

Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to TFLite-ModelMaker-EfficientDet-Colab-Hands-On

Tensorflow2-ObjectDetectionAPI-Colab-Hands-On
Tensorflow2 Object Detection APIのハンズオン用資料です(Hands-on documentation for the Tensorflow2 Object Detection API)
Stars: ✭ 33 (+120%)
Mutual labels:  handson, colab, colaboratory, colab-notebook, tensorflow2
keras-buoy
Keras wrapper that autosaves what ModelCheckpoint cannot.
Stars: ✭ 22 (+46.67%)
Mutual labels:  colab, colaboratory, colab-notebook
Torrent-To-Google-Drive-Downloader
Simple notebook to stream torrent files to Google Drive using Google Colab and python3.
Stars: ✭ 256 (+1606.67%)
Mutual labels:  colab, colaboratory, colab-notebook
steam-stylegan2
Train a StyleGAN2 model on Colaboratory to generate Steam banners.
Stars: ✭ 30 (+100%)
Mutual labels:  colab, colaboratory, colab-notebook
Adaptive-Gradient-Clipping
Minimal implementation of adaptive gradient clipping (https://arxiv.org/abs/2102.06171) in TensorFlow 2.
Stars: ✭ 74 (+393.33%)
Mutual labels:  colab-notebook, tensorflow2
CRNN.tf2
Convolutional Recurrent Neural Network(CRNN) for End-to-End Text Recognition - TensorFlow 2
Stars: ✭ 131 (+773.33%)
Mutual labels:  tensorflow-lite, tensorflow2
video coloriser
Pytorch Convolutional Neural Net and GAN based video coloriser that converts black and white video to colorised video.
Stars: ✭ 29 (+93.33%)
Mutual labels:  colab, colab-notebook
QuantumSpeech-QCNN
IEEE ICASSP 21 - Quantum Convolution Neural Networks for Speech Processing and Automatic Speech Recognition
Stars: ✭ 71 (+373.33%)
Mutual labels:  colab-notebook, tensorflow2
NARUTO-HandSignDetection
物体検出を用いてNARUTOの印(子~亥、壬、合掌)を検出するモデルとサンプルプログラムです。このリポジトリでは、YOLOXを使用しています(This is a model and sample program that detects NARUTO's hand sign using object detection. This repository use YOLOX.)
Stars: ✭ 186 (+1140%)
Mutual labels:  tensorflow-lite, tensorflow2
TPU-MobilenetSSD
Edge TPU Accelerator / Multi-TPU + MobileNet-SSD v2 + Python + Async + LattePandaAlpha/RaspberryPi3/LaptopPC
Stars: ✭ 82 (+446.67%)
Mutual labels:  colaboratory, tensorflow-lite
ALPS 2021
XAI Tutorial for the Explainable AI track in the ALPS winter school 2021
Stars: ✭ 55 (+266.67%)
Mutual labels:  colab, colab-notebook
MineColab
Run Minecraft Server on Google Colab.
Stars: ✭ 135 (+800%)
Mutual labels:  colab, colab-notebook
Lucid
A collection of infrastructure and tools for research in neural network interpretability.
Stars: ✭ 4,344 (+28860%)
Mutual labels:  colab
Digital video introduction
A hands-on introduction to video technology: image, video, codec (av1, vp9, h265) and more (ffmpeg encoding).
Stars: ✭ 12,184 (+81126.67%)
Mutual labels:  handson
Pyprobml
Python code for "Machine learning: a probabilistic perspective" (2nd edition)
Stars: ✭ 4,197 (+27880%)
Mutual labels:  colab
Artline
A Deep Learning based project for creating line art portraits.
Stars: ✭ 3,061 (+20306.67%)
Mutual labels:  colab
TF2DeepFloorplan
TF2 Deep FloorPlan Recognition using a Multi-task Network with Room-boundary-Guided Attention. Enable tensorboard, quantization, flask, tflite, docker, github actions and google colab.
Stars: ✭ 98 (+553.33%)
Mutual labels:  tensorflow2
hands-on-bots-node
Repositório responsável pelas vídeo aulas inerentes a nova série do canal: Hands on
Stars: ✭ 32 (+113.33%)
Mutual labels:  handson
Colab Auto Reconnect
A Chrome extension and Firefox AddOn that automatically reconnects your Colab's ongoing session without a manual click. It also provides a timer for getting notified after finishing a task.
Stars: ✭ 18 (+20%)
Mutual labels:  colab
Persian-Sentiment-Analyzer
Persian sentiment analysis ( آناکاوی سهش های فارسی | تحلیل احساسات فارسی )
Stars: ✭ 30 (+100%)
Mutual labels:  colab

[Japanese/English]

TFLite-ModelMaker-EfficientDet-Colab-Hands-On


TensorFlow Lite Model Makerのハンズオン用資料です。
VoTTでのアノテーションをローカルPCで実施し、学習~推論はColaboratory上で実施します。
アノテーションを実施せずにアノテーション済みデータセットを利用することも出来ます。

以下の内容を含みます。

  • データセット ※アノテーション未実施
  • データセット ※アノテーション済み
  • Colaboratory用スクリプト(環境設定、モデル訓練、推論結果確認)

Requirement

Tensorflow 2.5.0 or later

Overview

1時間30分程度のボリュームの想定です。

  1. VoTT:アノテーション(約30~60分)
  2. Colaboratory:環境準備
  3. Colaboratory:object_detector向けcsv作成
  4. Colaboratory:モデル訓練(約5~10分)
  5. Colaboratory:推論

Preparations

事前準備として以下が必要です。

  • このリポジトリのローカル環境へのクローン
  • VoTTのインストール

1. VoTT:アノテーション

VoTTを使用してアノテーションを行い、CSV形式で出力します。
アノテーション済みデータセットを利用する方は、この章を飛ばしてください。

VoTTのプロジェクト設定

「新規プロジェクト」を選択する

2020-09-19 (3)

プロジェクト設定を行う

表示名:TFLite-ModelMaker-EfficientDet-Colab-Hands-On
セキュリティトークン:Generate New Security Token
ソース接続:「Add Connection」を押下
2021-06-09 (1)

ソース接続の接続設定を行う

表示名:TFLite-ModelMaker-EfficientDet-Colab-Hands-On-TrainData 2021-06-09 (2) プロバイダー:ローカルファイルシステム 2021-06-09 (3) フォルダーパス:クローンしたリポジトリの「01_dataset」ディレクトリを指定 2021-06-09 (4)

ターゲット接続の接続設定を行う

ターゲット接続:Add Connection 2021-06-09 (5) 表示名:TFLite-ModelMaker-EfficientDet-Colab-Hands-On-Target
プロバイダー:ローカルファイルシステム
フォルダーパス:任意のディレクトリ
2021-06-09 (6)

タグを追加し設定を保存する

タグ:「Fish」を追加
「プロジェクトを保存」を押下 94047577-3d9dc080-fe0d-11ea-9f4f-b5fe7727fc12

VoTTを使用してアノテーションを実施

マウス左ドラッグで魚を選択する

2020-09-19 (13)

TAGSから「Fish」を選択する

南京錠のマークを選択しておくことでタグを使用するタグを固定することが可能 2020-09-19 (14)

CSVエクスポート

エクスポート設定

プロバイダー:コンマ区切り値(CSV)
アセットの状態:タグ付きアセットのみ
「エクスポート設定を保存」を押下する 2021-06-09 (8) アノテーション画面からエクスポートマークを押下し、TFRecordをエクスポートする。 2020-09-19 (14)

2. Colaboratory:環境準備

Open In Colab
以降の作業はGoogle Colaboratory上で実施します。
[Open In Colab]リンクからノートブックを開き、以下の順に実行してください。

  • パッケージインポート
  • パッケージインストール

3.Colaboratory:object_detector向けcsv作成

「!mkdir dataset」実行後、VoTTからエクスポートした画像ファイルとCSVファイルを格納してください。
格納後、以下を実行してください。
アノテーション済みファイルを利用する方は以下の「if False:」を「if True:」に変更して実施してください。

if False:
    !git clone https://github.com/Kazuhito00/TFLite-ModelMaker-EfficientDet-Colab-Hands-On
    !cp -r TFLite-ModelMaker-EfficientDet-Colab-Hands-On/02_dataset\(Annotated\)/* ./dataset
  • データセットCSV読み込み(Read CSV)
  • 学習データ/検証データ/テストデータ 分割
  • object_detectorで読み込む形式に変換

4. Colaboratory:モデル訓練

以下の順に実行してください。

  • Model MakerでCSVファイルを読み込む
  • 物体検出のモデルアーキテクチャを選択
  • 訓練
  • モデル評価
  • TensorFlow Lite形式でのモデルエクスポート(形式:完全整数量子化)
  • TensorFlow Lite形式でのモデルエクスポート(形式:Float16量子化)

5. Colaboratory:推論

以下の順に実行してください。

  • 推論(形式:完全整数量子化)
  • 推論(形式:Float16量子化)

Author

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

License

TFLite-ModelMaker-EfficientDet-Colab-Hands-On is under MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].