Skip to content

Ruby-He/ocr_adv_attack

Repository files navigation

OCR_adv_attack

OCR Adversarial Attack Studing Record

This project implements the FGSM and PGD attack on OCR in pytorch. And use the crnn model as the target model, the model project could be found in crnn.pytorch.

Attack demo

A demo program can be found in FGSM_CRNN.py and PGD_CRNN.py. The pretrained model crnn.pth is in directory data/ Then launch the demo by:

python FGSM_CRNN.py
python PGD_CRNN.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published