[x] Captcha Solver
- Command to train:
python captcha_solver.py train --dest_train <train images directory> --dest_val <val images directory> --outdir <output directory> --batch_size < batch size> --lr <learning rate> --epochs <epochs> --n_classes < no of characters to classify> --shuffle <shuffle data in each epoch while training> --dim <captcha dimension>
- Example
python captcha_solver.py train --dest_train '/home/santanu/Downloads/Captcha Generation/captcha_train/' --dest_val '/home/santanu/Downloads/Captcha Generation/captcha_val/' --outdir '/home/santanu/ML_DS_Catalog-/captcha/model/' --batch_size 16 --lr 1e-3 --epochs 20 --n_classes 36 --shuffle True --dim '(40,100,1)'
- Command to run inference/evaluate
python captcha_solver.py evaluate --model_path <complete model path> --eval_dest < Directory of images to run inference on> --outdir <output directory> --fetch_target < True/False>
- Example
python captcha_solver.py evaluate --model_path /home/santanu/ML_DS_Catalog-/captcha/model/captcha_breaker.h5 --eval_dest '/home/santanu/Downloads/Captcha Generation/captcha_test/' --outdir /home/santanu/ML_DS_Catalog-/captcha/ --fetch_target True
[x]GAN based Captcha Generator
- Command to train
python captcha_gan.py train --dest_train <directory/file for input images> --outdir <output directory> --dir_flag <whether input is file/directory> --batch_size <batch size> --gen_input_dim <noise dimension> --gen_beta1 <beta_1 of GAN generator> --gen_lr <learning rate of Generator> --dis_input_dim <input dimension of discriminator> --dis_lr <discriminator learning rate> --dis_beta1 <beta_1 of discriminator> --alpha <leak factor of Leaky RELU activation> --epochs <epochs> --smooth_coef <smoothing coeffecient>
- Examle
python captcha_gan.py train --dest_train '/home/santanu/Downloads/train_32x32.mat' --outdir '/home/santanu/ML_DS_Catalog-/captcha/SVHN/' --dir_flag False --batch_size 100 --gen_input_dim 100 --gen_beta1 0.5 --gen_lr 0.0001 --dis_input_dim '(32,32,3)' --dis_lr 0.001 --dis_beta1 0.5 --alpha 0.2 --epochs 100 --smooth_coef 0.1
- Command to generate Captchas using the Trained network
python captcha_gan.py generate-captcha --gen_input_dim <noise inputdimension> --num_images <number of Captchas to generate> --model_dir <trained model directory> --outdir <output directory> --alpha <Leaky ReLU leak factor>
-Example
python captcha_gan.py generate-captcha --gen_input_dim 100 --num_images 200 --model_dir '/home/santanu/ML_DS_Catalog-/captcha/' --outdir '/home/santanu/ML_DS_Catalog-/captcha/captcha_for_use/' --alpha 0.2
好知识传播者
- 粉丝: 1684
- 资源: 4133
最新资源
- 2025阿里云客服专项客服条件检测认证考试试题及答案.docx
- 2025阿里云与淘宝云客服认证考试劳务报酬及税收知识考试题及答案.docx
- 2025保密知识竞赛题库及答案.docx
- 2025安全生产月知识试题题库(附答案).docx
- 2025安全生产法知识考试题及答案.docx
- 2025病案编码员资格证试题库(附含答案).docx
- 2025财政知识竞赛题库及答案(通用版).docx
- 2025产科和成人门诊免疫规划年度培训试题及答案.docx
- 2025初级保安员考试题库与答案.docx
- 2025初级保育员理论知识考试题库(含答案).docx
- ISP 算法源码:Bayer、坏像素矫正、颜色插值、噪声去除、边缘增强、白平衡、 色彩矫正、gamma 校正、色彩空间转等
- STM32 bootloader使用can进行通讯,将hex文件数据通过can下载flash里面,附源代码以及通讯协议(STM32cubeIDE工程) 也是适合初学者参考can通讯
- 1 公司薪酬数据分析表.xlsx
- 2 公司年度薪酬分析图表.xlsx
- 3 各部门薪酬成本变动分析(以月度同比分析为例).xlsx
- 6 员工薪酬分析表带统计图表带蓝绿两种风格.xlsx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈