Skip to content
Xavier edited this page Aug 17, 2021 · 5 revisions

PyCAPTCHA Document πŸ”

πŸ™Œ Welcome to the PyCAPTCHA Doc! Here i will teach you how to use PyCAPTCHA

Here is a Quick Glance at the usage of PyCAPTCHA

Training πŸš€

Step1: Set the Config file

Check out the yaml file
check out the yaml config WIKI for details

DATASET:
  DATASET_DIR: './dataset'
  TRAINING_DIR: './dataset/train'
  TESTING_DIR: './dataset/val'
...

SOLVER:
  LR: 5.0e-4
  BATCH_SIZE: 256

LOGGER:
  CHECKPOINT_DIR: './checkpoint'
  LOG_DIR: './logs'

Step2: Check the Dataset

Make sure you have a dataset, you can generate the dataset with the utils/captcha_generater.py script

python utils/captcha_generater.py

Step3: Start Training

python launcher.py --exp_name "my_exp" # Start Training

check out the Arg parser WIKI for details

The tensorboard and ckpt file will save at logs

Testing πŸ“

python test.py --ckpt "your_ckpt"  # Start Testing

check out the Arg parser WIKI for details

Predicting πŸ”¬

python predictor.py --input "your_input_img" # Start Predicting