{"id":21018746,"url":"https://github.com/tal-tech/san","last_synced_at":"2025-05-15T06:31:51.436Z","repository":{"id":43671247,"uuid":"498223599","full_name":"tal-tech/SAN","owner":"tal-tech","description":"Syntax-Aware Network for Handwritten Mathematical Expression Recognition","archived":false,"fork":false,"pushed_at":"2023-02-21T14:56:06.000Z","size":31846,"stargazers_count":92,"open_issues_count":9,"forks_count":22,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-03T05:12:34.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tal-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-31T07:03:23.000Z","updated_at":"2024-12-14T10:01:58.000Z","dependencies_parsed_at":"2024-11-19T10:45:45.450Z","dependency_job_id":null,"html_url":"https://github.com/tal-tech/SAN","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2FSAN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2FSAN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2FSAN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tal-tech%2FSAN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tal-tech","download_url":"https://codeload.github.com/tal-tech/SAN/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254288268,"owners_count":22045868,"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":[],"created_at":"2024-11-19T10:27:29.592Z","updated_at":"2025-05-15T06:31:46.427Z","avatar_url":"https://github.com/tal-tech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Syntax-Aware Network for Handwritten Mathematical Expression Recognition\n\nThis is the official pytorch implementation of [SAN](https://arxiv.org/abs/2203.01601) (CVPR'2022).\n![SAN Overview](overview.png)\n\n\n### Environment\n\n```\npython==3.8.5\nnumpy==1.22.2\nopencv-python==4.5.5.62\nPyYAML==6.0\ntensorboardX==2.5\ntorch==1.6.0+cu101\ntorchvision==0.7.0+cu101\ntqdm==4.64.0\n```\n\n### Train\n\n```\npython train.py --config path_to_config_yaml\n```\n\n### Inference\n```\npython inference.py --config path_to_config_yaml --image_path path_to_image_folder --label_path path_to_label_folder\n```\n\n```\nExample:\npython inference.py --config 14.yaml --image_path data/14_test_images --label_path data/test_caption.txt\n```\n\n### Dataset\n\nCROHME: \n```\nDownload the dataset from: https://github.com/JianshuZhang/WAP/tree/master/data\n```\n\nHME100K\n```\nDownload the dataset from the official website: https://ai.100tal.com/dataset\n```\n\n### Citation\n\nIf you find this dataset helpful for your research, please cite the following paper:\n\n```\n@inproceedings{yuan2022syntax,\n  title={Syntax-Aware Network for Handwritten Mathematical Expression Recognition},\n  author={Yuan, Ye and Liu, Xiao and Dikubab, Wondimu and Liu, Hui and Ji, Zhilong and Wu, Zhongqin and Bai, Xiang},\n  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},\n  pages={4553--4562},\n  year={2022}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftal-tech%2Fsan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftal-tech%2Fsan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftal-tech%2Fsan/lists"}