GithubHelp home page GithubHelp logo

keras_shufflenetv2's Introduction

keras_shufflenetv2

ShufflenetV2

Layer (type) Output Shape Param #
conv2d (Conv2D) multiple 640
conv2d_1 (Conv2D) multiple 1056
separable_conv2d (SeparableC multiple 1344
max_pooling2d (MaxPooling2D) multiple 0
dense (Dense) multiple 6423040
dense_1 (Dense) multiple 5130
batch_normalization (BatchNo multiple 128
flatten (Flatten) multiple 0
dropout (Dropout) multiple 0

epoch = 200

acc = 94.57

CNN

Layer (type) Output Shape Param #
conv2d_2 (Conv2D) multiple 320
conv2d_3 (Conv2D) multiple 18496
max_pooling2d_1 (MaxPooling2 multiple 0
dense_2 (Dense) multiple 6423040
dense_3 (Dense) multiple 5130
flatten_1 (Flatten) multiple 0
dropout_1 (Dropout) multiple 0

epoch = 200

acc = 84.75

keras_shufflenetv2's People

Contributors

dongseokyang avatar

Stargazers

 avatar  avatar  avatar GAURAV avatar tucan9389 avatar

Watchers

 avatar

Forkers

coswang1120 h-jia

keras_shufflenetv2's Issues

I upload only the edits I made

file name : train.py

def training_pipeline_ShuffleNetV2():

data_dir = 'insect_30'
image_size = 299

data_generator = ImageDataGenerator(rescale=1./255, validation_split=0.1)

train_generator = data_generator.flow_from_directory(
    str(data_dir),
    subset='training',
    target_size=(image_size, image_size),
    batch_size=model_config._BATCH_SIZE,
    class_mode='categorical',
    shuffle=True,
    seed=0)

validation_generator = data_generator.flow_from_directory(
    str(data_dir),
    subset='validation',
    target_size=(image_size, image_size),
    batch_size=model_config._BATCH_SIZE,
    class_mode='categorical',
    shuffle=True,
    seed=0)

model = ShuffleNetV2Model()  # your keras model here
model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy'])

model.fit_generator(
    train_generator,
    steps_per_epoch=?,
    epochs=model_config._EPOCHS,
    validation_data=validation_generator,
    validation_steps=?)

# display model config
model.summary()

if name == 'main':

training_pipeline_ShuffleNetV2()

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.