{"id":20953830,"url":"https://github.com/whai362/pan_pp.pytorch","last_synced_at":"2025-04-05T07:06:13.647Z","repository":{"id":37388523,"uuid":"292217704","full_name":"whai362/pan_pp.pytorch","owner":"whai362","description":"Official implementations of PSENet, PAN and PAN++.","archived":false,"fork":false,"pushed_at":"2023-03-09T11:59:29.000Z","size":834,"stargazers_count":451,"open_issues_count":59,"forks_count":90,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-29T06:07:10.196Z","etag":null,"topics":["pan","psenet","text-detection","text-recognition","text-spotting"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/whai362.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-09-02T07:59:14.000Z","updated_at":"2025-02-21T06:08:27.000Z","dependencies_parsed_at":"2023-01-23T18:25:16.852Z","dependency_job_id":"4de5ab27-3199-49f6-b04a-f010972d74a3","html_url":"https://github.com/whai362/pan_pp.pytorch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whai362%2Fpan_pp.pytorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whai362%2Fpan_pp.pytorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whai362%2Fpan_pp.pytorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/whai362%2Fpan_pp.pytorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/whai362","download_url":"https://codeload.github.com/whai362/pan_pp.pytorch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299832,"owners_count":20916190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pan","psenet","text-detection","text-recognition","text-spotting"],"created_at":"2024-11-19T01:03:45.562Z","updated_at":"2025-04-05T07:06:13.630Z","avatar_url":"https://github.com/whai362.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## News\n- (2022/12/08) We will release the code and models of FAST in [link](https://github.com/czczup/FAST).\n- (2022/10/09) We release stabler code for PAN++, see [pan_pp_stable](https://github.com/whai362/pan_pp_stable).\n- (2022/04/22) Update PAN++ ICDAR 2015 joint training \u0026 post-processing with vocabulary \u0026 visualization code.\n- (2021/11/03) Paddle implementation of PAN, see [Paddle-PANet](https://github.com/simplify23/Paddle-PANet). Thanks @simplify23.\n- (2021/04/08) PSENet and PAN are included in [MMOCR](https://github.com/open-mmlab/mmocr).\n\n## Introduction\nThis repository contains the official implementations of [PSENet](https://openaccess.thecvf.com/content_CVPR_2019/html/Wang_Shape_Robust_Text_Detection_With_Progressive_Scale_Expansion_Network_CVPR_2019_paper.html), [PAN](https://openaccess.thecvf.com/content_ICCV_2019/html/Wang_Efficient_and_Accurate_Arbitrary-Shaped_Text_Detection_With_Pixel_Aggregation_Network_ICCV_2019_paper.html), [PAN++](https://arxiv.org/abs/2105.00405).\n\n\u003cdetails open\u003e\n\u003csummary\u003eText Detection\u003c/summary\u003e\n\n- [x] [PSENet (CVPR'2019)](config/psenet/)\n- [x] [PAN (ICCV'2019)](config/pan/)\n- [x] [FAST (Arxiv'2021)](config/fast/)\n\u003c/details\u003e\n\n\u003cdetails open\u003e\n\u003csummary\u003eText Spotting\u003c/summary\u003e\n\n- [x] [PAN++ (TPAMI'2021)](config/pan_pp)\n\n\u003c/details\u003e\n\n## Installation\n\nFirst, clone the repository locally:\n\n```shell\ngit clone https://github.com/whai362/pan_pp.pytorch.git\n```\n\nThen, install PyTorch 1.1.0+, torchvision 0.3.0+, and other requirements:\n\n```shell\nconda install pytorch torchvision -c pytorch\npip install -r requirement.txt\n```\n\nFinally, compile codes of post-processing:\n\n```shell\n# build pse and pa algorithms\nsh ./compile.sh\n```\n\n## Dataset\nPlease refer to [dataset/README.md](dataset/README.md) for dataset preparation.\n\n## Training\n```shell\nCUDA_VISIBLE_DEVICES=0,1,2,3 python train.py ${CONFIG_FILE}\n```\nFor example:\n```shell\nCUDA_VISIBLE_DEVICES=0,1,2,3 python train.py config/pan/pan_r18_ic15.py\n```\n\n## Testing\n\n### Evaluate the performance\n\n```shell\npython test.py ${CONFIG_FILE} ${CHECKPOINT_FILE}\ncd eval/\n./eval_{DATASET}.sh\n```\nFor example:\n```shell\npython test.py config/pan/pan_r18_ic15.py checkpoints/pan_r18_ic15/checkpoint.pth.tar\ncd eval/\n./eval_ic15.sh\n```\n\n### Evaluate the speed\n\n```shell script\npython test.py ${CONFIG_FILE} ${CHECKPOINT_FILE} --report_speed\n```\nFor example:\n```shell script\npython test.py config/pan/pan_r18_ic15.py checkpoints/pan_r18_ic15/checkpoint.pth.tar --report_speed\n```\n\n### Visualization\n\n```shell script\npython test.py ${CONFIG_FILE} ${CHECKPOINT_FILE} --vis\n```\nFor example:\n```shell script\npython test.py config/pan/pan_r18_ic15.py checkpoints/pan_r18_ic15/checkpoint.pth.tar --vis\n```\n\n\n## Citation\n\nPlease cite the related works in your publications if it helps your research:\n\n### PSENet\n\n```\n@inproceedings{wang2019shape,\n  title={Shape Robust Text Detection with Progressive Scale Expansion Network},\n  author={Wang, Wenhai and Xie, Enze and Li, Xiang and Hou, Wenbo and Lu, Tong and Yu, Gang and Shao, Shuai},\n  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},\n  pages={9336--9345},\n  year={2019}\n}\n```\n\n### PAN\n\n```\n@inproceedings{wang2019efficient,\n  title={Efficient and Accurate Arbitrary-Shaped Text Detection with Pixel Aggregation Network},\n  author={Wang, Wenhai and Xie, Enze and Song, Xiaoge and Zang, Yuhang and Wang, Wenjia and Lu, Tong and Yu, Gang and Shen, Chunhua},\n  booktitle={Proceedings of the IEEE International Conference on Computer Vision},\n  pages={8440--8449},\n  year={2019}\n}\n```\n\n### PAN++\n\n```\n@article{wang2021pan++,\n  title={PAN++: Towards Efficient and Accurate End-to-End Spotting of Arbitrarily-Shaped Text},\n  author={Wang, Wenhai and Xie, Enze and Li, Xiang and Liu, Xuebo and Liang, Ding and Zhibo, Yang and Lu, Tong and Shen, Chunhua},\n  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},\n  year={2021},\n  publisher={IEEE}\n}\n```\n\n### FAST\n\n```\n@misc{chen2021fast,\n  title={FAST: Searching for a Faster Arbitrarily-Shaped Text Detector with Minimalist Kernel Representation}, \n  author={Zhe Chen and Wenhai Wang and Enze Xie and ZhiBo Yang and Tong Lu and Ping Luo},\n  year={2021},\n  eprint={2111.02394},\n  archivePrefix={arXiv},\n  primaryClass={cs.CV}\n}\n```\n\n## License\n\nThis project is developed and maintained by [IMAGINE Lab@National Key Laboratory for Novel Software Technology, Nanjing University](https://cs.nju.edu.cn/lutong/ImagineLab.html).\n\n\u003cimg src=\"logo.jpg\" alt=\"IMAGINE Lab\"\u003e\n\nThis project is released under the [Apache 2.0 license](https://github.com/whai362/pan_pp.pytorch/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhai362%2Fpan_pp.pytorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhai362%2Fpan_pp.pytorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhai362%2Fpan_pp.pytorch/lists"}