GithubHelp home page GithubHelp logo

captcha's Introduction

验证码深度学习

10w训练,1k验证数据,100次迭代,6个小时,最后准确率大概60%,网络结构有待优化。

环境

pytorch+cuda+python(3.7+)

生成验证码

generate_captcha.py captcha_num=100000 #100000改为自己想要的数量 captcha_dir,captcha_file=get_captcha_dir(captcha_type[0]) #0表示类型,有'train','valid','test','predict' 会在项目的同级目录下生成captcha_data目录(为什么不是在项目里面,是因为生成文件大多,ide每次打开加载文件很耗时)

训练

train.py

测试

test.py

预测

predict.py

配置文件

在util/common.py里面

captcha's People

Contributors

liuzhewu avatar

Watchers

 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.