Code Monkey home page Code Monkey logo

umessen / body-and-organ-analysis Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 4.0 12.01 MB

BOA is a segmentation tool of CT scans by the SHIP-AI group (https://ship-ai.ikim.nrw/). Combining the TotalSegmentator and the Body Composition Analysis, this tool is capable of analyzing medical images and identifying the different structures within the human body, including bones, muscles, organs, and blood vessels.

License: Apache License 2.0

Python 98.56% Jinja 0.68% CSS 0.23% Sass 0.22% Dockerfile 0.21% Shell 0.10%

body-and-organ-analysis's People

Contributors

dependabot[bot] avatar giuliabaldini avatar jannisstraus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

body-and-organ-analysis's Issues

Dicom Tags in "get_dicom_tags" appear to be empty

Hello there!

When using the BOA PACS deployment, I observed that the output hierarchy is OUTPUT/ae_title/__/x_
instead of the StudyDate_AccessionNumber_StudyDescription and the corresponding tags for the series.

It seems to have trouble at the get_dicom_tags function. I this a known issue or a problem at my end?

Installation support

Hello everyone,

We are in the process of getting the Docker up and running. However, it is not clear to us where exactly we should store the .env_sample? And what exactly do the parameters mean (e.g. CELERY_BROKER, RABBITMQ_USERNAME, RABBITMQ_PASSWORD, etc)?
Do these need to be integrated into our Python path?
Maybe you can help us with some more detailed installation instructions.

Many thanks and best regards

Matthias from Frankfurt

GIT_VERSION and PACKAGE_VERSION

Hi there,

i've used the README for the env and docker-compose file.

When running docker compose up i get the following warnings:

WARN[0000] The "GIT_VERSION" variable is not set. Defaulting to a blank string. 
WARN[0000] The "PACKAGE_VERSION" variable is not set. Defaulting to a blank string. 
WARN[0000] The "GIT_VERSION" variable is not set. Defaulting to a blank string. 
WARN[0000] The "PACKAGE_VERSION" variable is not set. Defaulting to a blank string. 
WARN[0000] The "GIT_VERSION" variable is not set. Defaulting to a blank string. 
WARN[0000] The "PACKAGE_VERSION" variable is not set. Defaulting to a blank string.

Should i add GIT_VERSION and PACKAGE_VERSION to something in the env file and if yes what?

Cheers
Samuel from UKE Hamburg

Failed to download weights due to Zenodo connection

Hello, thank you for the great work!

I experience a download error (for the totalsegmentator weights) after running docker run:

INFO:body_organ_analysis.commands:Image loaded and retrieved: DONE in 0.00003s
INFO:body_organ_analysis.compute.inference:Input image: /image.nii.gz
INFO:body_organ_analysis.compute.inference:Image size: (122, 101, 112)
INFO:body_organ_analysis.compute.inference:Image dtype: int32
INFO:body_organ_analysis.compute.inference:Voxel spacing: (3.0, 3.0, 3.0)
INFO:body_organ_analysis.compute.inference:Input Axcodes: ('R', 'A', 'S')
WARNING:body_organ_analysis.compute.inference:Unexpected CT values found in input image: got -1207.0-3382.0, expected -1024-3071. The values have been clipped to the expected range. Please check the segmentations to ensure that everything is correct.
INFO:body_organ_analysis.compute.inference:Computing segmentations for task total
INFO:totalsegmentator.libs:Downloading pretrained weights for Task 251...
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/app/body_organ_analysis/main.py", line 4, in
run()
File "/usr/local/lib/python3.8/dist-packages/body_organ_analysis/cli.py", line 168, in run
analyze_ct(
File "/usr/local/lib/python3.8/dist-packages/body_organ_analysis/commands.py", line 76, in analyze_ct
compute_all_models(
File "/usr/local/lib/python3.8/dist-packages/body_organ_analysis/compute/inference.py", line 123, in compute_all_models
download_pretrained_weights(tid)
File "/usr/local/lib/python3.8/dist-packages/body_organ_analysis/_external/totalsegmentator/libs.py", line 192, in download_pretrained_weights
download_url_and_unpack(WEIGHTS_URL, config_dir)
File "/usr/local/lib/python3.8/dist-packages/body_organ_analysis/_external/totalsegmentator/libs.py", line 77, in download_url_and_unpack
raise e
File "/usr/local/lib/python3.8/dist-packages/body_organ_analysis/_external/totalsegmentator/libs.py", line 64, in download_url_and_unpack
r.raise_for_status()
File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://zenodo.org/record/6802342/files/Task251_TotalSegmentator_part1_organs_1139subj.zip?download=1

I checked the link and it works. This can happen due to an unstable connection on the server side and reaching timeout.
One of the possible solutions can be the increasing response waiting time. Or can you please provide the file structure that you expect in the weights directory, to have an opportunity to download the weights manually?

Thank you in advance.

Offline deployment

To be able to use it on our gpu cluster the docker containers need to be offline (there is no internet connection available).
I can download, create and export the containers, but the problem is that the weights for the TotalSegmentator tasks don't download when setting up the containers.

I can try and put some test images like TCIA data through it but it seems like the real images we push to the BOA containers trigger more tasks than get downloaded for TCIA data. Can you provide a list of all the weights one needs to download to the weights folder to have full offline functionality? Or even better a script that downloads everything needed for offline-usage.

Cheers
Samuel from Hamburg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.