{"id":19417369,"url":"https://github.com/neuronets/ams","last_synced_at":"2025-04-24T13:33:36.833Z","repository":{"id":55278583,"uuid":"207187983","full_name":"neuronets/ams","owner":"neuronets","description":"Automated meningioma segmentation","archived":false,"fork":false,"pushed_at":"2021-01-05T21:02:21.000Z","size":2636,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-10-20T22:01:48.795Z","etag":null,"topics":["mri","neuroimaging","segmentation","tensorflow","trained-models","tumor","tumor-segmentation"],"latest_commit_sha":null,"homepage":"","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/neuronets.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}},"created_at":"2019-09-08T23:44:37.000Z","updated_at":"2023-05-29T07:27:57.000Z","dependencies_parsed_at":"2022-08-14T19:10:44.338Z","dependency_job_id":null,"html_url":"https://github.com/neuronets/ams","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuronets%2Fams","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuronets%2Fams/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuronets%2Fams/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neuronets%2Fams/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neuronets","download_url":"https://codeload.github.com/neuronets/ams/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223954792,"owners_count":17231189,"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":["mri","neuroimaging","segmentation","tensorflow","trained-models","tumor","tumor-segmentation"],"created_at":"2024-11-10T13:09:09.564Z","updated_at":"2024-11-10T13:09:10.092Z","avatar_url":"https://github.com/neuronets.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automated Meningioma Segmentation\n\n[![Docker Pulls](https://img.shields.io/docker/pulls/neuronets/ams)](https://hub.docker.com/r/neuronets/ams)\n\n![In-site segmentation results](/images/sample.png) \u003csub\u003e__Figure__: Example of model outputs on a T1-weighted, contrast-enhanced magnetic resonance image. The structural scan is [available online](http://brainbox.pasteur.fr/mri/?url=https://dl.dropbox.com/sh/71jbelduefu41xs/AAAOa3oh_bVMxdFsmN965kGDa/case_057_2.nii.gz). Runtime on CPU was under 2 minutes.\u003c/sub\u003e\n\n```diff\n! CAUTION: this tool is not a medical product and is only intended for research purposes. !\n```\n\n## Requirements for use\n\n- Input data should be gadolinium contrast-enhanced T1-weighted magnetic resonance images. The model was trained and evaluated on this type of data.\n- CPU or, optionally, GPU\n  - Runtime will be much faster when a GPU is available. Please see the Singularity usage example below for running the model on a GPU.\n\n## Singularity usage example\n\nTo run using singularity, first pull the image:\n\n```\nsingularity pull docker://neuronets/ams:latest-gpu\n```\n\nYou have a few options when running the image. To see them call help.\n\n```\nsingularity run --cleanenv --bind $(pwd):/data -W /data --nv ams_latest-gpu.sif --help\n```\n\nHere is an example.\n\n```\nsingularity run --cleanenv --bind $(pwd):/data -W /data --nv \\\n    ams_latest-gpu.sif T1_001.nii.gz output\n```\n\nThis will generate two files `output.nii.gz` and `output_orig.nii.gz`. The first is the mask in conformed FreeSurfer space. The second is the mask in the original input space.\n\n## Docker usage example\n\nInstead of singularity with GPU, once can also use Docker directly. This is an example with a CPU. Note that the CPU-based run is significantly slower.\n\n```\ndocker run -it --rm -v $(pwd):/data --user 1000:1000 neuronets/ams:latest-cpu T1_001.nii.gz output\n```\n\nThe above examples assume there is a file named `T1_001.nii.gz` in the working directory. The option `--user 1000:1000` runs the container with user ID 1000 and group ID 1000. This will prevent the created files from being owned by root. Replace the IDs with your own IDs. On Unix-like systems, one can use `id -u` and `id -g` to get user ID and group ID, respectively.\n\n### DockerHub tags\n\nThe DockerHub tags follow the following naming scheme:\n\n- `master-gpu`: gpu version of current GitHub master\n- `latest-gpu`: gpu version of latest release\n- `SEMVER-gpu`: gpu version of semantically versioned release\n\nfor `cpu` versions replace `gpu` with `cpu`\n\n# nobrainer\n\nThis model is based on the nobrainer framework. Transfer learning was applied to learn to label meningiomas from a relatively small dataset. The original model is publicly available and can be found on [neuronets/trained-models](https://github.com/neuronets/trained-models#3d-u-net).\n\nThe pre-trained model can be downloaded via `git-annex`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneuronets%2Fams","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneuronets%2Fams","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneuronets%2Fams/lists"}