January 2019
Intermediate to advanced
342 pages
9h 17m
English
The training of the GAN can be invoked by running the train function of the captcha_gan.py script with the parameters as follows:
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
The preceding script uses the fire Python package to invoke a user specified function, which is train in our case. The good thing about fire is that all the inputs to the function can be supplied by the user as arguments as we can see from the previous command.
GANs are ...
Read now
Unlock full access