-
Notifications
You must be signed in to change notification settings - Fork 20
Home
Xavier edited this page Aug 17, 2021
·
5 revisions
π Welcome to the PyCAPTCHA Doc! Here i will teach you how to use PyCAPTCHA
Here is a Quick Glance at the usage of PyCAPTCHA
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'
Make sure you have a dataset, you can generate the dataset with the utils/captcha_generater.py
script
python utils/captcha_generater.py
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
python test.py --ckpt "your_ckpt" # Start Testing
check out the Arg parser
WIKI for details
python predictor.py --input "your_input_img" # Start Predicting