• Stars
    star
    224
  • Rank 177,792 (Top 4 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Unofficial implementation of MobileNetV3 architecture described in paper Searching for MobileNetV3.

MobileNetV3 TensorFlow

Unofficial implementation of MobileNetV3 architecture described in paper Searching for MobileNetV3. This repository contains small and large MobileNetV3 architecture implemented using TensforFlow with tf.keras API.

Google Colab

  • Open In Colab MNIST
  • Open In Colab CIFAR10

Requirements

  • Python 3.6+
  • TensorFlow 1.13+
pip install -r requirements.txt

Build model

MobileNetV3 Small

from mobilenetv3_factory import build_mobilenetv3
model = build_mobilenetv3(
    "small",
    input_shape=(224, 224, 3),
    num_classes=1001,
    width_multiplier=1.0,
)

MobileNetV3 Large

from mobilenetv3_factory import build_mobilenetv3
model = build_mobilenetv3(
    "large",
    input_shape=(224, 224, 3),
    num_classes=1001,
    width_multiplier=1.0,
)

Train

CIFAR10 dataset

python train.py \
    --model_type small \
    --width_multiplier 1.0 \
    --height 128 \
    --width 128 \
    --dataset cifar10 \
    --lr 0.01 \
    --optimizer rmsprop \
    --train_batch_size 256 \
    --valid_batch_size 256 \
    --num_epoch 10 \
    --logdir logdir

MNIST dataset

python train.py \
    --model_type small \
    --width_multiplier 1.0 \
    --height 128 \
    --width 128 \
    --dataset mnist \
    --lr 0.01 \
    --optimizer rmsprop \
    --train_batch_size 256 \
    --valid_batch_size 256 \
    --num_epoch 10 \
    --logdir logdir

Evaluate

CIFAR10 dataset

python evaluate.py \
    --model_type small \
    --width_multiplier 1.0 \
    --height 128 \
    --width 128 \
    --dataset cifar10 \
    --valid_batch_size 256 \
    --model_path mobilenetv3_small_cifar10_10.h5

MNIST dataset

python evaluate.py \
    --model_type small \
    --width_multiplier 1.0 \
    --height 128 \
    --width 128 \
    --dataset mnist \
    --valid_batch_size 256 \
    --model_path mobilenetv3_small_mnist_10.h5

TensorBoard

Graph, training and evaluaion metrics are saved to TensorBoard event file uder directory specified with --logdir` argument during training. You can launch TensorBoard using following command.

tensorboard --logdir logdir

License

Apache License 2.0

More Repositories

1

awesome-edge-machine-learning

A curated list of awesome edge machine learning resources, including research papers, inference engines, challenges, books, meetups and others.
Python
247
star
2

orakl

Official Oracle of Kaia Blockchain
Go
70
star
3

sbt-contracts

Solidity smart contracts, deployment and test scripts for Soulbound token (SBT)
TypeScript
34
star
4

quantized-mobilenetv3-mnist-android

Android application recognizing digits using quantized 8-bit MobileNetV3.
Java
11
star
5

sbt-js

Typescript interface for @bisonai/sbt-contracts
TypeScript
7
star
6

edgebenchmark

Measure the speed of your machine learning models on real devices!
Python
7
star
7

vrf-consumer

Developer guide for VRF in Orakl Network
TypeScript
6
star
8

flutter-machine-learning-security

Protect your Machine Learning model in your Flutter application.
C++
5
star
9

pykorbit

Python wrapper for Korbit's REST/WS API
Python
5
star
10

curve-api-historical-data

REST API server to access historical data from Curve Finance
JavaScript
5
star
11

orca-api

REST API server that defines a user-friendly interface for Orca SDK
TypeScript
5
star
12

polychat

Preference-based Messenger
Go
4
star
13

data-feed-consumer

Developer guide for Data Feed in Orakl Network
TypeScript
4
star
14

orakl-demo-flip-coin

Flip Coin Blockchain Game (Orakl Network VRF)
TypeScript
4
star
15

request-response-consumer

Developer guide for Request-Response in Orakl Network
TypeScript
3
star
16

1-shot-classification-with-reptile

Fine Tuning for Image Recognition with a model trained with Reptile
Jupyter Notebook
3
star
17

datamaxi-python

Official Python client for DataMaxi+ API
Python
3
star
18

orakl-demo-mystery-box

TypeScript
2
star
19

orakl-helm-charts

Orakl Network Helm Charts
Mustache
1
star
20

orakl-docs

Orakl Network Documentation
1
star
21

orakl-demo-binary-option

Binary Option Blockchain Game (Orakl Network Data Feed)
TypeScript
1
star
22

orakl-config

Orakl Network Configuration
Python
1
star