Code Monkey home page Code Monkey logo

codeidverify's Introduction

CodeIdVerify

Verified the code identification.

This is CodeIdVerify

Begin ๐Ÿ‘‡

Run GenerateImg.py, change num to set train set num(90%) and test set num(10%).

In IdentifyImg.py, some basic data set, deNoising(filter), generate data, preprocessing and generate train model.

correct_rate now is reaching 93%

# model
layers.Conv2D(32, kernel_size=[3, 3], padding="same", activation=tf.nn.relu),
    layers.MaxPool2D(pool_size=[2, 2], strides=2, padding='same'),
    layers.Dropout(0.5),
    layers.Conv2D(64, kernel_size=[3, 3], padding="same", activation=tf.nn.relu),
    layers.MaxPool2D(pool_size=[2, 2], strides=2, padding='same'),
    layers.Dropout(0.3),
    layers.Conv2D(64, kernel_size=[3, 3], padding="same", activation=tf.nn.relu),
    layers.MaxPool2D(pool_size=[2, 2], strides=2, padding='same'),
    layers.Dropout(0.25),

    layers.Flatten(),

    layers.Dense(2480),
    layers.Dense(248),  # 4*62
    layers.Reshape([4, 62])
.
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ __pycache__
โ”œโ”€โ”€ logs
โ”œโ”€โ”€ test
โ”‚ย ย  โ””โ”€โ”€ xxx.png 
โ”œโ”€โ”€ train
โ”‚ย ย  โ””โ”€โ”€ xxx.png 
โ”œโ”€โ”€ GenerateImg.py
โ”œโ”€โ”€ IdentifyImg.py
โ”œโ”€โ”€ IdentifyTest.py
โ”œโ”€โ”€ IdentifyTrain.py
โ””โ”€โ”€ model.h5

4 directories, 6 files

codeidverify's People

Watchers

James Cloos avatar Zhicheng Ling 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.