{"id":19473294,"url":"https://github.com/xinario/chestviewsplit","last_synced_at":"2026-03-01T23:02:17.298Z","repository":{"id":112869330,"uuid":"114578547","full_name":"xinario/chestViewSplit","owner":"xinario","description":"Automatically split the chest x-ray into two views","archived":false,"fork":false,"pushed_at":"2023-08-24T19:21:51.000Z","size":1985,"stargazers_count":18,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-18T06:43:32.221Z","etag":null,"topics":["chest-xrays","classification","medical-imaging","pytorch"],"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/xinario.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":"2017-12-18T00:14:56.000Z","updated_at":"2023-08-24T19:21:57.000Z","dependencies_parsed_at":"2025-04-25T12:42:32.704Z","dependency_job_id":null,"html_url":"https://github.com/xinario/chestViewSplit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xinario/chestViewSplit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinario%2FchestViewSplit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinario%2FchestViewSplit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinario%2FchestViewSplit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinario%2FchestViewSplit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xinario","download_url":"https://codeload.github.com/xinario/chestViewSplit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xinario%2FchestViewSplit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29987654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T22:42:38.399Z","status":"ssl_error","status_checked_at":"2026-03-01T22:41:51.863Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chest-xrays","classification","medical-imaging","pytorch"],"created_at":"2024-11-10T19:18:00.564Z","updated_at":"2026-03-01T23:02:17.293Z","avatar_url":"https://github.com/xinario.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## chestViewSplit\nThis repo provides a trained model to seperate the chest x-ray into two views: front view (PA or posterior-anterior)  and side view (LL or latero-lateral). \n\u003cimg src=\"sample.png\" width=\"900px\"/\u003e\n\nSometimes when you download the chest x-rays from the internet, there's no  text description or meta data associated with the image. If you want to only work with images from a single view, you'll have to manually seperate the images which is tedious. Here I trained a model based on resnet-50 to automate the process and hopefully it can help people facing the same issue.\n\n### Prerequistites\n- Linux or OSX\n- NVIDIA GPU\n- Python 2.7\n- PyTorch v0.2.0\n- Numpy\n\n### Getting Started\n### Installation\n- Install [PyTorh](https://github.com/pytorch/pytorch) and the other dependencies\n- Clone this repo:\n```bash\ngit clone https://github.com/xinario/chestViewSplit.git\ncd chestViewSplit\n```\n- Download the trained model from [this link](https://drive.google.com/file/d/1vXhPWE-J4_eFY-UQ7A8pf3XdWhHO_lz_/view?usp=sharing) and put it into folder ./models (mkdir ./models)\n\n### Classification\n- Make sure all your chest x-rays resides in the same folder, e.g. ./chest_xray and then run the following command (-i specifies the input folder and -o specifies the output folder).\n```bash\npython xray_split.py -i chest_xray/ -o chest_xray/\n```\n- After running the above script, the images from two views will be saved in folder ./chest_xray/front and ./chest_xray/side respectively.\n\n### Acknowlegements\nPart of the code are borrowed from [fine-tuning.pytorch](https://github.com/meliketoy/fine-tuning.pytorch)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxinario%2Fchestviewsplit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxinario%2Fchestviewsplit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxinario%2Fchestviewsplit/lists"}