{"id":16881485,"url":"https://github.com/swhl/convertloretoonnx","last_synced_at":"2025-10-13T21:05:57.279Z","repository":{"id":226858329,"uuid":"769820780","full_name":"SWHL/ConvertLOREToONNX","owner":"SWHL","description":"Convert LORE model from torch format to ONNX format.","archived":false,"fork":false,"pushed_at":"2024-10-28T03:30:36.000Z","size":4458,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T22:37:40.972Z","etag":null,"topics":["table-recognition"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SWHL.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-10T06:34:33.000Z","updated_at":"2025-02-24T07:50:05.000Z","dependencies_parsed_at":"2025-04-11T22:44:33.104Z","dependency_job_id":null,"html_url":"https://github.com/SWHL/ConvertLOREToONNX","commit_stats":null,"previous_names":["swhl/convertloretoonnx"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SWHL/ConvertLOREToONNX","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FConvertLOREToONNX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FConvertLOREToONNX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FConvertLOREToONNX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FConvertLOREToONNX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SWHL","download_url":"https://codeload.github.com/SWHL/ConvertLOREToONNX/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SWHL%2FConvertLOREToONNX/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017015,"owners_count":26085949,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["table-recognition"],"created_at":"2024-10-13T16:02:48.091Z","updated_at":"2025-10-13T21:05:57.248Z","avatar_url":"https://github.com/SWHL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert LORE to ONNX\n\nThis repo is used to convert [LORE](https://www.modelscope.cn/models/iic/cv_resnet-transformer_table-structure-recognition_lore/summary) to ONNX format.\n\n#### 1. Clone the source code\n\n```bash\ngit clone https://github.com/SWHL/ConvertLaTeXOCRToONNX.git\n```\n\n#### 2. Install env\n\n```bash\n# Anaconda\nconda env create -f environment.yml\n\n# pip (python 3.10.0)\npip install -r requirements.txt\n```\n\n#### 3. Run the demo, and the converted model is located in the `moodels` directory\n\n```bash\npython main.py\n```\n\n#### 4. Install `lineless_table_rec`\n\n```bash\npip install lineless_table_rec\n```\n\n#### 5. Use\n\n```python\nfrom pathlib import Path\n\nfrom lineless_table_rec import LinelessTableRecognition\n\ndetect_path = \"models/lore_detect.onnx\"\nprocess_path = \"models/lore_process.onnx\"\nengine = LinelessTableRecognition(\n    detect_model_path=detect_path, process_model_path=process_path\n)\n\nimg_path = \"images/lineless_table_recognition.jpg\"\ntable_str, elapse = engine(img_path)\n\nprint(table_str)\nprint(elapse)\n\nwith open(f\"{Path(img_path).stem}.html\", \"w\", encoding=\"utf-8\") as f:\n    f.write(table_str)\n\nprint(\"ok\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswhl%2Fconvertloretoonnx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswhl%2Fconvertloretoonnx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswhl%2Fconvertloretoonnx/lists"}